--- Olle Ollesson <h_e_w_i@yahoo.com> wrote: > Hi, > > I'm doing some kernel network programming. I got a > char device driver. Each time a network package is > passed through the kernel method dev_queue_xmit(in > net/core/dev.c) a method in my driver is invoked. In > my method I sometimes want to wait for user data > (coming in from a user space process in my write() > method). But how can I wait for this data? If I invoke > a sleep method, will that not result in that the > kernel process sleeps and the system freezes? Maybe I > can put the current thread to sleep? > > / > h_e_w_i See http://www.xml.com/ldd/chapter/book/ch05.html#t2 Harmony, --Christine __________________________________________________ Do You Yahoo!? Yahoo! Health - your guide to health and wellness http://health.yahoo.com -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/