Can someone please clarify and distinct the main difference between udev
and /dev and its significance - in easy to understand terms...please?
Thank you kindly.
It sounds like you're a little confused as to what udev, devfs, and /dev
is (unless I'm reading your post incorrectly). Hopefully the 3rd point
of this article will clarify somethings for you:
http://www.gentoo.org/doc/en/migration-to-2.6.xml
...Ric
--
Send email to Ric using: rdefrance_NO_SPAM_@_NO_SPAM_gmail.com
Just remove both instances of "_NO_SPAM_"
== Do you, uh... Gentoo? Gentoooo-hooo!! ==
udev, on the other hand, is a program (daemon) that manages the files
in /dev. devfs and udev pretty much do the same thing, but each has its
advantages and disadvantages. you can google for udev/devfs to find
more info.
i hope this helps
More specifically, /dev is the directory Linux and UNIX systems use to store
"device special files", which are accessible like files, but are really
interfaces to device drivers. For example, /dev/ttyS0 is a file that's
really a front-end to the serial driver. The original way that device
entries appeared under /dev was if you used the utility mknod to create
them, specifying a pair of integers which where registered with a
particular device driver that handled that sort of device, and a qualifier
'c' or 'b' that specified whether the device was manipulated using the
rules associated with streams of characters (c) or blocks of data (b).
'udev' is a system (a daemon and filesystem) that automagically populates
the contents of /dev with device files that reflect the hardware actually
installed on your machine. With udev, if you plug in a device (like a USB
drive) the entry appears under /dev for the device. udev actually relies on
the the 2.6 sysfs feature that contains information about the system. udev
has some shortcomings in that not all devices are correctly indicated by
sysfs (firewire video being a big one), so it's not for everyone. A good
comporomise is devfs (udev's predecessor) which combines on-disk device
entries with some auto-configuration features.
/root wrote:
--
Remove '.nospam' from e-mail address to reply by e-mail