|
ginnOS
The reference: libc, the libraries and the kernel
|
Go to the source code of this file.
Data Structures | |
| struct | region_entry_t |
| a single reserved memory region with byte-granularity boundaries. More... | |
Macros | |
| #define | REGION_TABLE_MAX 16 |
| maximum number of reserved memory regions the table can hold. | |
Functions | |
| void | region_reserve (phys_addr_t start, phys_addr_t end, const char *label) |
| reserve a memory region by recording it in the global table. | |
| bool | region_is_reserved (phys_addr_t address) |
| check whether a single address falls inside any reserved region. | |
| bool | region_overlaps (phys_addr_t start, phys_addr_t end) |
| check whether a range overlaps any reserved region. | |
| uint32_t | region_count (void) |
| return the number of currently reserved regions. | |
| void | region_print_all (void) |
| print all reserved regions to the console. | |
| #define REGION_TABLE_MAX 16 |
maximum number of reserved memory regions the table can hold.
| void region_reserve | ( | phys_addr_t | start, |
| phys_addr_t | end, | ||
| const char * | label ) |
reserve a memory region by recording it in the global table.
panics if the table is full.
| start | first byte of the region (inclusive). |
| end | first byte past the region (exclusive). |
| label | human-readable name for debug output. |
| bool region_is_reserved | ( | phys_addr_t | address | ) |
check whether a single address falls inside any reserved region.
| address | the physical address to test. |
| bool region_overlaps | ( | phys_addr_t | start, |
| phys_addr_t | end ) |
check whether a range overlaps any reserved region.
| start | first byte of the range (inclusive). |
| end | first byte past the range (exclusive). |
| uint32_t region_count | ( | void | ) |
return the number of currently reserved regions.
| void region_print_all | ( | void | ) |
print all reserved regions to the console.