#include <segment.h>
Inherits Address_map.
Inheritance diagram for Segment_map:


Public Member Functions | |
| void | set_pages_count (unsigned segment, Size pages_count) |
| Size | get_pages_count (unsigned segment) |
| bool | is_segment_free (unsigned segment) |
Incidentally, a segment map is also handy for keeping track of which segments are unused. A segment usage bitmap might be better for scanning for free segments, but this will do for now.
|
|
Return the number of pages contained within the given segment.
|
|
|
Return whether the given segment is unused.
|
|
||||||||||||
|
Set the number of pages contained within the given segment.
|
Torsion Operating System, Copyright (C) 2000-2004 Dan Helfman