SCCS-vsn: sys/sys/conf.h 3.7
SCCS-vsn: sys/sys/dmap.h 3.3
SCCS-vsn: sys/sys/map.h 3.3
SCCS-vsn: sys/sys/systm.h 3.4
/*
* Declaration of block device
/*
* Declaration of block device
int (*l_start)();
int (*l_modem)();
} linesw[];
int (*l_start)();
int (*l_modem)();
} linesw[];
+
+/*
+ * Swap device information
+ */
+extern struct swdevt
+{
+ dev_t sw_dev;
+ int sw_freed;
+} swdevt[];
/*
* Definitions for the mapping of vitual swap
/*
* Definitions for the mapping of vitual swap
#define NDMAP 16 /* size of the swap area map */
#define DMMIN 16 /* the initial block size in clicks */
#define DMMAX 1024 /* max block size alloc on drum = .5M byte */
#define NDMAP 16 /* size of the swap area map */
#define DMMIN 16 /* the initial block size in clicks */
#define DMMAX 1024 /* max block size alloc on drum = .5M byte */
+#define DMTEXT 1024 /* size of blocks of pure text = .5M byte */
/*
* Resource Allocation Maps
/*
* Resource Allocation Maps
#ifdef KERNEL
struct map swapmap[SMAPSIZ]; /* space for swap allocation */
#ifdef KERNEL
struct map swapmap[SMAPSIZ]; /* space for swap allocation */
+#define AMAPSIZ 25
+struct map argmap[AMAPSIZ];
struct map kernelmap[NPROC]; /* space for kernel map for user page tables */
#endif
struct map kernelmap[NPROC]; /* space for kernel map for user page tables */
#endif
/*
* Random set of variables
/*
* Random set of variables
+int nswdev; /* number of swap devices */
int mpid; /* generic for unique process id's */
char runin; /* scheduling flag */
char runout; /* scheduling flag */
int mpid; /* generic for unique process id's */
char runin; /* scheduling flag */
char runout; /* scheduling flag */
int maxmem; /* actual max memory per process */
int physmem; /* physical memory on this CPU */
int maxmem; /* actual max memory per process */
int physmem; /* physical memory on this CPU */
-daddr_t swplo; /* block number of swap space */
int nswap; /* size of swap space */
int updlock; /* lock for sync */
daddr_t rablock; /* block to be read ahead */
int nswap; /* size of swap space */
int updlock; /* lock for sync */
daddr_t rablock; /* block to be read ahead */
int intstack[512]; /* stack for interrupts */
dev_t rootdev; /* device of the root */
dev_t swapdev; /* swapping device */
int intstack[512]; /* stack for interrupts */
dev_t rootdev; /* device of the root */
dev_t swapdev; /* swapping device */
dev_t pipedev; /* pipe device */
extern int icode[]; /* user init code */
dev_t pipedev; /* pipe device */
extern int icode[]; /* user init code */
int uchar();
int vmemall();
swblk_t vtod();
int uchar();
int vmemall();
swblk_t vtod();
-/*
- * Instrumentation
- */
-int dk_busy;
-long dk_time[32];
-long dk_numb[3];
-long dk_wds[3];
-long tk_nin;
-long tk_nout;
/*
* Structure of the system-entry table
/*
* Structure of the system-entry table