Charles.Forsyth20060303-partialeea662d19 years agoHistory
99 lines · 1.6 KB · Text
RawDownload
.TH INIT 8.SH NAMEinit: emuinit, osinit \- Inferno initialisation.SH SYNOPSIS.EXInit: module{	init: fn();};.EE.PP.B /dis/emuinit.dis.PP.B #/./osinit.dis.SH DESCRIPTIONBoth.IR emu (1)and the native kernels run a Dis program to initialise the system..PP.I Emuinitis the default initialisationprogram for.IR emu (1)..I Emusets the environment variable(see.IR env (3)).B /env/emuargsto the command line originally given to.IR emu ,which has the following form:.IP.B emu.RB [ \-d ][.I command.RI [ " arg ..." ]].PP.I Emuinituses the value of.B emuargsto decide which command to start and its arguments.The default.I commandis.BR /dis/sh.dis ,unless the.B \-doption is given, in which case.B /dis/lib/srv.disis used by default instead, to cause.I emuto run on the host system as a server (`daemon' mode)..PP.I Osinitis built-in to the.IR root (3)of native kernels.Although the kernel uses the fixed name.B #/./osinit.disthe contents are taken from one of the files in.B /os/initselected by the.B initsection of the kernel configuration file..IR Osinit 'saction is platform-specific in detail, but might include:building an initial.B /devby mounting device drivers;binding the physical network driver (eg,.IR ether (3))into.B /netand initialising.IR ip (3),usually setting addresses and routes using.BR bootp ;attaching to a remote file system;setting up flash translation using.IR ftl (3);starting.I dossrvor.I 9660srv(see.IR dossrv (4)),or.IR kfs (3)to serve local files from disk or flash memory..SH FILES.B /env/emuargs.SH SOURCE.B /appl/cmd/emuinit.b.br.B /os/init/*.b.SH SEE ALSO.IR emu (1)