Linux – Difference Between ATTRS and ATTR in udev Rules

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 (including ATTRS) match the device being added or any of its parent devices.

See the Writing udev rules guide for details.

Related Question