diff options
author | Paul Oliver <contact@pauloliver.dev> | 2025-01-27 14:51:28 +0000 |
---|---|---|
committer | Paul Oliver <contact@pauloliver.dev> | 2025-01-29 04:12:57 +0000 |
commit | 9d2f95bb58f856aaf9142426e90e5783c98af8f1 (patch) | |
tree | 9453d5cbed1ae2165e6c8f0824ded00d2372e7bd /udev | |
parent | 9310ba7e17f97c4570dce33552b3605155ca5c0c (diff) |
Makes doc-comments cleaner/more elegant
Diffstat (limited to 'udev')
-rw-r--r-- | udev/98-gpiod.rules | 2 | ||||
-rw-r--r-- | udev/99-pwm.rules | 10 |
2 files changed, 7 insertions, 5 deletions
diff --git a/udev/98-gpiod.rules b/udev/98-gpiod.rules index 4961d33..01a05ed 100644 --- a/udev/98-gpiod.rules +++ b/udev/98-gpiod.rules @@ -1,2 +1,2 @@ -# Grants GPIO access to the gpio group. +# This rule grants the `gpio` group access to GPIO devices. SUBSYSTEM=="gpio", KERNEL=="gpiochip*", GROUP="gpiod", MODE="0660" diff --git a/udev/99-pwm.rules b/udev/99-pwm.rules index 2b95f14..8407ebe 100644 --- a/udev/99-pwm.rules +++ b/udev/99-pwm.rules @@ -1,7 +1,9 @@ -# Grants PWM access to the pwm group. Because UDEV is async, there might be a -# slight delay between changes to the directory tree (e.g., a new PWM channel -# being added) and changes to permissions taking effect. The command -# `udevadm settle` can be used to wait for the rule to finish execution. +# This UDEV rule provides the `pwm` user group with access to PWM devices. +# Note that UDEV operates asynchronously, so there may be a slight delay +# between changes to the directory structure (e.g., when a new PWM channel is +# added) and the corresponding permission updates. To ensure the rule has been +# fully applied, you can use the command `udevadm settle` to wait for the UDEV +# process to complete. SUBSYSTEM=="pwm*", PROGRAM="/bin/sh -c ' \ chown -R root:pwm /sys/class/pwm ; \ chmod -R 770 /sys/class/pwm ; \ |