A region allocator.
More...
#include <region.h>
List of all members.
Public Member Functions |
| unsigned | count () const |
| const Region * | list () const |
| Region * | find (unsigned long long pos) |
| 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) |
| | Alloc a region from the list.
|
| void | debug_dump (const char *prefix) |
| | 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 | |
|
) |
| | [inline] |
Alloc a region from the list.
template<unsigned SIZE>
| unsigned RegionList< SIZE >::count |
( |
|
) |
const [inline] |
template<unsigned SIZE>
| void RegionList< SIZE >::debug_dump |
( |
const char * |
prefix |
) |
[inline] |
Remove regions from the list.
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.
The documentation for this class was generated from the following file: