All of lore.kernel.org
 help / color / mirror / Atom feed
From: <sensored@CubicC.com>
To: lm-sensors@vger.kernel.org
Subject: [lm-sensors] Single Sensor Check
Date: Fri, 15 Aug 2008 18:38:09 +0000	[thread overview]
Message-ID: <06d401c8ff06$1103d690$330b83b0$@com> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 743 bytes --]

Hello, all!  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 (e.g. in a protected area of memory)? For example,
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... Are
sensors accessible in a similar manner?

Thanks!

-Ken

 


[-- Attachment #1.2: Type: text/html, Size: 5009 bytes --]

[-- Attachment #2: Type: text/plain, Size: 153 bytes --]

_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

             reply	other threads:[~2008-08-15 18:38 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-15 18:38 sensored [this message]
2008-08-16  0:17 ` [lm-sensors] Single Sensor Check Matt Roberds
2008-09-02 21:31 ` sensored
2008-09-05  8:44 ` Jean Delvare

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='06d401c8ff06$1103d690$330b83b0$@com' \
    --to=sensored@cubicc.com \
    --cc=lm-sensors@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.