Sign In | Register Now About Bytes | Help | Site Map
Connecting Tech Pros Worldwide

skb_recv_datagram() Blocks

Question posted by: hnshashi (Newbie) on July 2nd, 2008 06:58 AM
Hi all,
I have written kernel module to communicates with user space appl. using netlink socket.

skb = skb_recv_datagram(nl_sk,0,1,&err); (Blocks at this point)
skb type is "struct sk_buff";
nl_sk type is "struct sock"

when calling skb_recv_datagram()(in kernel module) and choose it to be blocking (for a timeout period) it blocks and never wake up even if a packet has arrived to kernel,the packet has arrived from user space for sure .. cause the call back function i've registered while creating the socket is called every time i send a packet from user space.

Plz help me what is problem

--
Shashidhara
weaknessforcats's Avatar
weaknessforcats
Moderator
4,766 Posts
July 2nd, 2008
03:12 PM
#2

Re: skb_recv_datagram() Blocks
There's not enough information here to determine what's happening. Plus you don't even mention what operating system you are using.

Reply
hnshashi's Avatar
hnshashi
Newbie
14 Posts
July 3rd, 2008
06:31 AM
#3

Re: skb_recv_datagram() Blocks
Quote:
There's not enough information here to determine what's happening. Plus you don't even mention what operating system you are using.



I am using Redhat 7.2
I got the solution.

Thanks for u r reply

--
Shashidhara

Reply
Reply
Not the answer you were looking for? Post your question . . .
189,891 Experts ready to help you find a solution.
Sign up for a free account, or Login (if you're already a member).

Latest Articles: Read & Comment
Top C / C++ Forum Contributors