From: Andreas Jellinghaus <aj@dungeon.inka.de>
To: linux-kernel@vger.kernel.org
Subject: Re: ANNOUNCE: User-space System Device Enumeration (uSDE)
Date: Tue, 28 Oct 2003 23:59:14 +0100 [thread overview]
Message-ID: <pan.2003.10.28.22.59.13.441436@dungeon.inka.de> (raw)
In-Reply-To: <Pine.LNX.4.33.0310280901490.7139-100000@osdlab.pdx.osdl.net>
> I find it difficult to see your justification for designing a project from
> scratch instead of contributing your time, effort, and ideas to a pair of
> already existing, albeit immature, projects that do exactly the same
> thing.
Hi Patric,
maybe you can tell me:
with devfs it is _very_ simple to see what a driver does, and what
information it passes on devices. it is the major and minor number,
the device type, a name, and a default permissions (that does not
require changes in most cases).
sysfs is very sparse:
- no (explicit) device type
(/sys/block/ has block devices, the rest is char.)
- no default permissions
(the driver author often knows well, if a device should be secured
or not. why can't he pass that information?)
- only plain names like old /dev. I still can't see how any user space
tool can find out, that my /sys/block/hda/ is a hard disk, and
/sys/block/hdc/ is a cdrom. how could any tool create /dev/discs/ and
/dev/cdrom/ devices without that distinction?
- why is a usb printer class usb? I thought that was the bus? shouldn't
it be class printer (or "lp" or something like that)? how can any
tool create /dev/printers/ devices, if it cannot see how some usb
device is a printer or not?
and how would some driver create additional export information for many
devices? understanding how floppy.c creates devfs devices for all those
fd0u1440 and friend devices is easy. but how would that driver create
information on those devices via sysfs?
I don't know exactly what the problem with devfs is, but maybe it is
because devfs is a filesystem? if so, could devfs be turned into a
/proc/ file, so we can get all those information currently registered
by all or most devices via that file, and some small userspace tool
has a chance to create a devfs like /dev/?
if sysfs doesn't gather and export the same amount of information
devfs does, I don't know how any tool based on sysfs can ever
seriously replace it. you want people to join current effords
(i.e, udev+sysfs). with many open questions I don't see how that
is possible?
finishing the sysfs documentation and porting some drivers like
floppy.c and lp.c to sysfs could help. In its current state, I
don't understand many parts of sysfs, and it looks very natural
to me, that people rather implement something from scratch if it
is easy, than try to understand some very complex.
Regards, Andreas
next prev parent reply other threads:[~2003-10-28 22:58 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-10-27 20:42 Mark Bellon
2003-10-27 21:49 ` Patrick Mochel
2003-10-27 23:09 ` Mark Bellon
2003-10-27 23:39 ` Greg KH
2003-10-28 17:47 ` Mark Bellon
2003-10-28 18:17 ` Greg KH
2003-10-28 19:40 ` John Cherry
2003-10-28 19:53 ` Greg KH
2003-10-28 17:16 ` Patrick Mochel
2003-10-28 18:12 ` Mark Bellon
2003-10-28 18:45 ` Chris Friesen
2003-10-28 18:48 ` Greg KH
2003-10-28 22:59 ` Andreas Jellinghaus [this message]
2003-10-29 1:59 ` Greg KH
2003-10-28 17:29 ` Lars Marowsky-Bree
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=pan.2003.10.28.22.59.13.441436@dungeon.inka.de \
--to=aj@dungeon.inka.de \
--cc=linux-kernel@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 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®