
On Fri, Sep 23, 2005 at 10:54:29AM +1200, Ian McDonald wrote:
Hi there,
Questions: 1) How are major and minor device numbers assigned? e.g. a webpage will say type "mknod /dev/video0 c 81 0". I understand the syntax but why 81 and 0 for the major and minor numbers?
Listed in /usr/src/linux/Documentation/devices.txt
2) How do these devices you create interact with udev? Permissions and other things seem to disappear after a reboot. Should I be using udev instead of mknod?
Yes. most distros these days seem to put /dev on a "tmpfs" memory-only mount, so it gets regenerated by udev each boot. You shouldn't need to use mknod manually; udev makes device files for all the detected devices attached to your system if you have kernel support for them. What type of webcams are you having problems with?
URLs to articles would be appreciated or just people's comments. I promise to Wiki what I find out as I have been doing for most of my discoveries...
There are a few articles linked to from www.wlug.org.nz/UDev John