On Tue, Sep 1, 2015 at 6:32 AM, Tom Yan <[email protected]> wrote:
> Is it a limitation or bug that I can only capture remove events with
> purely SUBSYSTEM or KENREL match, but not with ATTR{*} or even DRIVER?
>
AFAIK, the former two come from the uevent itself, but the latter are
always read from sysfs... and during a remove event, the device is not in
sysfs anymore.
(Even more, some sysfs attributes might themselves query data directly from
the device, which wouldn't work well if the device is no longer connected.)
So IMHO you should match on udev's ENV{} instead, and cache the desired
attributes into ENV.
--
Mantas Mikulėnas <[email protected]>
_______________________________________________
systemd-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/systemd-devel