From: Nico Golde <nion@gmx.net>
To: linux-acpi@vger.kernel.org
Subject: inconsistency in /proc/acpi directory structure?
Date: Thu, 9 Aug 2007 14:39:43 +0200 [thread overview]
Message-ID: <20070809123943.GD3939@ngolde.de> (raw)
[-- Attachment #1: Type: text/plain, Size: 1587 bytes --]
Hi,
I wrote some shared library to get ACPI values for user
space acpi tools and came to a problem.
I check if an ACPI feature exists by checking for its
directory, e.g. /proc/acpi/fan.
The problem with this is, that this gets created when the
specific module is loaded, so if you load the module but
your system does not support it properly you get an empty
directory.
But even checking for an empty directory is not enough since
there comes ibm-acpi (maybe others).
With working fan and usage of ibm-acpi you also get an empty
/proc/acpi/fan dir because you have /proc/acpi/ibm/fan where
you can then find the relevant files.
This sucks, I mean I can implement a workaround for this,
but if asus-acpi would do the same and maybe others would
exists I have to check alot of directories. So why not using
the existing directory structure?
I am not sure if this is a bug in ibm-acpi or an
inconsistency in the kernel since to me it is not obvious to
just create the directory in module modprobing, why not
doing it when dumping the first data to a file?
Why is ibm-acpi not using the existing directory structure
(also wrote to the ibm-acpi guys but with no answer so far,
so I try to get answers here)? Do I miss anything?
I hope this is the right list for my questions, please point
me to the right direction if not.
Kind regards
Nico
P.S Please Cc me, I am not subscribed.
--
Nico Golde - http://ngolde.de - nion@jabber.ccc.de - GPG: 0x73647CFF
For security reasons, all text in this mail is double-rot13 encrypted.
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
next reply other threads:[~2007-08-09 12:39 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-09 12:39 Nico Golde [this message]
2007-08-09 12:54 ` inconsistency in /proc/acpi directory structure? Henrique de Moraes Holschuh
2007-08-09 13:15 ` Henrique de Moraes Holschuh
2007-08-09 16:02 ` Len Brown
2007-08-09 17:45 ` Nico Golde
2007-08-09 22:49 ` Len Brown
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=20070809123943.GD3939@ngolde.de \
--to=nion@gmx.net \
--cc=linux-acpi@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.