Files
haiku-beta6/src/kernel/vm2/swapFileManager.h
T
Michael Phipps d50d9a6a18 More code cleanup. Removing unused variables. Simplifying and shrinking
vpage to be nearly a TLB entry. Final stripping will occur with kernel
integration. More comments.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3042 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-03-26 04:00:38 +00:00

29 lines
646 B
C++

#ifndef _SWAPFILE_MANAGER
#define _SWAPFILE_MANAGER
#include <unistd.h>
#include <fcntl.h>
#include "vm.h"
#include "OS.h"
#include "lockedList.h"
class swapFileManager {
private:
int swapFile;
unsigned long maxNode;
lockedList swapFileFreeList;
public:
// Constructors and Destructors and related
swapFileManager (void);
void freeVNode(vnode &); // Free a node
// Mutators
vnode &findNode(void); // Get an unused node
void write_block(vnode &node,void *loc,unsigned long size); // The general access points
void read_block(vnode &node,void *loc,unsigned long size);
// Accessors
int getFD(void) {return swapFile;}
};
#endif