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

1990/0620/gnot/dat.h (diff list | history)

1990/0614/sys/src/9/gnot/dat.h:421,4271990/0620/sys/src/9/gnot/dat.h:421,428 (short | long | prev | next)
1990/03091    
 */ 
struct Stream { 
	Lock;			/* structure lock */ 
	int	inuse;		/* use count */ 
1990/0620    
	int	inuse;		/* number of processes in stream */ 
	int	opens;		/* number of processes with stream open */ 
1990/0331    
	int	hread;		/* number of reads after hangup */ 
1990/03091    
	int	type;		/* correclation with Chan */ 
	int	dev;		/* ... */ 
1990/0614/sys/src/9/gnot/dat.h:430,4361990/0620/sys/src/9/gnot/dat.h:431,436
1990/03091    
	QLock	wrlock;		/* write lock */ 
	Queue	*procq;		/* write queue at process end */ 
	Queue	*devq;		/* read queue at device end */ 
	char	tag[32];	/* when reading the tag qid */ 
}; 
#define	RD(q)		((q)->other < (q) ? (q->other) : q) 
#define	WR(q)		((q)->other > (q) ? (q->other) : q) 


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