From: Jon Loeliger <jdl@bigfootnetworks.com>
To: Andi Kleen <andi@firstfloor.org>
Cc: netdev@vger.kernel.org
Subject: Re: Using netlink for intra-kernel requests?
Date: Wed, 09 Dec 2009 10:41:40 -0600 [thread overview]
Message-ID: <1260376900.31877.10.camel@jdl-desktop> (raw)
In-Reply-To: <87bpi8mfur.fsf@basil.nowhere.org>
On Wed, 2009-12-09 at 14:33 +0100, Andi Kleen wrote:
> Jon Loeliger <jdl@bigfootnetworks.com> writes:
> > I feel like I am missing or don't know where to find the
> > documentation for the intra-kernel netlink messaging.
>
> I don't think the kernel uses intra kernel netlink normally,
> just tends to call functions directly. That's more efficient
> anyways.
>
> -Andi
Hi Andi,
OK. So, _which_ set of netlink functions should I use?
Is rtnl_notify() the correct one to use to send a netlink
request for the RTM_GETQDISC or RTM_GETTCCLASS data?
What's the mechanism used to send and then receive a reply?
Will it be async? How do I specify the call-back to receive
the reply netlink message? Or will it be synchronous and
I pass in some call-back-reply function?
Thanks for you suggestions!
jdl
prev parent reply other threads:[~2009-12-09 16:43 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-12-08 21:42 Using netlink for intra-kernel requests? Jon Loeliger
2009-12-09 13:33 ` Andi Kleen
2009-12-09 16:41 ` Jon Loeliger [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=1260376900.31877.10.camel@jdl-desktop \
--to=jdl@bigfootnetworks.com \
--cc=andi@firstfloor.org \
--cc=netdev@vger.kernel.org \
/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).