home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / os / linux / 10502 < prev    next >
Encoding:
Text File  |  1992-09-11  |  3.1 KB  |  96 lines

  1. Newsgroups: comp.os.linux
  2. Path: sparky!uunet!cs.utexas.edu!tamsun.tamu.edu!richard
  3. From: richard@stat.tamu.edu (richard henderson)
  4. Subject: Re: Major/Minor numbers
  5. Message-ID: <richard.716248564@stat.tamu.edu>
  6. Sender: news@tamsun.tamu.edu (Read News)
  7. Organization: Texas A&M University, College Station
  8. References: <1992Sep11.025738.8738@athena.mit.edu>
  9. Date: Fri, 11 Sep 1992 21:56:04 GMT
  10. Lines: 84
  11.  
  12. I have been meaning to do this for some time, simply because I
  13. myself wanted to know if there were any niffty devices that had
  14. been introduced under my nose.
  15.  
  16. Below is a list (hopefully complete) of all devices standard to 
  17. linux 0.97.4 (from which this list is derived).
  18.  
  19. Appreciated are corrections, and additions for devices not standard
  20. to the distribution.
  21.  
  22. #----------------------------------------------------------
  23. # common name    major,minor block/character    description
  24.  
  25. ram       1, 0       b    ram disk
  26. mem       1, 1    c    read kernel memory
  27. kmem       1, 2    c    same as /dev/mem
  28. null       1, 3    c    data sink
  29. port       1, 4    c    read i/o memory
  30. zero       1, 5    c    source of zeros
  31.  
  32. # There is apparent support for up to 4 floppy devices.
  33. # This number appears to be hardwired in.
  34. # I am open for suggestions for how to name some of the floppy devices.
  35.  
  36. fdX       2, X    b    autodetect floppy drive X
  37. fdX-360       2, X+4  b    360K PC
  38. fdX-1200   2, X+8  b    1.2M AT
  39. fdX-???    2, X+12 b    360K in 720K drive (what is this??)
  40. fdX-720       2, X+16 b    720K 3 1/2
  41. fdX-???    2, X+20 b    360K disk in 1.2M drive
  42. fdX-???    2, X+24 b    720K disk in 1.2M drive
  43. fdX-1440   2, X+28 b    1.44M 3 1/2
  44.  
  45. # Two hard drives are supported by default.  This number is encoded
  46. # in MAX_HD in linux/kernel/blk_drv/hd.c.  The number of partitions
  47. # appears to be hardcoded.
  48.  
  49. # In the past, the drives have been numbered with the lowercase letters
  50. # and the partitions numbered from 1.  I propose that the drives be
  51. # numbered from 0 and the partitions be lettered from 'a'.  This makes
  52. # writing /dev/MAKEDEV easier, and makes things friendlier for those
  53. # moving between unix platforms.
  54.  
  55. hdX       3, X*32 b    full device
  56. hd[ab]X       3, X+Y*32 b    partition X on hd Y
  57.  
  58. # The number of virtual consoles is encoded in NR_CONSOLES in
  59. # linux/include/linux/tty.h.  Similarly, the number of serial
  60. # lines is encoded in NR_SERIALS, and the number of ptys in
  61. # NR_PTYS.
  62.  
  63. console       4, 0    c    the foreground virtual console
  64. ttyX       4, X    c    virtual console
  65. ttysX       4, X+64 c    serial line
  66. ptyX       4, X+128 c    pty master
  67. ttypX       4, X+192 c    pty slave
  68.  
  69. tty    5, A c        "the current tty"
  70.  
  71. # The number of line printers is encoded in LP_NO which is found in
  72. # linux/include/linux/lp.h.
  73.  
  74. lpX    6, X c        line printer
  75.  
  76. # The maximum number of scsi drives is encoded in MAX_SD in
  77. # linux/kernel/blk_drv/scsi/sd.h
  78.  
  79. sdX    8, X*16        full device
  80. sdYX    8, X+Y*16    partition X on sd Y
  81.  
  82. # The scsi tape code is not yet in place.  But for future reference, the
  83. # number of scsi tapes supported is defined by MAX_ST in 
  84. # linux/kernel/blk_drv/scsi/st.h.
  85.  
  86. stX    9, X        scsi tape -- not implemented
  87.  
  88. mouse    10, 0 c        bus mouse
  89. psaux    10, 1 c        ps/2 mouse
  90.  
  91. #-------------------------------------------------------------
  92.  
  93. richard~
  94. --------
  95. richard@stat.tamu.edu
  96.