All of lore.kernel.org
 help / color / mirror / Atom feed
* inconsistency in /proc/acpi directory structure?
@ 2007-08-09 12:39 Nico Golde
  2007-08-09 12:54 ` Henrique de Moraes Holschuh
  2007-08-09 16:02 ` Len Brown
  0 siblings, 2 replies; 6+ messages in thread
From: Nico Golde @ 2007-08-09 12:39 UTC (permalink / raw)
  To: linux-acpi

[-- 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 --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2007-08-09 22:50 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-09 12:39 inconsistency in /proc/acpi directory structure? Nico Golde
2007-08-09 12:54 ` 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

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.