From 5ced89019d00cd986d2254ce466a854045da6a9d Mon Sep 17 00:00:00 2001 From: "Mark D. Studebaker" Date: Tue, 30 Dec 2003 22:21:40 +0000 Subject: [PATCH] better comments for getsysname() git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2196 7894878c-1315-0410-8ee3-d5d059ff63e0 --- lib/proc.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/lib/proc.c b/lib/proc.c index 64fc5765..47ae2735 100644 --- a/lib/proc.c +++ b/lib/proc.c @@ -413,6 +413,21 @@ int sensors_write_proc(sensors_chip_name name, int feature, double value) These should be added in chips.c for all non-standard feature names. If that fails, converts common /proc feature names to their sysfs equivalent, and uses common sysfs magnitude. + Common magnitudes are #defined above. + Common conversions are as follows: + fan%d_div -> fan_div%d + fan%d_min -> fan_min%d + fan%d -> fan_input%d + in%d_max -> in_max%d + in%d_min -> in_min%d + in%d -> in_input%d + temp%d_over -> temp_max%d (to be changed after kernel patch) + temp%d_hyst -> temp_min%d ("") + temp%d_max -> temp_max%d + temp%d_min -> temp_min%d + temp%d -> temp_input%d + AND all conversions listed in the matches[] structure below. + If that fails, returns old /proc feature name and magnitude. References: doc/developers/proc in the lm_sensors package;