Sign me up....
A message that is not in the archive (sent off-list or not yet received): [email protected]
On Thu, 09 Sep 2004 13:25:14 -0400, Travis B. Sawyer wrote
Quoted 6 lines
Also: I'm working with a power supply that has i2c for an interface to internal temperatures, faults, etc. Some fields within the i2c registers for the device are ascii. Search the
lm_sensorspage I've found nothing for ascii conversion for the /proc interface. Is there anything? Granted this is a little odd in the use oflm_sensorsfor this, but I was hoping....
There is no room for ASCII strings in the procfs interface (nor sysfs for that matter). However, you can always carry raw ASCII code values, and convert them back to a string in libsensors/sensors. Obviously the interface was not really meant for that, but it is still doable. This is what is done for the Sony Vaio EEPROMs, which contain the machine model name, serial number etc... You should take a look at the eeprom driver, and the eeprom part of libsensors and sensors (especially the vaio part) for an example of how this can be done.
Signature · 2 lines
Jean Delvare http://khali.linux-fr.org/