Hello, Can you point out any example where waitqueues are used in linux kernel and are used to post messages from a different thread ? Thanks Vanitha -----Original Message----- From: Daniele Bellucci [SMTP:bellucda@tiscali.it] Sent: Monday, December 15, 2003 10:11 PM To: vanithar@techemail.com Cc: kernelnewbies@nl.linux.org Subject: Re: How to post a message to a kernel thread >In that case even if i create a new kernel thread and share the linked list between ppp module and kernel thread and if i use the spin_lock to protect my list. It again will fail inside the sock_sendmsg function(because of the sock_alloc_skb function) if i try to use the same buffer received by ppp module. > sock_sendmsg should be called by your kernel_thread (you can't call from interrupt context). If you want to avoid double/triple-buffering from your module ... i have no suggestions since i'm not experienced with the ppp core. -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/ -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/