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

1991/1105/port/portdat.h (diff list | history)

1991/1102/sys/src/9/port/portdat.h:53,591991/1105/sys/src/9/port/portdat.h:53,59 (short | long | prev | next)
Comment edits. Format edit.
rsc Fri Mar 4 12:44:25 2005
1991/0428    
 
struct QLock 
{ 
1991/1002    
	Lock	use;			/* to use object */ 
1991/1105    
	Lock	use;			/* to access Qlock structure */ 
1991/0428    
	Proc	*head;			/* next process waiting for object */ 
	Proc	*tail;			/* last process waiting for object */ 
1991/1002    
	int	locked;			/* flag */ 
1991/1102/sys/src/9/port/portdat.h:258,2651991/1105/sys/src/9/port/portdat.h:258,265
1991/0428    
 
enum{ 
	NUser,				/* note provided externally */ 
	NExit,				/* process should exit */ 
	NDebug,				/* process should hang */ 
1991/1105    
	NExit,				/* deliver note quietly */ 
	NDebug,				/* print debug message */ 
1991/0428    
}; 
 
struct Note 
1991/1102/sys/src/9/port/portdat.h:372,3781991/1105/sys/src/9/port/portdat.h:372,377
1991/0705    
	Pgrp	*next;			/* free list */ 
1991/0428    
	int	index;			/* index in pgrp table */ 
	ulong	pgrpid; 
	char	user[NAMELEN]; 
	QLock	debug;			/* single access via devproc.c */ 
1991/1011    
	RWlock	ns;			/* Namespace many read/one write lock */ 
	Mhead	*mnthash[MNTHASH]; 
1991/1102/sys/src/9/port/portdat.h:489,4941991/1105/sys/src/9/port/portdat.h:488,494
1991/0428    
	Label	sched; 
	Mach	*mach;			/* machine running this proc */ 
	char	text[NAMELEN]; 
1991/1105    
	char	user[NAMELEN]; 
1991/0428    
	Proc	*rnext;			/* next process in run queue */ 
	Proc	*qnext;			/* next process on queue for a QLock */ 
	QLock	*qlock;			/* address of qlock being queued for DEBUG */ 


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