From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Tue, 1 Apr 2003 15:26:31 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Tue, 1 Apr 2003 15:26:31 -0500 Received: from [195.39.17.254] ([195.39.17.254]:7428 "EHLO Elf.ucw.cz") by vger.kernel.org with ESMTP id ; Tue, 1 Apr 2003 15:26:29 -0500 Date: Tue, 1 Apr 2003 22:22:17 +0200 From: Pavel Machek To: Greg KH Cc: Jan Dittmer , Mark Studebaker , azarah@gentoo.org, KML , Dominik Brodowski , sensors@Stimpy.netroedge.com Subject: Re: lm sensors sysfs file structure Message-ID: <20030401202217.GC122@elf.ucw.cz> References: <20030325175603.GG15823@kroah.com> <1048705473.7569.10.camel@nosferatu.lan> <3E82024A.4000809@portrix.net> <20030326202622.GJ24689@kroah.com> <3E82292E.536D9196@paradyne.com> <20030326225234.GA27436@kroah.com> <3E82D678.9000807@portrix.net> <20030327172516.GA32667@kroah.com> <20030330192312.GB6666@zaurus.ucw.cz> <20030331224439.A7000@kroah.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030331224439.A7000@kroah.com> X-Warning: Reading this can be dangerous to your mental health. User-Agent: Mutt/1.5.3i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Hi! > > > > > Floating point values XXX.X or XXX.XX in degrees Celcius. > > > > > > > > If we're restructuring it, I think we should also agree on _one_ common > > > > denominator for all values ie. mVolt and milli-Degree Celsius, so that > > > > no userspace program ever again has know how to convert them to > > > > user-readable values and every user can just cat the values and doesn't > > > > have to wonder if it's centi-Volt, milli-Volt, centi-Degree, dezi-Degree > > > > or whatever. > > > > > > Um, that's what my proposal stated. Do you not agree with it? (You're > > > quoting the existing document above, not my proposed changes.) > > > > Well, you had cV for PSU voltages and > > mV for cpu core voltage. I guess mV > > and mili-deg-C everywhere would be > > nicer. > > I was trying to keep consistant with what the old /proc values were > reported as. I'll go fix that up. > > As for why no floating point, it's a pain in the but to both output a > fixed point number from the kernel into floating point, and to parse a > floating point number from userspace within the kernel, turning it into > a fixed point number. With the proposal I wrote up, none of that is > needed, and all userspace has to do is divide by a factor of 10 to get > the proper value. Okay, I did not realize it is input, too. Outputing reals is really easy; but parsing them. Okay, I guess I'm convinced. You should still use mili-something, not centi-something... Pavel -- When do you have a heart between your knees? [Johanka's followup: and *two* hearts?]