LNEXT
ONELCLEAN
UTERMINAL
TERMINAL
NEXT
$V1$
HILINE
PAUSE
MASTER1
* name vsiz msk typ hndlr na bmaj cmaj # na vec1 vec2 vec3 vec4
* 1 2 3 4 5 6 7 8 9 10 11 12 13 14
ns546 0 0100 020 intr 0 0 0 1 0 0 0 0 0
clock 1 0100 020 clk 0 0 0 1 0 0 0 0 0
console 1 0037 024 cn 0 0 0 1 0 1 0 0 0
hdsk 1 0027 014 ds 0 1 1 1 0 027 0 0 0
fl360 1 0037 014 fl 0 3 2 1 0 6 0 0 0
tty 0 0027 024 sy 0 0 4 1 0 0 0 0 0
memory 0 0006 004 mmu 0 0 3 1 0 0 0 0 0
MASTER2
* The following is the line discipline table:
*
tty ttopen ttclose ttread ttwrite ttioctl ttin ttout nulldev
$$$$$
*
MASTER3
* The following entries form the alias table:
*
disk hdsk
floppy fl
serial ser
printer lp
console con
sna sdlc
$$$
MASTER4
* The following entries form the tunable parameter table:
buffers NBUF
inodes NINODE 100
files NFILE 100
mounts NMOUNT 22
coremap CMAPSIZ 100
calls NCALL 35
procs NPROC 40
maxproc MAXUPRC 25
timezone TIMEZONE (8*60)
daylight DSTFLAG 1
cmask CMASK 0
maxprocmem MAXMEM 0
maxbuf MAXBUF 100
GO
One of the most important files on your UNIX system is:
/etc/master
/usr/sys/conf/master
or the master device information table/file.
The master file is used by the system configuration
programs for obtaining device information that enables them
to generate the configuration files. The master file consists
of 4 parts, each separated by a line with $$$, as shown above.
Part 1 - Device information.
Part 2 - Line discipline table.
Part 3 - Names of devices that have aliases.
Part 4 - Tunable parameter information.
Any line with an asterisk (*) in column 1 is a comment.
Part I contains the definitions for the system devices.
Each line has 14 fields with the fields delimited by tabs and/or
blanks. What these fields represent is shown above.
Field 1: - Device name (8 characters maximum).
Field 2: - Interrupt vector size (decimal in bytes).
Field 3: - Device capabilities mask (see manual for details).
Field 4: - Device type indicator (octal) (see manual for details).
Field 5: - Handler prefix (4 characters max).
Field 6: - Not used.
Field 7: - Major device number for block-type device.
Field 8: - Major device number for character-type device.
Field 9: - Maximum number of devices/controller (minor device numbers).
Field 10: - Not used.
Fields 11-14 - Maximum of four interrupt vector addresses. Each address
is followed by a unique letter or a blank.
See above partial typical entries in Part I.
Part II contains definitions for the system line discipline. Each
line has 9 fields. Each field is a maximum of 8 characters
delimited by a blank if less than 8. What these fields represent
is printed above.
Field 1: - Device associated with this line.
Field 2: - Open routine.
Field 3: - Close routine.
Field 4: - Read routine.
Field 5: - Write routine.
Field 6: - Ioctl routine.
Field 7: - Receiver interrupt routine.
Field 8: - Transmitter interrupt routine.
Field 9: - Modem control interrupt routine.
See above partial typical entries in Part II.
Part III contains the definitions for device aliases. Each line has
2 fields.
Field 1: - Alias name of device (8 characters maximum).
Field 2: - Reference name of device as given in Part 1 (8 chars max).
See above partial typical entries in Part III.
Part IV contains the names and default values for tunable
parameters. Each line has 2 or 3 fields.
Field 1: - Parameter name to be used in the config description
file (20 characters max).
Field 2: - Parameter name as it will appear in the resulting
c.c file (20 characters maximum)
Field 3: - Default parameter value ( 20 characters maximum).
This section contains such parameters as: Number of system
buffers, number of system inodes, number of files per process,
number of mounted file systems, and maximum number of processes.
See your config(CP) - Section 5 file for a further listing
of tunable parameters.
See above typical entries in the fourth section
of the master file.
Now please look at the content
of the master file on your
UNIX system by printing its
content on your screen:
$PROMPT$
That is correct!
You've got it on the 2nd try.
Good, you understand the concept.
Please type $COMMAND$
Please type $COMMAND$
You will be helped this time!
$PROMPT$
FORGET1
$COMMAND$
Please observe the result above.
NOTE: Only the superuser has read
permission for this file. Here
you will see a typical master
file rather than the one on your
system.
* @(#)master 3.4
* The following devices are those that can be specified in the system
* description file. The name specified must agree with the name shown.
*
1 2 3 4 5 6 7mb 8mc 9 10
nec 4 677 05 nec 4 0 0 2 6 tty
wd 4 1577 15 wd 4 2 7 4 6
ios 1 677 404 ios 4 0 3 8 7 tty iosinfo
tw 1 37 54 tw 0 4 13 1 5
tw 1 37 54 tw 0 5 13 1 5
tw 1 37 54 tw 0 6 13 1 5
so 1 37 44 so_ 0 0 14 1 5
mee 1 0 405 mee 0 0 0 1 5
nt 4 37 344 nt_ 0 0 15 1 5
tp 1 1477 414 tp 0 3 8 4 7
xl 1 1577 414 xl 0 1 6 4 7
hpm 0 23 244 hpm 0 0 10 1 6
hp 3 1677 5 hp 1 0 11 8 6 tty c_info
cp 1 1477 404 cp 4 0 9 1 7
om 8 1477 6 om 4 0 12 8 7
mpc 20 1477 6 mpc 4 0 5 4 6
bm 0 400 40 bm 0 0 0 1 6
hd 0 400 40 hd 0 0 0 1 6
vpm 0 400 40 vpm 0 0 0 1 6
bt 0 400 40 bt 0 0 0 1 6
gs 0 400 40 gs 0 0 0 1 6
pi 0 400 40 pi 0 0 0 1 6
*
* The following devices must not be specified in the system description
* file; they are here to supply information to the config program.
memory 0 6 324 mm 0 0 1 1 0
tty 0 27 324 sy 0 0 4 1 0
console 0 27 324 con 0 0 2 1 0
errlog 0 34 324 err 0 0 25 1 0
* Prf MAY appear in the system description file.
prf 0 7 304 prf 0 0 26 1 0
* The following lines were added to support SCSI devices:
*
ha 1 40 704 ha_ 4 0 24 0 7
sd 0 1527 54 sd 4 7 22 16 7 ucb
ss 0 1577 54 ss 4 8 23 3 7 ssucb
$$$
* The following entries form the alias table:
*
$$$
*
* The following entries form the tunable parameter table:
*
buffers NBUF
inodes NINODE
files NFILE
mounts NMOUNT
swapmap SMAPSIZ
calls NCALL
procs NPROC
texts NTEXT
clists NCLIST
dmanpb DMANPB
klns KLNS
monflg MONFLG 0
sabufs NSABUF 0
power POWER 0
maxproc MAXUP 25
* hashbuf must be a power of 2
hashbuf NHBUF 64
physbuf NPBUF 4
mesg MESG 0
msgmap MSGMAP 100
msgmax MSGMAX 8192
msgmnb MSGMNB 16384
msgmni MSGMNI 50
msgssz MSGSSZ 8
msgtql MSGTQL 40
msgseg MSGSEG 1024
sema SEMA 0
semmap SEMMAP 10
semmni SEMMNI 10
semmns SEMMNS 60
semmnu SEMMNU 30
semmsl SEMMSL 25
semopm SEMOPM 10
semume SEMUME 10
semvmx SEMVMX 32767
semaem SEMAEM 16384
shmem SHMEM 0
shmmax SHMMAX (4*0x8000)
shmmin SHMMIN 1
shmmni SHMMNI 64
shmseg SHMSEG 6
shmbrk SHMBRK 16
shmall SHMALL 256
sti _STI_ 0
tslice TIMESLICE 100
NOTDOS