Hi Krushnal,

On Wed, Jul 22, 2009 at 8:40 PM, Mulyadi Santosa
<mulyadi.sant...@gmail.com>wrote:

> Hi...
>
> I hope you don't mind if I cc my reply to kernelnewbies mailing list
> too...so that you can get more response..
>
> On Wed, Jul 22, 2009 at 4:03 PM, krushnaal pai<krisonea...@gmail.com>
> wrote:
> > sir,
> > how can we send data from kernel space to user application.......
>
> AFAIK, most people use netlink socket. But since it seems that you
> want alternative ways....
>
> > also i had an article on that but they have used sockets ,i want one that
> > doesnt use sockets
>
> if you mean "send data" as "user space read data from kernel space by
> polling certain file descriptor", then you can create /proc or /sys or
> debugfs entries, assign the file operation in it. Then when a user
> space program read the entry, kernel simply send the data to the
> reader.


If you are just looking for alternatives, ioctl is the simplest one. Google
for configfs, thats a good one too.



>
> --
> regards,
>
> Mulyadi Santosa
> Freelance Linux trainer
> blog: the-hydra.blogspot.com
>
> --
> To unsubscribe from this list: send an email with
> "unsubscribe kernelnewbies" to ecar...@nl.linux.org
> Please read the FAQ at http://kernelnewbies.org/FAQ
>
>

Reply via email to