Li, Chanjuan escreveu:
hi,all:
I am a newbie on linux kernel. now I encountered a problem on
socket in kernel space.I create a SOCK_DGRAM socket in kernel space .
What I want to do can
be described as follows:
while(1){
if( packet received)
call packet handler
}
my problem is how to know packet received at kernel space. In user
space there is select() to use, but in kernel space, there is no such
function.
I have read sk_buff and struct sock definition to find some hint, but
still have no idea. I think it is a good place to ask for help. thanks
in advance.
lily
Are you writing a protocol or sending/receiving datagrams on kernel space?
Best Regards
Alan Menegotto
--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ