netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Thomas Graf <tgraf@suug.ch>
To: Johannes Berg <johannes@sipsolutions.net>
Cc: Samuel Ortiz <samuel@sortiz.org>,
	giometti@enneenne.com, netdev@vger.kernel.org
Subject: Re: Generic netlink interface help
Date: Wed, 30 May 2007 23:45:08 +0200	[thread overview]
Message-ID: <20070530214508.GT521@postel.suug.ch> (raw)
In-Reply-To: <1180272296.3604.64.camel@johannes.berg>

* Johannes Berg <johannes@sipsolutions.net> 2007-05-27 15:24
> On Sat, 2007-05-26 at 00:18 +0200, Thomas Graf wrote:
> 
> > This area is still work in progress but the basic idea is that
> > like in kernel context, the application defines its set of
> > commands and assigns message parsers for each command. 
> 
> Ok, but why? For when we get asynchronous events from the kernel?

I don't want to enforce a separate socket for every generic
netlink family.

> > For now,
> > the message parser is linked into the cache operations which
> > means that you have to "update" a cache in order to use this
> > feature. 
> 
> What's the cache good for to start with?
> 
> My current userland tool just send a message and expects back a
> response. Obviously that's broken once we have events too, is that when
> the message parsers come in?

See the documentation, a cache is basically a collection of
objects. For events, you'd probably want to have each event
added to a cache and then iterate over the cache to handle
the events in the right order.

  parent reply	other threads:[~2007-05-30 21:44 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-05-24  8:59 Generic netlink interface help Rodolfo Giometti
2007-05-24  9:43 ` Samuel Ortiz
2007-05-24  9:56   ` Rodolfo Giometti
2007-05-24 10:04     ` Samuel Ortiz
2007-05-24 11:21       ` Rodolfo Giometti
2007-05-24 13:21         ` Paul Moore
2007-05-24 13:51         ` jamal
2007-05-24 16:34   ` Johannes Berg
2007-05-25 22:18     ` Thomas Graf
2007-05-27 13:24       ` Johannes Berg
2007-05-27 13:50         ` Rodolfo Giometti
2007-05-27 13:54           ` Johannes Berg
2007-05-27 17:47             ` Rodolfo Giometti
2007-05-28 14:01               ` Samuel Ortiz
2007-05-30 21:45         ` Thomas Graf [this message]
2007-05-27 17:39   ` Rodolfo Giometti
2007-05-28  1:42     ` Samuel Ortiz
2007-05-28  7:41       ` Rodolfo Giometti

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=20070530214508.GT521@postel.suug.ch \
    --to=tgraf@suug.ch \
    --cc=giometti@enneenne.com \
    --cc=johannes@sipsolutions.net \
    --cc=netdev@vger.kernel.org \
    --cc=samuel@sortiz.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).