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

1990/1126/port/devdk.c (diff list | history)

1990/11211/sys/src/9/port/devdk.c:744,7491990/1126/sys/src/9/port/devdk.c:744,751 (short | long | prev | next)
1990/0312    
{ 
1990/11211    
	if(c->qid.path == CHDIR) 
1990/0312    
		devstat(c, dp, dkdir, dk[c->dev].lines, devgen); 
1990/1126    
	else if(c->qid.path == Dcloneqid) 
		devstat(c, dp, dkdir, 1, devgen); 
1990/0312    
	else 
		devstat(c, dp, dksubdir, Nsubdir, streamgen); 
} 
1990/11211/sys/src/9/port/devdk.c:776,7821990/1126/sys/src/9/port/devdk.c:778,784
1990/0319    
	case Dcloneqid: 
1990/1101    
		dp = &dk[c->dev]; 
1990/0319    
		/* 
1990/0312    
		 *  get an unused device and open it's control file 
1990/1126    
		 *  get an unused device and open its control file 
1990/0312    
		 */ 
		end = &dp->line[dp->lines]; 
		for(lp = &dp->line[dp->ncsc+1]; lp < end; lp++){ 


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