I did not use udevadm monitor. Tried it, it shows udev events :) but i can
not get those events in c program.   poll() seems to be ok. Can I poll() on
a directory?

On Tue, Apr 14, 2009 at 11:01 AM, Greg KH <[email protected]> wrote:

> On Tue, Apr 14, 2009 at 10:59:12AM +0530, Prashant Bhole wrote:
> > Hi Grag,
> > I have already tried kobject_uevent. I thought kobject_uevent will notify
> > about the changes. But that didn't work. I think netlink is the only way
> to
> > asynchronously communicate with user space. Is there any other way?
>
> kobject_uevent uses netlink :)
>
> What did you do to see if it worked or not?  Did you run
>        udevadm monitor
>
> If not, please try that to see all uevents coming from the kernel.
>
> Or, use poll on the sysfs file and set up the poll in the kernel
> properly.
>
> Hope this helps,
>
> greg k-h
>



-- 
~p~r~a~s~h~a~n~t~

Reply via email to