mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Len Brown <len.brown@intel.com>
To: Matthew Wilcox <matthew@wil.cx>
Cc: Shaohua Li <shaohua.li@intel.com>,
	ACPI Developers <acpi-devel@lists.sourceforge.net>,
	lkml <linux-kernel@vger.kernel.org>, Greg <greg@kroah.com>,
	Patrick Mochel <mochel@digitalimplant.org>,
	Adam Belay <ambx1@neo.rr.com>,
	Alex Williamson <alex.williamson@hp.com>
Subject: /sys/firmware/acpi (Re: [ACPI] [PATCH/RFC 4/4]An experimental implementation for IDE bus)
Date: 09 Nov 2004 00:35:39 -0500	[thread overview]
Message-ID: <1099978538.5519.28.camel@d845pe> (raw)
In-Reply-To: <20041108152450.GB32374@parcelfarce.linux.theplanet.co.uk>

On Mon, 2004-11-08 at 10:24, Matthew Wilcox wrote:
> ... Are we ever going to do anything
> with /sys/firmware/acpi/namespace/ or will it just stay around
> consuming inodes and dentries for no good reason?

When I suggested deleting /sys/firmware/acpi, Patrick replied that his
intention was that real devices would have symbolic links into that
tree.

I think this is not the best way to go.  Two simple reasons come to
mind:

The ACPI device hierarchy reflects the actual layout of the system
devices better than the current /sys/devices/ tree, linking into it from
/sys/devices doesn't fix /sys/devices.  Instead we need to consult ACPI
during the actual construction of /sys/devices/.

While the layout reflects reality, the device names in
/sys/firmware/acpi are arbitrary internal BIOS names, and so there will
never be any consistency between systems such that a human or a program
could have an easy time navigating the tree structure.

The argument in favor of exposing the tree has been for things like Alex
Williamson's patch to invoke ACPI methods by reading /sysfs.  But this
is a really neat solution looking for a problem.  if and when such a
problem is found, the same technique can always be made available under
the real /sys/devices tree.

-Len



      reply	other threads:[~2004-11-09  5:59 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-11-08  4:11 [PATCH/RFC 4/4]An experimental implementation for IDE bus Li Shaohua
2004-11-08  5:15 ` [ACPI] " Hiroshi 2 Itoh
2004-11-08 15:24 ` Matthew Wilcox
2004-11-09  5:35   ` Len Brown [this message]

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=1099978538.5519.28.camel@d845pe \
    --to=len.brown@intel.com \
    --cc=acpi-devel@lists.sourceforge.net \
    --cc=alex.williamson@hp.com \
    --cc=ambx1@neo.rr.com \
    --cc=greg@kroah.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=matthew@wil.cx \
    --cc=mochel@digitalimplant.org \
    --cc=shaohua.li@intel.com \
    /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

all inboxes | Powered by JetHome®