wake up a wait queue when no one sleeps

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

 



Hi,

I just want to do the following:

From userspace I call

select()
read()

The app normally blocks on the select call().

From kernelspace I have to code

an interrupt handler,
a read(),
a select() call.

Interrupt occurs, if new data is available, or if transmission is lost.

What should I do, when an interrupt occurs and the app's not doing a select() ? Can I wake up a waitqueue if the application process is not sleeping on it, and it will be woken when it calls the select ? Or does the driver have to buffer the incoming data ?

Kind regards,

Franz


-- 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