home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.linux
- Path: sparky!uunet!cs.utexas.edu!tamsun.tamu.edu!richard
- From: richard@stat.tamu.edu (richard henderson)
- Subject: Re: Major/Minor numbers
- Message-ID: <richard.716248564@stat.tamu.edu>
- Sender: news@tamsun.tamu.edu (Read News)
- Organization: Texas A&M University, College Station
- References: <1992Sep11.025738.8738@athena.mit.edu>
- Date: Fri, 11 Sep 1992 21:56:04 GMT
- Lines: 84
-
- I have been meaning to do this for some time, simply because I
- myself wanted to know if there were any niffty devices that had
- been introduced under my nose.
-
- Below is a list (hopefully complete) of all devices standard to
- linux 0.97.4 (from which this list is derived).
-
- Appreciated are corrections, and additions for devices not standard
- to the distribution.
-
- #----------------------------------------------------------
- # common name major,minor block/character description
-
- ram 1, 0 b ram disk
- mem 1, 1 c read kernel memory
- kmem 1, 2 c same as /dev/mem
- null 1, 3 c data sink
- port 1, 4 c read i/o memory
- zero 1, 5 c source of zeros
-
- # There is apparent support for up to 4 floppy devices.
- # This number appears to be hardwired in.
- # I am open for suggestions for how to name some of the floppy devices.
-
- fdX 2, X b autodetect floppy drive X
- fdX-360 2, X+4 b 360K PC
- fdX-1200 2, X+8 b 1.2M AT
- fdX-??? 2, X+12 b 360K in 720K drive (what is this??)
- fdX-720 2, X+16 b 720K 3 1/2
- fdX-??? 2, X+20 b 360K disk in 1.2M drive
- fdX-??? 2, X+24 b 720K disk in 1.2M drive
- fdX-1440 2, X+28 b 1.44M 3 1/2
-
- # Two hard drives are supported by default. This number is encoded
- # in MAX_HD in linux/kernel/blk_drv/hd.c. The number of partitions
- # appears to be hardcoded.
-
- # In the past, the drives have been numbered with the lowercase letters
- # and the partitions numbered from 1. I propose that the drives be
- # numbered from 0 and the partitions be lettered from 'a'. This makes
- # writing /dev/MAKEDEV easier, and makes things friendlier for those
- # moving between unix platforms.
-
- hdX 3, X*32 b full device
- hd[ab]X 3, X+Y*32 b partition X on hd Y
-
- # The number of virtual consoles is encoded in NR_CONSOLES in
- # linux/include/linux/tty.h. Similarly, the number of serial
- # lines is encoded in NR_SERIALS, and the number of ptys in
- # NR_PTYS.
-
- console 4, 0 c the foreground virtual console
- ttyX 4, X c virtual console
- ttysX 4, X+64 c serial line
- ptyX 4, X+128 c pty master
- ttypX 4, X+192 c pty slave
-
- tty 5, A c "the current tty"
-
- # The number of line printers is encoded in LP_NO which is found in
- # linux/include/linux/lp.h.
-
- lpX 6, X c line printer
-
- # The maximum number of scsi drives is encoded in MAX_SD in
- # linux/kernel/blk_drv/scsi/sd.h
-
- sdX 8, X*16 full device
- sdYX 8, X+Y*16 partition X on sd Y
-
- # The scsi tape code is not yet in place. But for future reference, the
- # number of scsi tapes supported is defined by MAX_ST in
- # linux/kernel/blk_drv/scsi/st.h.
-
- stX 9, X scsi tape -- not implemented
-
- mouse 10, 0 c bus mouse
- psaux 10, 1 c ps/2 mouse
-
- #-------------------------------------------------------------
-
- richard~
- --------
- richard@stat.tamu.edu
-