* Listening on a socket in kernel space
@ 2001-02-27 1:43 Daniel Shane
0 siblings, 0 replies; only message in thread
From: Daniel Shane @ 2001-02-27 1:43 UTC (permalink / raw)
To: linux-kernel
I am currently writing a device driver that must listen to a socket
connection in kernel space. By looking at various code, I found out that
many drivers in the kernel use the socket->sk->sleep wait queue to queue
themselves on that list and get waken_up() by the socket.
My question is : if I expect to receive *a lot* of traffic, isnt this
sleep/wake_up a little slow? Maybe it cant be done, but is it possible for
the socket to generate an interrupt whenever some data arrives instead of
sleeping the the sockets queue?
I'm a little afraid of loosing some packets because the wake_up call doesnt
garantee that I will be waken_up any time soon (or will the kernel
automaticlaly schedule the kernel thread first when the data arrives because
it's always highest priority?).
Thanks!
Daniel Shane
--
GNU/Linux programmer
iNsu Innovations Inc.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2001-02-26 14:28 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-02-27 1:43 Listening on a socket in kernel space Daniel Shane
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).