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

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

1991/0507/sys/src/9/port/portdat.h:1,41991/0513/sys/src/9/port/portdat.h:1,5 (short | long | prev | next)
Add Alarms. In Proc, add palarm, alarm.
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; 
typedef struct Chan	Chan; 
1991/0507/sys/src/9/port/portdat.h:62,671991/0513/sys/src/9/port/portdat.h:63,74
1991/0428    
	void	*arg; 
}; 
 
1991/0513    
struct Alarms 
{ 
	QLock; 
	Proc	*head; 
}; 
 
1991/0428    
/* Block.flags */ 
#define S_DELIM 0x80 
#define S_CLASS 0x07 
1991/0507/sys/src/9/port/portdat.h:347,3521991/0513/sys/src/9/port/portdat.h:354,362
1991/0428    
	int	wokeup;			/* whether sleep was interrupted */ 
	ulong	pc;			/* DEBUG only */ 
	int	kp;			/* true if a kernel process */ 
1991/0513    
	Proc	*palarm;		/* Next alarm time */ 
	ulong	alarm;			/* Time of call */ 
 
1991/0504    
	/* 
1991/0507    
	 *  machine specific MMU goo 
1991/0504    
	 */ 


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