Re: How to implement support for "select" system call for a polling device driver

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

 



On Fri, 2005-03-04 at 00:44, Vanitha Ramaswami wrote:
> Now for me to provide support for select, the poll_wait function should be 
> waiting on a wait_queue and should be awakened by the Rx interrupt process. 
> Is there a way to implement this other than creating a separate polling 
> task(kernel_thread)  for receive, which continuously polls the device and 
> awakes the wait queue when there is data?

That can be done using a kernel timer that reschedules itself.
http://www.xml.com/ldd/chapter/book/ch06.html#t5

Vijay


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