Re: Generic Netlink
From: Paul Moore
Date: Mon Nov 12 2007 - 16:59:25 EST
On Monday 12 November 2007 11:47:04 am Edouard Thuleau wrote:
> I try to use the generic netlink functionalities in a kernel module.
> I looked the doc
> http://www.linux-foundation.org/en/Net:Generic_Netlink_HOWTO and the
> source code of kernel/taskstats.c in the kernel.
> I tried to reproduce the example of the doc (look in the attached
> file) but it doesn't work.
> I work on a 2.6.23 kernel and on two different architectures, a
> classic x86 pc and a armv5b board.
> On the PC the genlmsg_multicast function return an error (-3) and the
> system crash totally in the next 5 sec (hard reboot).
> On the arm board, the genlmsg_put function return the NULL value, but
> the module is unload and the system stay stable.
> Can you help me ?
You might want to look at the ACPI code for some examples, a quick look at the
code shows that it uses Generic Netlink and multicast messages.
linux security @ hp
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html