Ticket #2347 (closed task: fixed)
How do I efficiently check a single sensor
|Reported by:||ticket||Owned by:||somebody|
Hello! I hope this is the correct forum for this question -- if not, please direct me accordingly.
I need to add a check for an alarm to a single sensor in my C program, and I'd like to do so without the overhead of calling out to an external program and parsing its output (plus all the error-checking, etc.). I have been having some issues compiling lm-sensors (so that I can step through with a debugger), so perhaps you can help me short-circuit this process a little:
Is there a way to read the value of a sensor (all it throws is ALARM or nothing) from somewhere in a protected area of memory? For example, I dmidecode finds an SMBIOS table at a particular memory location, copies it, and just navigates the table to find the values for the DMI info...