chiark / gitweb /
consistent key naming to match only the event device or include all parent devices
authorKay Sievers <kay.sievers@suse.de>
Sat, 19 Aug 2006 14:06:25 +0000 (16:06 +0200)
committerKay Sievers <kay.sievers@suse.de>
Sat, 19 Aug 2006 14:06:25 +0000 (16:06 +0200)
commit95776dc6ec174f47fa4dd4d8abf5d457223e5dd4
treeff9f2e24f8333d460509c7fb987ce2ecb37605e1
parenteef7c9a385575375a3e3310900022b37777aeb6c
consistent key naming to match only the event device or include all parent devices

This scheme is more consistent and makes it obvious if a match happens
against the event device only, or the full chain of parent devices.

The old key names are now:
  BUS -> SUBSYSTEMS
  ID -> KERNELS
  SYSFS -> ATTRS
  DRIVER -> DRIVERS

Match keys for the event device:
  KERNEL
  SUBSYSTEM
  ATTR
  DRIVER (in a future release, for now the same as DRIVERS)

Match keys for all devices along the parent device chain:
  KERNELS
  SUBSYSTEMS
  ATTRS
  DRIVERS

ID, BUS, SYSFS are no longer mentioned in the man page but still work.
DRIVER must be converted to DRIVERS to match the new scheme. For now,
an error is logged, if DRIVER is used. In a future release, the DRIVER
key behaviour will change.
15 files changed:
extras/scsi_id/scsi_id.c
extras/scsi_id/scsi_serial.c
extras/usb_id/usb_id.c
test/udev-test.pl
udev.7
udev.h
udev.xml
udev_db.c
udev_device.c
udev_node.c
udev_rules.c
udev_rules.h
udev_rules_parse.c
udev_sysfs.c
udevinfo.c