I wrote a driver that exposes I2C registers via an IIO device, this device operates in direct mode (read/write directly to files in sysfs), the files are correctly created in sysfs and work fine.
I would like to expose these files in a user-friendly way, I was thinking of creating symlinks to the sysfs files with a udev rule so that instead of having to read
/sys/bus/i2c/devices/5-0042/iio\:device1/in_pressure_raw
the user can read from a file like /run/the_tank/pressure
.
What's the best place for such files? /dev
? /run
?
Asked by Pedru
(101 rep)
Aug 6, 2024, 11:52 AM
Last activity: Aug 6, 2024, 12:47 PM
Last activity: Aug 6, 2024, 12:47 PM