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

2001/0819/port/portdat.h (diff list | history)

2001/0807/sys/src/9/port/portdat.h:157,1722001/0819/sys/src/9/port/portdat.h:157,171 (short | long | prev | next)
remove Chan.union.mntptr; add Chan.mux; remove Chan.version. change reference counting scheme for Mnts.
rsc Fri Mar 4 12:44:25 2005
1998/0829    
	int	uri;			/* union read index */ 
1993/0501    
	ulong	mountid; 
1993/1013    
	Mntcache *mcp;			/* Mount cache pointer */ 
2001/0819    
	Mnt		*mux;		/* Mnt for clients using me for messages */ 
1991/0428    
	union { 
1994/0225    
		void*	aux; 
1991/0428    
		Qid	pgrpid;		/* for #p/notepg */ 
1994/0225    
		Mnt*	mntptr;		/* for devmnt */ 
1993/0501    
		ulong	mid;		/* for ns in devproc */ 
1991/0428    
	}; 
1994/0225    
	Chan*	mchan;			/* channel to mounted server */ 
1991/0428    
	Qid	mqid;			/* qid of root of mount point */ 
1994/0225    
	Session*session; 
2001/0527    
	char	*version;			/* 9P version */ 
1999/0629    
	Cname	*name; 
1991/0428    
}; 
 
2001/0807/sys/src/9/port/portdat.h:254,2602001/0819/sys/src/9/port/portdat.h:253,260
1991/0428    
 
1993/0501    
struct Mnt 
{ 
	Ref;			/* Count of attached channels */ 
2001/0819    
	Lock; 
	/* references are counted using c->ref; channels on this mount point incref(c->mchan) == Mnt.c */ 
1993/0501    
	Chan	*c;		/* Channel to file service */ 
	Proc	*rip;		/* Reader in progress */ 
	Mntrpc	*queue;		/* Queue of pending requests on this channel */ 
2001/0807/sys/src/9/port/portdat.h:261,2662001/0819/sys/src/9/port/portdat.h:261,267
1999/1105    
	ulong	id;		/* Multiplexer id for channel check */ 
1993/0501    
	Mnt	*list;		/* Free list */ 
1999/1105    
	int	flags;		/* cache */ 
2001/0819    
	char	*version;			/* 9P version */ 
2001/0602    
	Queue	*q;		/* input queue */ 
1993/0501    
}; 
 


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