I seem to understand, but I don't.
In the case of tcp_poll(). From sys_poll() all the way down to just
before the call to tcp_poll() through a file pointer, kernel setup
the poll_wqueue all well. And then just as soon as the entering of
tcp_poll(), it calls poll_wait() to wakeup the queue. What's the
point? It hasn't done anything real just yet.
Ie., first setup a wait_queue, then wakeup the queue, then to do the
real work. What's the point of the wait_queue?
Thanks,
zw
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive: http://mail.nl.linux.org/kernelnewbies/
FAQ: http://kernelnewbies.org/faq/