sock_sendmsg from interrupt context

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

 



Hello Team,
   We are writing a "virtual serial port driver"
   which in turn usesTCP Sockets to send databuffers from chardev interface across  network.
 
   Since we should not be calling sock_send msg from interrupt context,
Is there any other alterative call that we can use to send messages over TCP sockets
From interrupt context.
 
To explain the scenario :
When we invoke our driver from ppp through ping,
ppp_write ->tty_layer..... my_serial_driver_write(..,userbuffer, )
 
my_serial_driver_write(struct tty_struct *tty,userdatabuffer,int buff_len )
{
   msg.iov.iov_base=userdatabuffer;
   sock_sendmsg();
}
 
Since sock_sendmsg calls many sleep calls like might_sleep we are not supposed use them, so can u plz suggest me if there is any other way of passing the data.
Regards,
J.ENDEAVOR


[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