root/lm-sensors/trunk/doc/developers/sysctl

Revision 108, 0.9 kB (checked in by frodo, 10 years ago)

Restructured the doc directory; added doc/progs; modified some files
to add more up-to-date documentation.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
Line 
1 You can access everything under /proc/sys through the sysctl interface. This
2 is mostly useful for C programs, which can use the sysctl function. Try
3 'man 2 sysctl' for more information.
4
5 As each chip gets its own directory under /proc/sys/dev/sensors, you must
6 somehow know the sysctl id of these directories to access the sensor data.
7 This is done through the file /proc/sys/dev/sensors/chips (see sensors.h
8 for the corresponding SYSCTL ids). You can only read this file; it
9 returns an array of struct sensors_chips_data, as defined in sensors.h.
10 Each chip will have its own entry here, with both its sysctl id and
11 the corresponding /proc name.
12
13 Generally, it is a better idea to use the new libsensors to access this
14 data. If you feel you need more than the library offers, please mail us,
15 so we can either add the new functionality to the library, or explain how
16 you can work around it.
Note: See TracBrowser for help on using the browser.