Changeset 1610
- Timestamp:
- 11/16/02 05:06:02 (11 years ago)
- Files:
-
- 1 modified
-
lm-sensors/trunk/doc/developers/proc (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lm-sensors/trunk/doc/developers/proc
r1447 r1610 8 8 An alternative method that some programs use is to access the /proc 9 9 files directly. This document briefly describes the standards that 10 the drivers follow, so that an application program can access11 this data in a simple and consistent way.10 the drivers follow, so that an application program can scan for 11 entries and access this data in a simple and consistent way. 12 12 13 13 Note that not all chip drivers adhere to this standard. … … 25 25 by user programs. 26 26 27 As each chip gets its own directory under /proc/sys/dev/sensors.27 Each chip gets its own directory under /proc/sys/dev/sensors. 28 28 The format is either chip-i2c-bus-hexaddress or chip-isa-hexaddress. 29 29 (Exception - chip lm78-j has a '-' in it - should this be changed??) 30 New dummy drivers may present chips as chip-busname-hexaddress. 30 31 31 32 All /proc values are integers or floating point numbers. 32 33 There is no facility in the lm_sensors package for drivers 33 to output general strings via /proc. 34 to output general strings via /proc. This facility may be added 35 in the future. 34 36 35 37 Guidelines for new entries: 36 38 - If there are multiple values, some r/w and some r/o, 37 put the r/w ones first 39 put the r/w ones first. 40 - Additional non-standard values should be after the standard values. 38 41 39 42 … … 47 50 alarms 1 Alarm bitmask. 48 51 Read only. 49 Integer representation of one , two, or threebytes.52 Integer representation of one to four bytes. 50 53 A '1' bit means an alarm. 51 54 Chips should be programmed for 'comparator' mode so that … … 63 66 same format as 'alarms' with same bit locations. 64 67 68 curr[1-n] 3 Current max, min or hysteresis, and input value. 69 Floating point values XXX.X or XXX.XX in Amps. 70 The second value is preferably a hysteresis value, 71 reported as a absolute current, NOT a delta from 72 the max value. 73 First two values are read/write and third is read only. 74 65 75 fan[1-3] 2 Fan minimum and input value. 66 76 Two integers indicating RPM. … … 95 105 in8 varies 96 106 97 pwm[1-3] 1- 2 Pulse width modulation fan control. 98 Integer 0 - 100, read/write. 107 pwm[1-3] 1-2 Pulse width modulation fan control. 108 Integer 0 - 255, read/write. 109 255 is max or 100%. 99 110 Corresponds to the fans 1-3. 100 111 Second value, if present, is an enable (0 or 1) … … 107 118 Floating point values XXX.X or XXX.XX in degrees Celcius. 108 119 'temp' is used if there is only one temperature sensor on the 109 chip. Temp1 is generally the sensor inside the chip itself, 120 chip; for multiple temps. start with 'temp1'. 121 Temp1 is generally the sensor inside the chip itself, 110 122 generally reported as "motherboard temperature". 111 Temp2 and temp3 are generally external sensors, 112 the thermal diode inside the CPU, generally reported as 113 "CPU temperature". 123 Temp2 and temp3 are generally sensors external to the chip 124 itself, for example the thermal diode inside the CPU or a 125 termistor nearby. The second value is preferably a hysteresis 126 value, reported as a absolute temperature, NOT a delta from 127 the max value. 128 First two values are read/write and third is read only. 114 129 115 130 vid 1 CPU core voltage.
