On Fri, 2008-04-11 at 05:56 -0400, Robert P. J. Day wrote: > i know well enough that, if i write and load a driver that allocates > a device major number and one or more minor numbers, i can see the > allocated major number via /proc/devices. but is there a userspace > way to see the minor number(s)? or, as LDD3 implies, it's my job to > just *know* what those would have been? thanks. > > rday > -- > > ======================================================================== > Robert P. J. Day > Linux Consulting, Training and Annoying Kernel Pedantry: > Have classroom, will lecture. > > http://crashcourse.ca Waterloo, Ontario, CANADA > ======================================================================== > > -- > To unsubscribe from this list: send an email with > "unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx > Please read the FAQ at http://kernelnewbies.org/FAQ > Check out this command in the user space... ls -l /dev it gives some thing like this you can find major no is 2 and 7 and minor are the 23,24,25,37,38,39 etc... crw-rw-rw- 1 root tty 2, 23 2008-04-11 19:55 ptyq7 crw-rw-rw- 1 root tty 2, 24 2008-04-11 19:55 ptyq8 crw-rw-rw- 1 root tty 2, 25 2008-04-11 19:55 ptyq9 crw-rw-rw- 1 root tty 2, 37 2008-04-11 19:55 ptyr5 crw-rw-rw- 1 root tty 2, 38 2008-04-11 19:55 ptyr6 crw-rw-rw- 1 root tty 2, 39 2008-04-11 19:55 ptyr7 crw-rw---- 1 root root 7, 6 2008-04-11 14:26 vcs6 crw-rw---- 1 root root 7, 7 2008-04-11 14:26 vcs7 crw-rw---- 1 root root 7, 8 2008-04-11 19:55 vcs8 crw-rw---- 1 root root 7, 128 2008-04-11 19:55 vcsa crw-rw---- 1 root root 7, 129 2008-04-11 19:55 vcsa1 crw-rw---- 1 root root 7, 130 2008-04-11 14:26 vcsa2 crw-rw---- 1 root root 7, 131 2008-04-11 14:26 vcsa3 crw-rw---- 1 root root 7, 132 2008-04-11 14:26 vcsa4 Regards H. Mohamed Thalib -- To unsubscribe from this list: send an email with "unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx Please read the FAQ at http://kernelnewbies.org/FAQ