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

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

1992/0516/sys/src/9/port/portdat.h:1,41992/0602/sys/src/9/port/portdat.h:1,3 (short | long | prev | next)
Rename Alarm] to Talarm, just a list of processes. Move alarm fields into Proc. Comment edits.
rsc Fri Mar 4 12:44:25 2005
1991/0428    
typedef struct Alarm	Alarm; 
1991/0513    
typedef struct Alarms	Alarms; 
1991/0428    
typedef struct Block	Block; 
typedef struct Blist	Blist; 
1992/0516/sys/src/9/port/portdat.h:35,401992/0602/sys/src/9/port/portdat.h:34,40
1991/1011    
typedef struct RWlock	RWlock; 
1991/0705    
typedef struct Segment	Segment; 
1991/0428    
typedef struct Stream	Stream; 
1992/0602    
typedef struct Talarm	Talarm; 
1991/0926    
typedef struct Waitq	Waitq; 
1992/0307    
typedef int    Devgen(Chan*, Dirtab*, int, int, Dir*); 
1991/0428    
 
1992/0516/sys/src/9/port/portdat.h:71,841992/0602/sys/src/9/port/portdat.h:71,80
1991/1011    
	int	readers;		/* Count of readers in lock */ 
}; 
 
1991/0428    
struct Alarm 
1992/0602    
struct Talarm 
1991/0428    
{ 
	List; 
	Lock; 
	int	busy; 
1992/0516    
	ulong	when;			/* may underflow in clock(); must be signed */ 
1991/0428    
	void	(*f)(void*); 
	void	*arg; 
1992/0602    
	Proc	*list; 
1991/0428    
}; 
 
1991/0513    
struct Alarms 
1992/0516/sys/src/9/port/portdat.h:550,5561992/0602/sys/src/9/port/portdat.h:546,552
1991/1110    
	ulong	pc;			/* DEBUG only */ 
1991/1109    
 
1991/0428    
	Rendez	*r;			/* rendezvous point slept on */ 
1991/1110    
	Rendez	sleep;			/* place for tsleep/syssleep/debug */ 
1992/0602    
	Rendez	sleep;			/* place for syssleep/debug */ 
1991/0727    
	int	notepending;		/* note issued but not acted on */ 
1991/0428    
	int	kp;			/* true if a kernel process */ 
1991/0513    
	Proc	*palarm;		/* Next alarm time */ 
1992/0516/sys/src/9/port/portdat.h:561,5661992/0602/sys/src/9/port/portdat.h:557,567
1991/0806    
	ulong	rendtag;		/* Tag for rendezvous */  
	ulong	rendval;		/* Value for rendezvous */ 
	Proc	*rendhash;		/* Hash list for tag values */ 
1992/0602    
 
	ulong	twhen; 
	Rendez	*trend; 
	Proc	*tlink; 
 
1991/0504    
	/* 
1991/0507    
	 *  machine specific MMU goo 
1991/0504    
	 */ 
1992/0516/sys/src/9/port/portdat.h:696,7011992/0602/sys/src/9/port/portdat.h:697,703
1992/0321    
extern	char	sysname[NAMELEN]; 
1992/0325    
extern	int	cpuserver; 
1992/0428    
extern  Ref	noteidalloc; 
1992/0602    
extern	Talarm	talarm; 
1991/0428    
 
1991/0705    
#define	CHDIR		0x80000000L 
#define	CHAPPEND 	0x40000000L 


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