A region allocator.
More...
#include <region.h>
Public Member Functions |
unsigned | count () const |
const Region * | list () const |
Region * | find (unsigned long long pos) |
| Find the region to a virtual address.
|
unsigned long long | find_phys (unsigned long long phys, unsigned long long size) |
| Find the virtual address to a physical region.
|
void | add (Region region) |
| Add a region to the list.
|
void | del (Region value) |
| Remove regions from the list.
|
unsigned long long | alloc (unsigned long long size, unsigned align_order, unsigned nb_offset=0) |
| Alloc a region from the list.
|
void | debug_dump (const char *prefix) |
Region | alloc_max (unsigned align_order) |
| RegionList () |
Detailed Description
template<unsigned SIZE>
class RegionList< SIZE >
A region allocator.
Constructor & Destructor Documentation
Member Function Documentation
Add a region to the list.
template<unsigned SIZE>
unsigned long long RegionList< SIZE >::alloc |
( |
unsigned long long |
size, |
|
|
unsigned |
align_order, |
|
|
unsigned |
nb_offset = 0 |
|
) |
| |
|
inline |
Alloc a region from the list.
template<unsigned SIZE>
void RegionList< SIZE >::debug_dump |
( |
const char * |
prefix | ) |
|
|
inline |
Remove regions from the list.
Find the region to a virtual address.
template<unsigned SIZE>
unsigned long long RegionList< SIZE >::find_phys |
( |
unsigned long long |
phys, |
|
|
unsigned long long |
size |
|
) |
| |
|
inline |
Find the virtual address to a physical region.
Member Data Documentation
The documentation for this class was generated from the following file: