about netlink: skb_recv_datagram() function

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi all,

I am using a module that employs netlink functions and data.

After compiling it, I insert the module as:

# insmod test.ko

but the terminal (prompt) gets locked. After debugging the module, I
noticed that skb_recv_datagram() is responsible for that.

Take a look the snippet of the code:

skb = skb_recv_datagram(nl_sk, 0, 0, &err);
if (!skb) {
	printk(KERN_ERR
	       "netlink_test: skb_recv_datagram!\n");
	return;
}

When I interrupt the prompt (as it was locked by inserting the module)
typing <Control>+C, the message "netlink_test: skb_recv_datagram!" is
printed, so I wonder why this is happening.

Is it normal skb_recv_datagram() blocks the terminal? How can I solve
it?

BR,

Mauricio Lin.


		
_______________________________________________________ 
Novidade no Yahoo! Mail: receba alertas de novas mensagens no seu celular. Registre seu aparelho agora! 
http://br.mobile.yahoo.com/mailalertas/ 
 


--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux