Re: [systemd-devel] Ordering of systemd-tmpfiles-setup.service and systemd-modules-load.service

2021-06-23 Thread Ian Pilcher
On 6/23/21 1:31 PM, Tomasz Torcz wrote: https://github.com/lm-sensors/lm-sensors/blob/master/doc/libsensors-API.txt I'm using ctypes-based bindings for Python from https://github.com/paroj/sensors.py Interesting. I may look into porting my application to that at some point. OTOH, reading

Re: [systemd-devel] Ordering of systemd-tmpfiles-setup.service and systemd-modules-load.service

2021-06-23 Thread Tomasz Torcz
Dnia Wed, Jun 23, 2021 at 01:25:58PM -0500, Ian Pilcher napisał(a): > On 6/23/21 1:18 PM, Tomasz Torcz wrote: > >lm_sensors library ought to be used as abstraction layer, hiding > > specific hwmon? devices. You can call ‘sensors it8728-isa-0a30' > > and have the same output regardless of

Re: [systemd-devel] Ordering of systemd-tmpfiles-setup.service and systemd-modules-load.service

2021-06-23 Thread Ian Pilcher
On 6/23/21 1:18 PM, Tomasz Torcz wrote: lm_sensors library ought to be used as abstraction layer, hiding specific hwmon? devices. You can call ‘sensors it8728-isa-0a30' and have the same output regardless of module loading order. Try sesnors with -u, -j or language bindings for full

Re: [systemd-devel] Ordering of systemd-tmpfiles-setup.service and systemd-modules-load.service

2021-06-23 Thread Tomasz Torcz
Dnia Wed, Jun 23, 2021 at 01:03:08PM -0500, Ian Pilcher napisał(a): > I'd like to ensure that I have a stable path to the sysfs files > associated with the IT8728F hardware monitoring chip in this system. > Depending on the order in which various modules are loaded, I've seen > them show up at

Re: [systemd-devel] Ordering of systemd-tmpfiles-setup.service and systemd-modules-load.service

2021-06-23 Thread Ian Pilcher
On 6/23/21 12:52 PM, Greg KH wrote: sysfs should be "self-contained", trying to add symlinks to it from external places is racy and guaranteed to not work over time. Hmm. Is that true even when the symlink is created by an appropriate udev rule (i.e. linking from /run/$known_location to

Re: [systemd-devel] Ordering of systemd-tmpfiles-setup.service and systemd-modules-load.service

2021-06-23 Thread Greg KH
On Wed, Jun 23, 2021 at 12:27:53PM -0500, Ian Pilcher wrote: > I would like to add a udev rule that creates a symlink to a sysfs > directory, and a subdirectory of /run seem like the right place to put > it. Of course this means that the subdirectory needs to exist. sysfs should be

[systemd-devel] Ordering of systemd-tmpfiles-setup.service and systemd-modules-load.service

2021-06-23 Thread Ian Pilcher
I would like to add a udev rule that creates a symlink to a sysfs directory, and a subdirectory of /run seem like the right place to put it. Of course this means that the subdirectory needs to exist. The device in question is an "it87" hardware monitoring chip, so the module doesn't get loaded

Re: [systemd-devel] Entry-level bugs/features

2021-06-23 Thread Zbigniew Jędrzejewski-Szmek
On Tue, Jun 22, 2021 at 08:15:53PM -0400, Albert Brox wrote: > Hi folks, > > I'm an experienced developer though have never worked on a large C > project before. > Can anyone point me at a relatively approachable bug or feature > request that I can sink my teeth into? > Trying to gain some