public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Rob Landley <rob@landley.net>
To: Greg KH <greg@kroah.com>
Cc: Cornelia Huck <cornelia.huck@de.ibm.com>,
	linux-kernel@vger.kernel.org,
	Michael-Luke Jones <mlj28@cam.ac.uk>,
	Krzysztof Halasa <khc@pm.waw.pl>, Rod Whitby <rod@whitby.id.au>,
	Russell King <rmk@arm.linux.org.uk>,
	david@lang.hm
Subject: Re: Documentation for sysfs, hotplug, and firmware loading.
Date: Mon, 23 Jul 2007 19:26:54 -0400	[thread overview]
Message-ID: <200707231926.55067.rob@landley.net> (raw)
In-Reply-To: <20070721004348.GA14362@kroah.com>

On Friday 20 July 2007 8:43:49 pm Greg KH wrote:
> On Fri, Jul 20, 2007 at 08:21:39PM -0400, Rob Landley wrote:
> > Ok, back up.  /sys/devices does not contain all the information necessary
> > to populate /dev, because it hasn't got things like
> > ramdisks, /dev/zero, /dev/console which are THERE in sysfs, which may or
> > may not be supported by the kernel (the kernel might have ramdisk
> > support, might not).
>
> Welcome to 2007:
>
> $ ls /sys/devices/virtual/mem/
> full  kmem  kmsg  mem  null  port  random  urandom  zero
> $ ls /sys/devices/virtual/tty/
> console  tty12  tty19  tty25  tty31  tty38  tty44  tty50  tty57  tty63
> ptmx     tty13  tty2   tty26  tty32  tty39  tty45  tty51  tty58  tty7
> tty      tty14  tty20  tty27  tty33  tty4   tty46  tty52  tty59  tty8
> tty0     tty15  tty21  tty28  tty34  tty40  tty47  tty53  tty6   tty9
> tty1     tty16  tty22  tty29  tty35  tty41  tty48  tty54  tty60
> tty10    tty17  tty23  tty3   tty36  tty42  tty49  tty55  tty61
> tty11    tty18  tty24  tty30  tty37  tty43  tty5   tty56  tty62
>
> I suggest you take a close look at the kernel before making statements
> like the above :)

I did:

landley@dell:/sys/devices$ ls /sys/devices/virtual
ls: /sys/devices/virtual: No such file or directory
landley@dell:/sys/devices$ cat /proc/version
Linux version 2.6.20-16-generic (root@terranova) (gcc version 4.1.2 (Ubuntu 
4.1.2-0ubuntu4)) #2 SMP Thu Jun 7 20:19:32 UTC 2007

I.E. Ubuntu 7.04, stock.  The most recent release, using a 2.6.20 kernel.

I see that what you're talking about is in 2.6.22.  Back when I started 
writing my document in May, I forgot to check 2.6.22.

> > These things could also, in future, have their major and minor numbers
> > dynamically (even randomly) assigned.  That's been discussed on this
> > list.
>
> I tried that once, it will require some core api kernel changes and a
> lot of infrastrucure work to get that to work properly.  Not that it
> will never happen in the future, but it's just not a trivial change at
> the moment...

Understood.

> thanks,
>
> greg k-h

Rob
-- 
"One of my most productive days was throwing away 1000 lines of code."
  - Ken Thompson.

  reply	other threads:[~2007-07-23 23:27 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-17 21:03 Documentation for sysfs, hotplug, and firmware loading Rob Landley
2007-07-17 21:55 ` Randy Dunlap
2007-07-18  7:58 ` Cornelia Huck
2007-07-18 17:39   ` Rob Landley
2007-07-18 23:33     ` Kay Sievers
2007-07-20  5:14       ` Rob Landley
2007-07-20  7:00         ` Greg KH
2007-07-20  7:54           ` Cornelia Huck
2007-07-20  8:09             ` Greg KH
2007-07-21  3:48               ` Rob Landley
2007-07-21  6:23           ` Rob Landley
2007-07-18 23:40     ` Greg KH
2007-07-21  0:37       ` Rob Landley
2007-07-19  8:16     ` Cornelia Huck
2007-07-21  0:21       ` Rob Landley
2007-07-21  0:43         ` Greg KH
2007-07-23 23:26           ` Rob Landley [this message]
2007-07-24  7:38             ` Cornelia Huck
2007-07-21  0:49         ` Greg KH
2007-07-21  0:52         ` Greg KH
2007-07-21  6:32           ` Rob Landley
2007-07-18 10:33 ` Kay Sievers
     [not found] <8I2t1-7jt-5@gated-at.bofh.it>
     [not found] ` <8IlPa-3Gl-61@gated-at.bofh.it>
     [not found]   ` <8IzyM-86P-47@gated-at.bofh.it>
     [not found]     ` <8Jb1c-7vL-3@gated-at.bofh.it>
     [not found]       ` <8Jbuh-84N-3@gated-at.bofh.it>
2007-07-21 12:14         ` Bodo Eggert
2007-07-23 21:49           ` Rob Landley
2007-08-05 12:57             ` Bodo Eggert
2007-07-24  6:38           ` Greg KH
2007-07-25 19:28             ` Rob Landley

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=200707231926.55067.rob@landley.net \
    --to=rob@landley.net \
    --cc=cornelia.huck@de.ibm.com \
    --cc=david@lang.hm \
    --cc=greg@kroah.com \
    --cc=khc@pm.waw.pl \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mlj28@cam.ac.uk \
    --cc=rmk@arm.linux.org.uk \
    --cc=rod@whitby.id.au \
    /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