Changeset 2196

Show
Ignore:
Timestamp:
12/30/03 23:21:40 (9 years ago)
Author:
mds
Message:

better comments for getsysname()

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lm-sensors/trunk/lib/proc.c

    r2165 r2196  
    414414        If that fails, converts common /proc feature names 
    415415        to their sysfs equivalent, and uses common sysfs magnitude. 
     416        Common magnitudes are #defined above. 
     417        Common conversions are as follows: 
     418                fan%d_div -> fan_div%d 
     419                fan%d_min -> fan_min%d 
     420                fan%d -> fan_input%d 
     421                in%d_max -> in_max%d 
     422                in%d_min -> in_min%d 
     423                in%d -> in_input%d 
     424                temp%d_over -> temp_max%d (to be changed after kernel patch) 
     425                temp%d_hyst -> temp_min%d ("") 
     426                temp%d_max -> temp_max%d 
     427                temp%d_min -> temp_min%d 
     428                temp%d -> temp_input%d 
     429        AND all conversions listed in the matches[] structure below. 
     430 
    416431        If that fails, returns old /proc feature name and magnitude. 
    417432