Re: exposing kernel driver to user space app

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 8/10/07, Bizhan Gholikhamseh (bgholikh) <bgholikh@xxxxxxxxx> wrote:
>
>
> > -----Original Message-----
> > From: kernelnewbies-bounce@xxxxxxxxxxxx
> > [mailto:kernelnewbies-bounce@xxxxxxxxxxxx] 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 ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux