Plan 9 from Bell Labs’s /usr/web/sources/contrib/quanstro/root/sys/src/fs/wrens/dat.h

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


/*
 * The most fundamental constant.
 * The code will not compile with RBUFSIZE made a variable;
 * for one thing, RBUFSIZE determines FEPERBUF, which determines
 * the number of elements in a free-list-block array.
 */
enum{
	RBUFSIZE	= 8*1024,	/* raw buffer size */
	MAXBANK	= 4,		/* discontiguous memory banks. */
};

#include "../port/portdat.h"

typedef struct{
	ulong	d0;
	ulong	d1;
}Segdesc;

typedef struct Mbank {
	ulong	base;
	ulong	limit;
} Mbank;

typedef struct Mconf {
	Lock;
	Mbank	bank[MAXBANK];
	int	nbank;
	ulong	topofmem;
} Mconf;

extern	Mach	mach0;
extern	Mconf	mconf;
extern	char	nvrfile[128];

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.