Skip to contentSkip to conversation

/dev Questions

DISCUSSION Scott Robert Ladd 3 participants 4 messages May 1, 2003 – May 2, 2003

lore
Share & tools
lore
#0 lore raw

Why does /dev include devices that do not exist?

Wouldn't it be friendlier to only list existing devices?

Or am I missing something obvious?

Signature · 2 lines
Scott Robert Ladd
Coyote Gulch Productions (http://www.coyotegulch.com)
#1 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Quoted 5 lines · Scott Robert Ladd

Why does /dev include devices that do not exist?

Wouldn't it be friendlier to only list existing devices?

Or am I missing something obvious?

yea, you're missing devfs. :)

- --
Regards Michael Büsch
http://www.8ung.at/tuxsoft
17:07:51 up 1:47, 2 users, load average: 1.01, 1.09, 0.99
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE+sTiEoxoigfggmSgRAlBIAJ4sdenCvafLdbY6WxEknH0ADxbfIgCcC8gx c9mxkwFVdS93DLnT6tAJA9Q=
=b4Cq
-----END PGP SIGNATURE-----

#2 lore raw
Quoted 1 line · Michael Buesch

yea, you're missing devfs. :)

Yeah, I finally figured that out. For some reason, I'd missed that item...

...as it is, I think I'll spend some time reading the Documentation folder. Those text files must be there for some good reason... ;)

..Scott

#3 lore raw
In reply to Scott Robert Ladd
Quoted 1 line · Scott Robert Ladd

Why does /dev include devices that do not exist?

/dev is only a bunch of device nodes that knows nothing about any devices physically present in the system.

devfs creates a dynamic filesystem that is managed by the kernel that only shows the devices present in the kernel at that point in time.

udev attempts to manage a /dev partition from userspace by watching all of the hotplug events coming from the kernel that announce device removal and additions.

Hope this helps,

greg k-h