skb_recv_datagram() Blocks

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • hnshashi
    New Member
    • Jul 2008
    • 15

    skb_recv_datagram() Blocks

    Hi all,
    I have written kernel module to communicates with user space appl. using netlink socket.

    skb = skb_recv_datagr am(nl_sk,0,1,&e rr); (Blocks at this point)
    skb type is "struct sk_buff";
    nl_sk type is "struct sock"

    when calling skb_recv_datagr am()(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
    Recognized Expert Expert
    • Mar 2007
    • 9214

    #2
    There's not enough information here to determine what's happening. Plus you don't even mention what operating system you are using.

    Comment

    • hnshashi
      New Member
      • Jul 2008
      • 15

      #3
      Originally posted by weaknessforcats
      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

      Comment

      • fluf
        New Member
        • Mar 2009
        • 1

        #4
        I have the same problem.
        What is the solution?

        Comment

        Working...