From: "H. Peter Anvin" <hpa@zytor.com>
To: Dan Williams <dan.j.williams@intel.com>
Cc: gregkh@suse.de, linux-kernel@vger.kernel.org,
kay.sievers@vrfy.org, neilb@suse.de, htejun@gmail.com,
lkml@rtr.ca
Subject: Re: [PATCH] sysfs: add /sys/dev/{char, block} to lookup sysfs path by major:minor
Date: Mon, 14 Apr 2008 10:00:46 -0700 [thread overview]
Message-ID: <48038DBE.7010203@zytor.com> (raw)
In-Reply-To: <20080414165036.13697.6532.stgit@dwillia2-linux.ch.intel.com>
Dan Williams wrote:
>
> What are the alternatives?:
> 1/ Add an ioctl to return the path: Doable, but sysfs is meant to reduce
> the need to proliferate ioctl interfaces into the kernel, so this
> seems counter productive.
>
> 2/ Use udev to create these symlinks: Also doable, but it adds a
> udev dependency to utilities that might be running in a limited
> environment like an initramfs.
>
3, of course, is what applications have to do today, which is to do a
full-tree search of sysfs.
Given that this appears to be fairly little code it would make sense to
me; one could argue if /sys/dev/block/8/32 would be better than
/sys/dev/block/8:32, but (a) I don't think it matters and (b) the
non-atomicity of the former would
-hpa
next prev parent reply other threads:[~2008-04-14 18:52 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-04-14 16:57 Dan Williams
2008-04-14 17:00 ` H. Peter Anvin [this message]
2008-04-15 3:13 ` SL Baur
2008-04-15 4:46 ` Dan Williams
2008-04-15 7:08 ` SL Baur
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=48038DBE.7010203@zytor.com \
--to=hpa@zytor.com \
--cc=dan.j.williams@intel.com \
--cc=gregkh@suse.de \
--cc=htejun@gmail.com \
--cc=kay.sievers@vrfy.org \
--cc=linux-kernel@vger.kernel.org \
--cc=lkml@rtr.ca \
--cc=neilb@suse.de \
/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
Powered by JetHome