netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Generic netlink interface help
@ 2007-05-24  8:59 Rodolfo Giometti
  2007-05-24  9:43 ` Samuel Ortiz
  0 siblings, 1 reply; 18+ messages in thread
From: Rodolfo Giometti @ 2007-05-24  8:59 UTC (permalink / raw)
  To: netdev

Hello,

I'm trying to use this new API for my LinuxPPS support but I have some
difficulties in understanding the code!

Looking at http://linux-net.osdl.org/index.php/Generic_Netlink_HOWTO
is not clear... for example in line:

   msg_head = genlmsg_put(skb, pid, seq, type, 0, flags, DOC_EXMPL_C_ECHO, 1);

what "pid", "seq", "type" and "flags" stand for?

It could be possible to have a little kernel module implementing the
ECHO function as example to compile and test?

Again, I read in a message from Jamal Hadi Salim regarding Kernel <
--> User space Communication that:

 Essentially nothing new, Communication is as in standard netlink
 approach.  i.e from user space you open a netlink socket to the
 kernel - in this case family NETLINK_GENERIC - and send and receive
 response as well as asynchronous events.  To receive to events you
 subscribe to specific multicast groups.

So I suppose I can modify a little my userland programs using old API
in order to support this new API. Is that right?

Thanks,

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

^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2007-05-30 21:44 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 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).