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

1992/0318/port/portdat.h (diff list | history)

1992/0309/sys/src/9/port/portdat.h:156,1631992/0318/sys/src/9/port/portdat.h:156,163 (short | long | prev | next)
Move Proc.stream out of union. Add Qinfo.nodelim. Format edits. Remove GLOBAL. Change devchar. Add CHLEN and auth message.s
rsc Fri Mar 4 12:44:25 2005
1991/0428    
	Mount	*mnt;			/* mount point that derived Chan */ 
	ulong	mountid; 
	int	fid;			/* for devmnt */ 
1992/0318    
	Stream	*stream;		/* for stream channels */ 
1991/0428    
	union { 
		Stream	*stream;	/* for stream channels */ 
		void	*aux; 
		Qid	pgrpid;		/* for #p/notepg */ 
		int	mntindex;	/* for devmnt */ 
1992/0309/sys/src/9/port/portdat.h:579,5841992/0318/sys/src/9/port/portdat.h:579,585
1991/0428    
	void (*close)(Queue*); 
	char *name; 
	void (*reset)(void);		/* initialization */ 
1992/0318    
	char nodelim;			/* True if stream does not preserve delimiters */ 
1991/0428    
	Qinfo *next; 
}; 
 
1992/0309/sys/src/9/port/portdat.h:590,5961992/0318/sys/src/9/port/portdat.h:591,598
1991/0724    
#define QHIWAT	0x4			/* queue has gone past the high water mark */	 
1991/0428    
#define QDEBUG	0x8 
 
struct Queue { 
1992/0318    
struct Queue 
{ 
1991/0428    
	Blist; 
	int	flag; 
1991/0724    
	Qinfo	*info;			/* line discipline definition */ 
1992/0309/sys/src/9/port/portdat.h:603,6091992/0318/sys/src/9/port/portdat.h:605,612
1991/0724    
	void	*ptr;			/* private info for the queue */ 
1991/0428    
}; 
 
struct Stream { 
1992/0318    
struct Stream 
{ 
1991/0724    
	QLock;				/* structure lock */ 
	short	inuse;			/* number of processes in stream */ 
	short	opens;			/* number of processes with stream open */ 
1992/0309/sys/src/9/port/portdat.h:623,6291992/0318/sys/src/9/port/portdat.h:626,631
1991/0428    
 */ 
#define	RD(q)		((q)->other < (q) ? (q->other) : q) 
#define	WR(q)		((q)->other > (q) ? (q->other) : q) 
#define GLOBAL(a)	(((ulong)(a)) & 0x80000000) 
#define STREAMTYPE(x)	((x)&0x1f) 
#define STREAMID(x)	(((x)&~CHDIR)>>5) 
#define STREAMQID(i,t)	(((i)<<5)|(t)) 
1992/0309/sys/src/9/port/portdat.h:684,6901992/0318/sys/src/9/port/portdat.h:686,692
1991/0428    
extern	Conf	conf; 
extern	ulong	initcode[]; 
extern	Dev	devtab[]; 
extern	char	devchar[]; 
1992/0318    
extern	char	*devchar; 
1991/1102    
extern	char	*conffile; 
1991/0428    
extern	char	*statename[]; 
1991/0705    
extern	Palloc 	palloc; 
1992/0309/sys/src/9/port/portdat.h:696,6981992/0318/sys/src/9/port/portdat.h:698,712
1991/0705    
#define	CHDIR		0x80000000L 
#define	CHAPPEND 	0x40000000L 
#define	CHEXCL		0x20000000L 
1992/0318    
 
/* 
 * auth messages 
 */ 
#define CHLEN		8 
enum{ 
	FScchal	= 1, 
	FSctick, 
 
	RXschal	= 0, 
	RXstick	= 1, 
}; 


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