Re: devfs and /proc/ide/hda

Guest section DW (dwguest@win.tue.nl)
Wed, 28 Feb 2001 16:15:40 +0100


On Wed, Feb 28, 2001 at 09:29:24PM +1100, Glenn McGrath wrote:

> Well leaving it the way it is doesnt make much sense either really, it
> refers to devices that dont exist.

You are mistaken. The existence of a device is unrekated to the name
someone uses to access it. You may well use /tmp/myowndisk instead
of /dev/hda. In fact some programs do precisely that and use mknod()
to temporarily create a device node with known name, since they
cannot guess what name you may be using for the device.

The kernel also uses names, for example in its boot messages,
and it will call the device hda even when you use /tmp/myowndisk.

There is no intrinsic name for a device - at most a conventional name.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/