systemd/rules.d
Max Staudt 04f19d6735 udev: Add /dev/media/by-path symlinks for media controllers
Add persistent symlinks for media controller ("mediaX") devices, based
on their ID_PATH udev properties.

For example, if the uvcvideo driver creates /dev/media0, a persistent
name may be:
/dev/media/by-path/pci-0000:04:00.3-usb-0:1:1.0-media-controller

Persistent links are a handy tool to make scripts self-documenting
during development or in tests, as well as less error prone in case of
devices changing enumeration order. For media controllers, one can
alternatively scan through all of them and look for a matching bus_info
in their struct media_device_info, but the links are much handier when
drafting something by hand.

A similar pattern already exists for Video4Linux /dev/videoX devices,
see 60-persistent-v4l.rules for those.
2024-02-22 19:27:29 +00:00
..
50-udev-default.rules.in udev: add hwdb execution for hidraw subsystem devices 2023-12-25 02:16:44 +09:00
60-autosuspend.rules
60-block.rules
60-cdrom_id.rules
60-dmi-id.rules
60-drm.rules
60-evdev.rules
60-fido-id.rules
60-infiniband.rules
60-input-id.rules
60-persistent-alsa.rules
60-persistent-input.rules
60-persistent-media-controller.rules udev: Add /dev/media/by-path symlinks for media controllers 2024-02-22 19:27:29 +00:00
60-persistent-storage-mtd.rules
60-persistent-storage-tape.rules
60-persistent-storage.rules.in udev: even if a device is a zac device, scsi-$ID_SERIAL will be reserved for it (#30459) 2024-01-16 14:57:07 +09:00
60-persistent-v4l.rules
60-sensor.rules
60-serial.rules
64-btrfs.rules.in
70-camera.rules
70-joystick.rules
70-memory.rules
70-mouse.rules
70-power-switch.rules
70-touchpad.rules
70-uaccess.rules.in
71-seat.rules.in
73-seat-late.rules.in
75-net-description.rules udev: allow/denylist for reading sysfs attributes when composing a NIC name 2023-12-19 19:15:52 +09:00
75-probe_mtd.rules
78-sound-card.rules
80-drivers.rules
80-net-setup-link.rules
81-net-dhcp.rules
82-net-auto-link-local.rules
90-iocost.rules
90-vconsole.rules.in
99-systemd.rules.in Fix systemd-backlight ignoring numbered kbd_backlight entries 2024-01-22 22:03:35 +00:00
meson.build
README

Files in this directory contain configuration for systemd-udevd.service, a
daemon that manages symlinks to device nodes, permissions of devices nodes,
emits device events for userspace, and renames network interfaces.

See man:udev(7) for an overview of the configuration file format, and
man:systemd-udevd.service(8) for a description of service itself.

Use 'systemd-analyze cat-config udev/rules.d' to display the effective config.