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

1992/0821/port/devpipe.c (diff list | history)

1992/0714/sys/src/9/port/devpipe.c:254,2591992/0821/sys/src/9/port/devpipe.c:254,264 (short | long | prev | next)
1991/0411    
pipewrite(Chan *c, void *va, long n, ulong offset) 
1990/0227    
{ 
1992/0711    
	USED(offset); 
1992/0821    
 
	/* avoid notes when pipe is a mounted stream */ 
	if(c->flag & CMSG) 
		return streamwrite(c, va, n, 0); 
 
1992/0621    
	if(waserror()) { 
1992/0714    
		postnote(u->p, 1, "sys: write on closed pipe", NUser); 
1990/11211    
		error(Egreg); 
1992/0714/sys/src/9/port/devpipe.c:264,2711992/0821/sys/src/9/port/devpipe.c:269,276
1990/0227    
} 
 
/* 
 *  send a block up stream to the process. 
 *  sleep untill there's room upstream. 
1992/0821    
 *  send a block upstream to the process. 
 *  sleep until there's room upstream. 
1990/0227    
 */ 
static void 
pipeiput(Queue *q, Block *bp) 


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