Invoking sock_sendmsg from ppp driver

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

 



Hi All,

I need to send the packets from ppp to another user space application
thro' sockets. To do this I invoked the kernel level call sock_sendmsg from the
function ppp_sync_push. 

Instead of calling the tty->driver.write function, i have modified the code to invoke my 
function which will send packet to the socket..But it crashes..It says
alloc_skb called nonatomically from interrupt. It is crashing inside the function sock_sendmsg
Is the ppp_sync_push function runs in the context of tty interrupt?

Do i need to insert the hook prior to this..?where should i hook my proprietary function.?


Thanks,
Vanitha
--
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