On 8/10/07, Bizhan Gholikhamseh (bgholikh) <[EMAIL PROTECTED]> wrote:
>
>
> > -----Original Message-----
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED] On Behalf Of kashif saeed
> > Sent: Friday, August 10, 2007 2:52 AM
> > To: ilya
> > Cc: newbeis list
> > Subject: Re: exposing kernel driver to user space app
> >
> > netlink sockets will definitely work if you need some help
> > regarding netlink socket let me know
> I am interested. Do you have sample code you could share?
> Thanks,
> Bz

yeah... i think i might need some help too. i figured out the
kernel side of it from this tutorial:
http://linux-net.osdl.org/index.php/Generic_Netlink_HOWTO
but i am confused on the user-side of this. i found
code for getdelay.c :
http://www.mjmwired.net/kernel/Documentation/accounting/getdelays.c
which seems to use generic sockets to send the commands,
but i still need to figure out how to send data from kernel space
to user.

one thing i noticed is that the code is using recv() to receive
a message, so does that mean i have to expect the message to
come? does this function block until a message arrives?

- ilya

p.s. it would be nice if you had some sample code for both sides.

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to [EMAIL PROTECTED]
Please read the FAQ at http://kernelnewbies.org/FAQ

Reply via email to