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

1991/1206/port/devboot.c (diff list | history)

1991/0427/sys/src/9/port/devboot.c:65,731991/1206/sys/src/9/port/devboot.c:65,70 (short | long | prev | next)
1990/11211    
	error(Eperm); 
1990/0424    
} 
 
/* 
 * sysremove() knows this is a nop 
 */ 
void	  
bootclose(Chan *c) 
{ 
1991/0427/sys/src/9/port/devboot.c:91,991991/1206/sys/src/9/port/devboot.c:88,96
1990/0424    
 
1990/1127    
	switch(c->qid.path & ~CHDIR){ 
1990/0424    
	case Qmem: 
		/* kernel memory.  BUG: shouldn't be so easygoing. BUG: mem mapping? */ 
1991/1206    
		/* kernel memory */ 
1991/0411    
		if(offset>=KZERO && offset<KZERO+conf.npage*BY2PG){ 
1990/0424    
/*			print("%ux, %d\n", c->offset, n);/**/ 
1991/1206    
/* print("%ux, %d\n", c->offset, n);/**/ 
1991/0411    
			if(offset+n > KZERO+conf.npage*BY2PG) 
				n = KZERO+conf.npage*BY2PG - offset; 
			memmove((char*)offset, buf, n); 


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