Public Member Functions

RegionList< SIZE > Class Template Reference

A region allocator. More...

#include <region.h>

List of all members.

Public Member Functions

unsigned count () const
const Regionlist () const
Regionfind (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

template<unsigned SIZE>
RegionList< SIZE >::RegionList (  )  [inline]

Member Function Documentation

template<unsigned SIZE>
void RegionList< SIZE >::add ( Region  region  )  [inline]

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]
template<unsigned SIZE>
void RegionList< SIZE >::del ( Region  value  )  [inline]

Remove regions from the list.

template<unsigned SIZE>
Region* RegionList< SIZE >::find ( unsigned long long  pos  )  [inline]
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.

template<unsigned SIZE>
const Region* RegionList< SIZE >::list (  )  const [inline]

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines