netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Rodolfo Giometti <giometti@enneenne.com>
To: Samuel Ortiz <samuel@sortiz.org>
Cc: netdev@vger.kernel.org
Subject: Re: Generic netlink interface help
Date: Mon, 28 May 2007 09:41:20 +0200	[thread overview]
Message-ID: <20070528074120.GC20506@gundam.enneenne.com> (raw)
In-Reply-To: <20070528014247.GC4264@sortiz.org>

On Mon, May 28, 2007 at 04:42:47AM +0300, Samuel Ortiz wrote:
> > 
> > Is that right?
> At first glance, this could work yes.

Great! Now I have only to write the userland tool. :)

> However, it seems you're trying to encapsulate your pps_netlink_msg into
> a generic netlink message which itself is already encapsulated into a
> netlink message, and then multiplex all your PPS commands on
> ppl_genl_data_ready(). IMHO, you should have your different PPS commands
> declared as a genl_ops array, and then have a specific doit routine per PPS
> command. This would make your code cleaner and more secure (see the
> "Operation Granularity" section at
> http://linux-net.osdl.org/index.php/Generic_Netlink_HOWTO).

I see. I already supposed that but currently I'm trying to do minimal
changes to my code in order to verify that everythink works well
again, then I'll do the complete work.

Thanks a lot,

Rodolfo

-- 

GNU/Linux Solutions                  e-mail:    giometti@enneenne.com
Linux Device Driver                             giometti@gnudd.com
Embedded Systems                     		giometti@linux.it
UNIX programming                     phone:     +39 349 2432127

      reply	other threads:[~2007-05-28  7:41 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
2007-05-27 17:39   ` Rodolfo Giometti
2007-05-28  1:42     ` Samuel Ortiz
2007-05-28  7:41       ` Rodolfo Giometti [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=20070528074120.GC20506@gundam.enneenne.com \
    --to=giometti@enneenne.com \
    --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).