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

1993/0120/gnot/segment.h (diff list | history)

gnot/segment.h on 1991/0705
1991/0705    
/* 
 * Attach segment types 
 */ 
 
typedef struct Physseg Physseg; 
struct Physseg 
{ 
	ulong	attr;			/* Segment attributes */ 
	char	*name;			/* Attach name */ 
	ulong	pa;			/* Physical address */ 
	ulong	size;			/* Maximum segment size in pages */ 
1993/0120    
	Page	*(*pgalloc)(Segment*, ulong);	/* Allocation if we need it */ 
1991/0705    
	void	(*pgfree)(Page*); 
}physseg[] = { 
1993/0120    
	{ SG_SHARED,	"lock",		0,	SEGMAXSIZE,	0, 	0 }, 
	{ SG_SHARED,	"shared",	0,	SEGMAXSIZE,	0, 	0 }, 
	{ SG_BSS,	"memory",	0,	SEGMAXSIZE,	0,	0 }, 
	{ 0,		0,		0,	0,		0,	0 }, 
1991/0705    
}; 


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