|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--PTE
A PTE represents a memory page table entry.
Field Summary | |
static int |
NUM_CLASSES
PTE.NUM_CLASSES is the number of reference classes used in the reference class field of a page table entry. |
static int |
PERMISSION_BITS
PTE.PERMISSION_BITS is the number of permission bits and the number of reference class bits in a page table entry. |
Constructor Summary | |
PTE(int pn)
new PTE(pn) returns a new page table entry with page number pn. |
Method Summary | |
void |
assignFrame(int fn)
pte.assignFrame(fn) sets the frame number for pte to fn and sets its present bit to 1. |
int |
getFrameNumber()
pte.getFrameNumber() returns the frame number currently assigned to the page that is controlled by pte or -1 if if there is no frame assigned to the page. |
int |
getPermissions()
pte.getPermissions() returns the permission bits of pte. |
int |
getRefClass()
pte.getRefClass() returns the reference class bits of pte. |
boolean |
isDirty()
pte.isDirty() returns true if the page controlled by pte has been recently written. |
boolean |
isPresent()
pte.isPresent() returns the present bit of pte. |
boolean |
isReferenced()
pte.isReferenced() returns true if the page controlled by pte has been recently referenced. |
void |
print()
pte.print() writes pte to System.out in tabular form. |
static void |
printHeader()
PTE.printHeader() writes a header for tables containing pte entries printed with the print() method. |
void |
releaseFrame()
pte.releaseFrame() clears the frame number and present bit of pte. |
void |
resetDirtyBit()
pte.resetDirtyBit() resets the reference bit in pte. |
void |
resetReferenceBit()
pte.resetReferenceBit() resets the reference bit in pte. |
void |
setFrameNumber(int n)
pte.setFrameNumber(n) sets the frame number for the page that is controlled by pte to n. |
void |
setPermissions(int p)
pte.setPermissions(p) sets the permission bits of pte from p. |
void |
setPresent(boolean b)
pte.setPresent(b) sets the present bit of pte to b. |
void |
setRefClass(int c)
pte.setRefClass(c) sets the reference class bits of pte from c. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int PERMISSION_BITS
public static final int NUM_CLASSES
Constructor Detail |
public PTE(int pn)
Method Detail |
public boolean isPresent()
public void setPresent(boolean b)
public int getPermissions()
public void setPermissions(int p)
public void resetReferenceBit()
public boolean isReferenced()
public void resetDirtyBit()
public boolean isDirty()
public int getRefClass()
public void setRefClass(int c)
public int getFrameNumber()
public void setFrameNumber(int n)
public void assignFrame(int fn)
public void releaseFrame()
public static void printHeader()
public void print()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |