----- Original Message ----
From: endeavor john <jendeavor@xxxxxxxxx>
To: Erik Mouw <mouw@xxxxxxxxxxxx>
Cc: Greg KH <greg@xxxxxxxxx>; kernelnewbies <kernelnewbies@xxxxxxxxxxxx>
Sent: Thursday, March 1, 2007 12:38:34 PM
Subject: sock_sendmsg from interrupt context
From: endeavor john <jendeavor@xxxxxxxxx>
To: Erik Mouw <mouw@xxxxxxxxxxxx>
Cc: Greg KH <greg@xxxxxxxxx>; kernelnewbies <kernelnewbies@xxxxxxxxxxxx>
Sent: Thursday, March 1, 2007 12:38:34 PM
Subject: sock_sendmsg from interrupt context
Hello Team,
We are writing a "virtual serial port driver"
which in turn usesTCP Sockets to send databuffers from chardev interface across network.
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 socketsFrom interrupt context.
you can use workqueues to schedule this work to be done from a process 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
Check out the all-new Yahoo! Mail beta - Fire up a more powerful email and get things done faster.