FrameState enumeration <nucleus/kernel.h>

The FrameState enumeration specifies the possible states of a page frame. These constants may also be used as indicies to frame lists, as the Frame Manager maintains a list for each, excepting FRAME_USED.

Syntax

enum FrameState {
	FRAME_FREE,
	FRAME_ZERO,

	FRAME_USED,
};

Constants

FRAME_FREE

The frame is available but has unspecified content. When allocated, this frame should either be filled with zero bytes, or completely overwritten with some other data.

FRAME_ZERO

The frame is available and is filled with zero bytes.

FRAME_USED

The frame is currently in use somewhere and is not being managed by the Frame Manager. As such, this constant may not be used as an index for a frame list.