What's the difference between ATTRS and ATTR in udev rules? Aren't both attributes? Why the distinction?
Linux – Difference Between ATTRS and ATTR in udev Rules
linuxudev
linuxudev
What's the difference between ATTRS and ATTR in udev rules? Aren't both attributes? Why the distinction?
Best Answer
The singular form of
udev
criteria (KERNEL
,SUBSYSTEM
,DRIVER
,ATTR
) only match the device being added, whereas the plural forms (includingATTRS
) match the device being added or any of its parent devices.See the Writing udev rules guide for details.