From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
To: Laurent Pinchart <laurentp@cse-semaphore.com>
Cc: linuxppc-dev@ozlabs.org
Subject: Re: What's the preferred way to export board information to userspace ?
Date: Tue, 02 Oct 2007 18:39:23 +1000 [thread overview]
Message-ID: <1191314363.22572.9.camel@pasglop> (raw)
In-Reply-To: <200710021011.00224.laurentp@cse-semaphore.com>
On Tue, 2007-10-02 at 10:10 +0200, Laurent Pinchart wrote:
> Hi everybody,
>
> it seems linuxppc-embedded is going away. I should have posted this here in
> the first place, so sorry for the cross-post.
>
> I need to export some read-only board-specific information (serial number,
> boot mode jumper configuration, ...) that are collected from various locations
> (CPLD, flash, U-Boot, ...) to userspace applications.
>
> Could anyone advice me on the preferred way to do that ? I can easily add a
> quick&dirty sysfs/procfs based implementation, but I was wondering if there
> was some kind of clean and generic way.
Userspace can read /proc/device-tree no ? :-)
Appart from that, it's common to stick that sort of thing
in /proc/cpuinfo... /sys/firmware may be an option if you have shitloads
of stuff ..
Ben.
next prev parent reply other threads:[~2007-10-02 8:39 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-02 8:10 What's the preferred way to export board information to userspace ? Laurent Pinchart
2007-10-02 8:39 ` Benjamin Herrenschmidt [this message]
2007-10-02 9:02 ` Laurent Pinchart
-- strict thread matches above, loose matches on Subject: below --
2007-10-01 9:41 Laurent Pinchart
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=1191314363.22572.9.camel@pasglop \
--to=benh@kernel.crashing.org \
--cc=laurentp@cse-semaphore.com \
--cc=linuxppc-dev@ozlabs.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).