Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

Zygoma::PageFrame Class Reference
[Kernel Physical Memory Management]

#include <pageframe.h>

List of all members.


Detailed Description

Expresses information on a Page Frame.

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.


Constructor & Destructor Documentation

Zygoma::PageFrame::PageFrame  )  [inline]
 

Initializes a page from to unused, unlocled, and available.

Zygoma::PageFrame::~PageFrame  )  [inline]
 

Do-nothing destructor added for completeness.


Member Function Documentation

void Zygoma::PageFrame::invalidate  )  [inline]
 

Marks the page frame as not valid.

bool Zygoma::PageFrame::isLocked  )  const [inline]
 

Returns the page frame's lock state.

Returns:
true if the page frame is currently locked, false otherwise.

bool Zygoma::PageFrame::isValid  )  const [inline]
 

Indicates if the page frame is valid memory or not.

Returns:
true if the page frame is valid memory, false otherwise.

void Zygoma::PageFrame::lock  )  [inline]
 

Locks the page frame against reuse (swap).

unsigned int Zygoma::PageFrame::owningTaskId  )  const [inline]
 

Gets the taskId of the owning task.

Returns:
the taskID of the current owning task.

void Zygoma::PageFrame::setOwningTaskId unsigned int  taskId  )  [inline]
 

Sets the page frame's owner.

Parameters:
taskID [IN] The taskID to set the owening task id to.

void Zygoma::PageFrame::unlock  )  [inline]
 

Unlocks the page frame.


The documentation for this class was generated from the following file:
Generated on Fri Sep 2 10:45:08 2005 for zygoma by doxygen 1.4.2