swapfile blocks are now put on a free list and properly reused, so it no longer grows out of control. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@626 a95241bf-73f2-0310-859d-f6bbb57e9c96
23 lines
531 B
C
23 lines
531 B
C
#include "list.h"
|
|
|
|
#ifndef _VM_TYPES
|
|
#define _VM_TYPES
|
|
const int PAGE_SIZE = 4096;
|
|
struct vnode : public node
|
|
{
|
|
int fd;
|
|
unsigned long offset;
|
|
bool valid;
|
|
};
|
|
typedef unsigned long owningProcess;
|
|
#define B_OS_NAME_LENGTH 32
|
|
enum protectType {none=0,readable, writable,copyOnWrite,symCopyOnWrite};
|
|
enum pageState {FULL,CONTIGUOUS,LAZY,NO_LOCK,LOMEM};
|
|
enum addressSpec {EXACT,BASE,ANY,ANY_KERNEL,CLONE};
|
|
#define USER_BASE 0x10000000
|
|
#define KERNEL_BASE 0x80000000
|
|
#define CACHE_BEGIN 0x90000000
|
|
#define CACHE_END 0xe0000000
|
|
|
|
#endif
|