Re: system hangs during wait_event_interruptible

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> Thanks for your reply, but isn't the second parameter supposed to be a
> boolean C expression anyway ?

Yes. You're right. I was thinking of interruptible_sleep_on_timeout.
Sorry.

In your case, you're always adding ticks to jiffies. So, unless
ticks is 0, timeout will always be greater than jiffies and you will
always wait.

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux