Re: udev_device_get_sysattr_value upon device remove

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

 



On Fri, Dec 3, 2010 at 20:19, Stefan Harjes <stefan.harjes@xxxxxxx> wrote:
> when I get an udev_device from the udev_monitor, because the device has been
> unplugged, the 'udev_device_get_sysattr_value()' call returns 'null' (in my
> case I was looking for the "serial" of an usb_device). From my understanding
> this value should still be cached, even if the device is already removed?

Devices which are removed have no attributes, not in sysfs, not
anywhere else. They are just gone.

> Is there any other way to get this value?

You have to store stuff you want to remember in the udev database,
which is available during remove, everything else is not.

Kay
--
To unsubscribe from this list: send the line "unsubscribe linux-hotplug" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel]     [Linux DVB]     [Asterisk Internet PBX]     [DCCP]     [Netdev]     [X.org]     [Util Linux NG]     [Fedora Women]     [ALSA Devel]     [Linux USB]

  Powered by Linux