On Mon, Aug 3, 2009 at 3:45 AM, Robert P. J. Day<rpjday@xxxxxxxxxxxxxx> wrote: > > i'm guessing there's no way to do this but, if you list the file > /proc/devices, you see only the character and block devices and the > major number corresponding to them: > > Character devices: > 1 mem > 4 /dev/vc/0 > 4 tty > 4 ttyS > 5 /dev/tty > 5 /dev/console > 5 /dev/ptmx > 7 vcs > 10 misc > 13 input > 14 sound > 21 sg > 29 fb > ... etc etc ... > > is there any way, from user space, to see the *minor* number region > corresponding to those entries? How about "ls"? e.g: $ ls -li /dev/vcs* 4472 crw-rw---- 1 vcsa tty 7, 0 2009-08-01 09:56 /dev/vcs 8296 crw-rw---- 1 vcsa tty 7, 2 2009-08-01 09:56 /dev/vcs2 7 is major number, 0 and 2 are minor number of vcs and vcs2 respectively... CMIIW -- regards, Mulyadi Santosa Freelance Linux trainer blog: the-hydra.blogspot.com -- To unsubscribe from this list: send an email with "unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx Please read the FAQ at http://kernelnewbies.org/FAQ