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

1994/0225/port/portdat.h (diff list | history)

1994/0222/sys/src/9/port/portdat.h:112,1201994/0225/sys/src/9/port/portdat.h:112,120 (short | long | prev | next)
reformatting
rsc Fri Mar 4 12:44:25 2005
1993/0501    
struct Path 
{ 
	Ref; 
	Path	*hash; 
	Path	*parent; 
	Pthash	*pthash; 
1994/0225    
	Path*	hash; 
	Path*	parent; 
	Pthash*	pthash; 
1993/0501    
	char	elem[NAMELEN]; 
}; 
1991/0428    
 
1994/0222/sys/src/9/port/portdat.h:121,1281994/0225/sys/src/9/port/portdat.h:121,128
1991/0428    
struct Chan 
{ 
	Ref; 
1993/0501    
	Chan	*next;			/* allocation */ 
	Chan	*link; 
1994/0225    
	Chan*	next;			/* allocation */ 
	Chan*	link; 
1993/0501    
	ulong	offset;			/* in file */ 
1991/0428    
	ushort	type; 
	ushort	dev; 
1994/0222/sys/src/9/port/portdat.h:130,1491994/0225/sys/src/9/port/portdat.h:130,149
1991/0428    
	ushort	flag; 
	Qid	qid; 
	int	fid;			/* for devmnt */ 
1993/0501    
	Path	*path; 
	Mount	*mnt;			/* mount point that derived Chan */ 
	Mount	*xmnt;			/* Last mount point crossed */ 
1994/0225    
	Path*	path; 
	Mount*	mnt;			/* mount point that derived Chan */ 
	Mount*	xmnt;			/* Last mount point crossed */ 
1993/0501    
	ulong	mountid; 
1993/1013    
	Mntcache *mcp;			/* Mount cache pointer */ 
1991/0428    
	union { 
		void	*aux; 
1994/0225    
		void*	aux; 
1991/0428    
		Qid	pgrpid;		/* for #p/notepg */ 
1992/0620    
		Mnt	*mntptr;	/* for devmnt */ 
1994/0225    
		Mnt*	mntptr;		/* for devmnt */ 
1993/0501    
		ulong	mid;		/* for ns in devproc */ 
1991/0428    
	}; 
	Chan	*mchan;			/* channel to mounted server */ 
1994/0225    
	Chan*	mchan;			/* channel to mounted server */ 
1991/0428    
	Qid	mqid;			/* qid of root of mount point */ 
1993/0501    
	Session *session; 
1994/0225    
	Session*session; 
1991/0428    
}; 
 
struct Dev 
1994/0222/sys/src/9/port/portdat.h:182,2041994/0225/sys/src/9/port/portdat.h:182,204
1993/0501    
{ 
	QLock; 
	int	npt; 
	Path	*root; 
	Path	*hash[NSCACHE]; 
1994/0225    
	Path*	root; 
	Path*	hash[NSCACHE]; 
1993/0501    
}; 
 
struct Mntwalk 
1994/0225    
struct Mntwalk				/* state for /proc/#/ns */ 
1993/0501    
{ 
	ulong	id; 
	Mhead	*mh; 
	Mount	*cm; 
1994/0225    
	Mhead*	mh; 
	Mount*	cm; 
1993/0501    
}; 
 
1991/0428    
struct Mount 
{ 
	ulong	mountid; 
	Mount	*next; 
1991/1011    
	Mhead	*head; 
1993/0501    
	Chan	*to;			/* channel replacing channel */ 
1994/0225    
	Mount*	next; 
	Mhead*	head; 
	Chan*	to;			/* channel replacing channel */ 
1993/0501    
	int	flag; 
	char	spec[NAMELEN]; 
1991/0428    
}; 
1994/0222/sys/src/9/port/portdat.h:205,2131994/0225/sys/src/9/port/portdat.h:205,213
1991/0428    
 
1991/1011    
struct Mhead 
1991/0428    
{ 
1991/1011    
	Chan	*from;			/* channel mounted upon */ 
	Mount	*mount;			/* what's mounted upon it */ 
	Mhead	*hash;			/* Hash chain */ 
1994/0225    
	Chan*	from;			/* channel mounted upon */ 
	Mount*	mount;			/* what's mounted upon it */ 
	Mhead*	hash;			/* Hash chain */ 
1991/0428    
}; 
 
1993/0501    
struct Mnt 


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