Changeset 1610

Show
Ignore:
Timestamp:
11/16/02 05:06:02 (11 years ago)
Author:
mds
Message:

updates

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lm-sensors/trunk/doc/developers/proc

    r1447 r1610  
    88An alternative method that some programs use is to access the /proc 
    99files directly. This document briefly describes the standards that 
    10 the drivers follow, so that an application program can access 
    11 this data in a simple and consistent way. 
     10the drivers follow, so that an application program can scan for 
     11entries and access this data in a simple and consistent way. 
    1212 
    1313Note that not all chip drivers adhere to this standard. 
     
    2525by user programs. 
    2626 
    27 As each chip gets its own directory under /proc/sys/dev/sensors. 
     27Each chip gets its own directory under /proc/sys/dev/sensors. 
    2828The format is either chip-i2c-bus-hexaddress or chip-isa-hexaddress. 
    2929(Exception - chip lm78-j has a '-' in it - should this be changed??) 
     30New dummy drivers may present chips as chip-busname-hexaddress. 
    3031 
    3132All /proc values are integers or floating point numbers. 
    3233There is no facility in the lm_sensors package for drivers 
    33 to output general strings via /proc. 
     34to output general strings via /proc. This facility may be added 
     35in the future. 
    3436 
    3537Guidelines for new entries: 
    3638        - 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. 
    3841 
    3942 
     
    4750alarms    1     Alarm bitmask. 
    4851                Read only. 
    49                 Integer representation of one, two, or three bytes. 
     52                Integer representation of one to four bytes. 
    5053                A '1' bit means an alarm. 
    5154                Chips should be programmed for 'comparator' mode so that 
     
    6366                same format as 'alarms' with same bit locations. 
    6467                 
     68curr[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 
    6575fan[1-3]  2     Fan minimum and input value. 
    6676                Two integers indicating RPM. 
     
    95105                        in8     varies 
    96106 
    97 pwm[1-3]  1- 2  Pulse width modulation fan control. 
    98                 Integer 0 - 100, read/write. 
     107pwm[1-3]  1-2   Pulse width modulation fan control. 
     108                Integer 0 - 255, read/write. 
     109                255 is max or 100%. 
    99110                Corresponds to the fans 1-3. 
    100111                Second value, if present, is an enable (0 or 1) 
     
    107118                Floating point values XXX.X or XXX.XX in degrees Celcius. 
    108119                '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, 
    110122                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. 
    114129 
    115130vid        1    CPU core voltage.