plan 9 kernel history: overview | file list | diff list

1990/0312/gnot/main.c (diff list | history)

1990/0310/sys/src/9/gnot/main.c:7,161990/0312/sys/src/9/gnot/main.c:7,30 (short | long | prev | next)
1990/03091    
#include	"ureg.h" 
#include	"init.h" 
 
1990/0312    
typedef struct Boot{ 
	long station; 
	long traffic; 
	char user[NAMELEN]; 
	char server[64]; 
	char line[64]; 
}Boot; 
#define BOOT ((Boot*)0) 
 
char protouser[NAMELEN]; 
 
void unloadboot(void); 
 
1990/03091    
void 
main(void) 
{ 
	Lock l; 
1990/0312    
	unloadboot(); 
1990/03091    
	machinit(); 
	mmuinit(); 
	confinit(); 
1990/0310/sys/src/9/gnot/main.c:28,331990/0312/sys/src/9/gnot/main.c:42,53
1990/03091    
} 
 
void 
1990/0312    
unloadboot(void) 
{ 
	strncpy(protouser, BOOT->user, NAMELEN); 
} 
 
void 
1990/03091    
machinit(void) 
{ 
	int n; 
1990/0310/sys/src/9/gnot/main.c:87,931990/0312/sys/src/9/gnot/main.c:107,113
1990/03091    
	p = newproc(); 
	p->pgrp = newpgrp(); 
	strcpy(p->text, "*init*"); 
	strcpy(p->pgrp->user, "bootes"); 
1990/0312    
	strcpy(p->pgrp->user, protouser); 
1990/03091    
/*	savefpregs(&initfp);	/**/ 
/*	p->fpstate = FPinit;	/**/ 
 
1990/0310/sys/src/9/gnot/main.c:219,2251990/0312/sys/src/9/gnot/main.c:239,245
1990/03091    
	conf.npage = (2*1024*1024)/BY2PG; 
	conf.npte = 500; 
	conf.nmod = 50; 
	conf.nalarm = 50; 
1990/0312    
	conf.nalarm = 1000; 
1990/03091    
	conf.norig = 50; 
	conf.nchan = 100; 
	conf.nenv = 50; 
1990/0310/sys/src/9/gnot/main.c:228,2331990/0312/sys/src/9/gnot/main.c:248,255
1990/03091    
	conf.nmtab = 50; 
	conf.nmount = 100; 
	conf.nmntdev = 5; 
1990/0312    
	conf.nmntbuf = 10; 
	conf.nmnthdr = 10; 
1990/0310    
	conf.nstream = 64; 
	conf.nqueue = 5 * conf.nstream; 
	conf.nblock = 16 * conf.nstream; 


source code copyright © 1990-2005 Lucent Technologies; see license
Plan 9 distribution
comments to russ cox (rsc@swtch.com)