2.6.18 netlink_kernel_create() always returns NULL
Kyle McMartin
kyle at mcmartin.ca
Tue Feb 22 15:34:08 UTC 2011
On Tue, Feb 22, 2011 at 11:10:49PM +0800, YANG wrote:
> My code fragment is below:
>
> "nl_sk = netlink_kernel_create(16, 0, nl_data_ready, THIS_MODULE);"
>
> It can be "make" and "insmod" correctly. But error mesage is printed
> into log. It indicates the netlink_kernel_create() returns NULL.
>
> Once I change the firt parameter to another(<32 && >16), system crash
> when I execute insmod.
>
> Is the protocol ID occupied? Why can't use another and how to define a
> new ID? I have tried to update net_link.h but fail also.
I'd highly suggest if you are running Fedora that you upgrade to
something from this decade... If you're running CentOS5, you'll have to
find a new mailing list, we don't do support for that here.
--Kyle
More information about the kernel
mailing list