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

1991/0421/port/dev.c (diff list | history)

1991/0414/sys/src/9/port/dev.c:71,821991/0421/sys/src/9/port/dev.c:71,83 (short | long | prev | next)
Copy nc->aux in devclone. Bug fix confusion: now walk is returning on error.
rsc Fri Mar 4 12:44:25 2005
1990/0227    
	if(nc == 0) 
		nc = newchan(); 
	nc->type = c->type; 
1991/0421    
	nc->dev = c->dev; 
1990/0227    
	nc->mode = c->mode; 
	nc->qid = c->qid; 
	nc->offset = c->offset; 
	nc->dev = c->dev; 
	nc->flag = c->flag; 
	nc->mnt = c->mnt; 
1991/0421    
	nc->aux = c->aux; 
1990/0303    
	nc->mchan = c->mchan; 
	nc->mqid = c->mqid; 
1990/0227    
	return nc; 
1991/0414/sys/src/9/port/dev.c:119,1251991/0421/sys/src/9/port/dev.c:120,129
1991/0414    
		return 0; 
	} 
	nc = (*devtab[c->type].clone)(c, 0); 
	(*devtab[nc->type].walk)(nc, name); 
1991/0421    
	if((*devtab[nc->type].walk)(nc, name) == 0){ 
		close(nc); 
		nc = 0; 
	} 
1991/0414    
	poperror(); 
	return nc; 
1991/0411    
} 


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