Thomas;<br><br>aranjbar@aranjbar-desktop:~/p4ws/alranjba/lego/branches/e2xxx_dev_ctf/bentley/output/debug/libnl-3.2.7/src$ ./genl-ctrl-list<br>./genl-ctrl-list: line 117: /home/aranjbar/p4ws/alranjba/lego/branches/e2xxx_dev_ctf/bentley/output/debug/libnl-3.2.7/src/.libs/lt-genl-ctrl-list: cannot execute binary file<br>
./genl-ctrl-list: line 117: /home/aranjbar/p4ws/alranjba/lego/branches/e2xxx_dev_ctf/bentley/output/debug/libnl-3.2.7/src/.libs/lt-genl-ctrl-list: Success<br>aranjbar@aranjbar-desktop:~/p4ws/alranjba/lego/branches/e2xxx_dev_ctf/bentley/output/debug/libnl-3.2.7/src$ <br>
<br><br>I hope this is what you were asking for. Sorry, I am new to using libnl. If this isn't the right info, please send me more detailed instructions. Thanks for your help in advance.<br><br><div class="gmail_quote">
On Thu, Apr 19, 2012 at 9:57 AM, Thomas Graf <span dir="ltr"><<a href="mailto:tgraf@infradead.org" target="_blank">tgraf@infradead.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div>On Mon, Apr 09, 2012 at 02:07:47PM -0700, Ali Ranjbar wrote:<br>
> I have a user space program that I thought should work, but it fails when<br>
> it calls the genl_Ctrl_resolve (see below). Can anyone help me why? I am<br>
> using the libl 3.2.7. Both user space and kernel module compile and link. I<br>
> cut and paste it here, so I maybe missing a } or something, but don't focus<br>
> on that. Like I said, both programs compile and link, so no syntax issue.<br>
><br>
> Kernel side during the init calls the genl_register_family(),<br>
> genl_register_ops(), so I don't understand why when the user space call to<br>
> genl_ctrl_resolve() failes?<br>
<br>
<br>
</div>Can you run src/genl-ctrl-list and show me the output? I haven't gone<br>
through your kernel side code but the lookup code looks OK so I<br>
wonder if the registration works correctly.<br>
</blockquote></div><br><br clear="all"><br>-- <br><br>Best Regards;<br>Ali Ranjbar<br>Founder<br>Embedded Software DTI Corp.<br>Mobile: <a href="tel:847-337-8895" value="+18473378895" target="_blank">847-337-8895</a><br>
Email: <a href="mailto:ali.ranjbar@ieee.org" target="_blank">ali.ranjbar@ieee.org</a><br>
<br><br>