Searched hist:"41 f49c0339096d5ed06d15c5e77d3382c125389d" (Results 1 – 1 of 1) sorted by relevance
/openbmc/dbus-sensors/src/ |
H A D | DeviceMgmt.cpp | diff 41f49c0339096d5ed06d15c5e77d3382c125389d Wed Sep 21 19:27:18 CDT 2022 Zev Weiss <zev@bewilderbeest.net> DeviceMgmt: add I2CDeviceParams::deviceStatic() method
This will be used to determine whether a given i2c device is statically instantiated via a device tree or if it's a dynamically-created device managed by userspace. As dbus-sensors daemons assume responsibility for device lifecycle management this can be used to distinguish between static and dynamic device nodes even if a previous process crashed after instantiating one (whereas a simple presence check might mistake a device that was instantiated but not cleaned up for a static device and thus never remove it).
Signed-off-by: Zev Weiss <zev@bewilderbeest.net> Change-Id: I3911b0cace60689766993a8be3b8f160f71de2d1
|