Re: How to post a message to a kernel thread

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

 




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/


[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