[lkml]   [2006]   [Jan]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: Resend: Netlink socket problem

Hi Mikado,

On Sun, 8 Jan 2006 01:25:05 -0800 (PST)
Mikado <Mikado <>> wrote:

| Is there anything wrong in my codes? I think the problem is the
| netlink_unicast(), because when I didn't call it, everything work well.
Check whether nl_sk equals NULL.
I don't know whether there's an assert() macro available for you, so try this:

/* [...] */
if (nl_sk == NULL)
printk(KERN_ALERT "nltest: nl_sk is NULL!");
goto return_free;

netlink_unicast(nl_sk, nl_skb, pid, 0);

A gdb backtrace of the user space part won't give you much, since you
found out the problem lies in kernel space.

What does netlink_unicast() do?


gpg --keyserver --recv-keys 0x52D70289
[unhandled content-type:application/pgp-signature]
 \ /
  Last update: 2006-01-08 13:09    [W:0.332 / U:0.236 seconds]
©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site