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

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

1992/0222/sys/src/9/port/portdat.h:311,3161992/0303/sys/src/9/port/portdat.h:311,318 (short | long | prev | next)
Add swapalloc.highwater, .headroom in place ofHIGHWATER, MAXHEADROOM constants. Format edit.
rsc Fri Mar 4 12:44:25 2005
1991/0724    
	char	*alloc;			/* Round robin allocator */ 
	char	*top;			/* Top of swap map */ 
	Rendez	r;			/* Pager kproc idle sleep */ 
1992/0303    
	ulong	highwater;		/* Threshold beyond which we must page */ 
	ulong	headroom;		/* Space pager attempts to clear below highwater */ 
1991/0705    
}swapalloc; 
 
struct Image 
1992/0222/sys/src/9/port/portdat.h:343,3521992/0303/sys/src/9/port/portdat.h:345,352
1991/0705    
#define SG_SHARED	004 
#define SG_PHYSICAL	005 
/* Segment flags */ 
#define SG_RONLY	040		/* Segment is read only */ 
1992/0303    
#define SG_RONLY	040			/* Segment is read only */ 
1991/0705    
 
#define HIGHWATER	((conf.npage*5)/100) 
#define MAXHEADROOM	HIGHWATER*2	/* Silly but OK for debug */ 
#define PG_ONSWAP	1 
#define pagedout(s)	(((ulong)s)==0 || (((ulong)s)&PG_ONSWAP)) 
#define swapaddr(s)	(((ulong)s)&~PG_ONSWAP) 


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