genl_ctrl_resolve failure
Thomas Graf
tgraf at infradead.org
Thu Apr 19 12:57:06 EDT 2012
On Mon, Apr 09, 2012 at 02:07:47PM -0700, Ali Ranjbar wrote:
> I have a user space program that I thought should work, but it fails when
> it calls the genl_Ctrl_resolve (see below). Can anyone help me why? I am
> using the libl 3.2.7. Both user space and kernel module compile and link. I
> cut and paste it here, so I maybe missing a } or something, but don't focus
> on that. Like I said, both programs compile and link, so no syntax issue.
>
> Kernel side during the init calls the genl_register_family(),
> genl_register_ops(), so I don't understand why when the user space call to
> genl_ctrl_resolve() failes?
Can you run src/genl-ctrl-list and show me the output? I haven't gone
through your kernel side code but the lookup code looks OK so I
wonder if the registration works correctly.
More information about the libnl
mailing list