linux-c-programming.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Patrick Leslie Polzer <leslie.polzer@gmx.net>
To: Mikado <mikado4vn@yahoo.com>
Cc: linux-kernel@vger.kernel.org, linux-c-programming@vger.kernel.org
Subject: Re: Resend: Netlink socket problem
Date: Sun, 8 Jan 2006 13:05:33 +0100	[thread overview]
Message-ID: <20060108130533.4cf244af.leslie.polzer@gmx.net> (raw)
In-Reply-To: <20060108092505.62484.qmail@web53702.mail.yahoo.com>

[-- Attachment #1: Type: text/plain, Size: 807 bytes --]


Hi Mikado,

On Sun, 8 Jan 2006 01:25:05 -0800 (PST)
Mikado <Mikado <mikado4vn@yahoo.com>> 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);
return_free:
    kfree_skb(nl_skb);
}

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?

Leslie

-- 
gpg --keyserver pgp.mit.edu --recv-keys 0x52D70289

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

      reply	other threads:[~2006-01-08 12:05 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-01-08  9:25 Resend: Netlink socket problem Mikado
2006-01-08 12:05 ` Patrick Leslie Polzer [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20060108130533.4cf244af.leslie.polzer@gmx.net \
    --to=leslie.polzer@gmx.net \
    --cc=linux-c-programming@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mikado4vn@yahoo.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).