Re: /dev Questions

From: Greg KH (greg@kroah.com)
Date: Thu May 01 2003 - 11:01:37 EST


On Thu, May 01, 2003 at 10:56:12AM -0400, Scott Robert Ladd wrote:
> 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
-
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/



This archive was generated by hypermail 2b29 : Wed May 07 2003 - 22:00:13 EST