#include <pageframe.h>
Note that this is not in fact a page frame but rather metainfo about the page frame.
A Page Frame is a page of physical memory that can be allocated to a logical page assigned to a specific task.
Public Member Functions | |
| PageFrame () | |
| Initializes a page from to unused, unlocled, and available. | |
| ~PageFrame () | |
| Do-nothing destructor added for completeness. | |
| unsigned int | owningTaskId () const |
| Gets the taskId of the owning task. | |
| void | setOwningTaskId (unsigned int taskId) |
| Sets the page frame's owner. | |
| bool | isLocked () const |
| Returns the page frame's lock state. | |
| void | lock () |
| Locks the page frame against reuse (swap). | |
| void | unlock () |
| Unlocks the page frame. | |
| bool | isValid () const |
| Indicates if the page frame is valid memory or not. | |
| void | invalidate () |
| Marks the page frame as not valid. | |
|
|
Initializes a page from to unused, unlocled, and available.
|
|
|
Do-nothing destructor added for completeness.
|
|
|
Marks the page frame as not valid.
|
|
|
Returns the page frame's lock state.
|
|
|
Indicates if the page frame is valid memory or not.
|
|
|
Locks the page frame against reuse (swap).
|
|
|
Gets the taskId of the owning task.
|
|
|
Sets the page frame's owner.
|
|
|
Unlocks the page frame.
|
1.4.2