On 3/20/06, Gaurav Dhiman <gauravd.chd@xxxxxxxxx> wrote:
netlink is a mechanism for bi-directional user-kernel message passing .. this means that you can us it to send data from kernel to user and vice-verse ..
it called netlink sockets cause it uses the same interface as the usual sockets .. like send/recv ..
you can check this:
http://www.linuxjournal.com/article/7356
hope this helps
MHD.Tayseer
On 3/20/06, Mulyadi Santosa <mulyadi.santosa@xxxxxxxxx> wrote:
> Hi Ming...
>
> > We have a front panel reset which will generate an interrupt signal
> > to processor and in turn the interrupt should notify an user process
> > do 'shutdown' system procedures. This should be similar behavior as
> > CTRL+ATL+DEL button hit and then shutdown system.
> >
> > What is best and fast notification mechanism to handle this ?
>
> Hm, not quite sure. How about using netlink?
Hi Mulyadi,
Can you put more light on what is netlink, or give me some pointers on this.
netlink is a mechanism for bi-directional user-kernel message passing .. this means that you can us it to send data from kernel to user and vice-verse ..
it called netlink sockets cause it uses the same interface as the usual sockets .. like send/recv ..
you can check this:
http://www.linuxjournal.com/article/7356
hope this helps
MHD.Tayseer
Or, associate the interrupt
> with a file descriptor, while in userspace, utilize inotify to react
> when there is a change in file status?
How this can be done ..... pls do explain little bit in detail.
thanks,
Gaurav
One I also heard about user
> space interrupt handling, but that requires separate kernel patches too
> (I believe it is described in LWN.net, please search there)
>
> Hope it helps.
>
> regards
>
> Mulyadi
>
>
> --
> Kernelnewbies: Help each other learn about the Linux kernel.
> Archive: http://mail.nl.linux.org/kernelnewbies/
> FAQ: http://kernelnewbies.org/faq/
>
>
--
--
-Gaurav
Email: gauravd.chd@xxxxxxxxx
---------------------------------
Read my blog at: http://lkdp.blogspot.com/
---------------------------------
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive: http://mail.nl.linux.org/kernelnewbies/
FAQ: http://kernelnewbies.org/faq/