NOVA User-Level Environment  Version testbox/changed-memory-timing-317-g320d8b5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
CapAllocatorAtomicPartition< BITS > Class Template Reference

#include <capalloc_partition.h>

Inheritance diagram for CapAllocatorAtomicPartition< BITS >:
CapAllocatorAtomic< BITS >

Public Member Functions

 CapAllocatorAtomicPartition (cap_sel _cap_start=~0UL, unsigned divider=1)
cap_sel alloc_cap (unsigned count=1, unsigned cpu=~0U)
- Public Member Functions inherited from CapAllocatorAtomic< BITS >
 CapAllocatorAtomic (cap_sel _cap_start=~0UL)
unsigned idx_max () const
unsigned bytes_max () const
cap_sel idx_smallest ()
cap_sel alloc_cap (unsigned count=1)
void dealloc_cap (cap_sel cap, unsigned count=1)

Protected Attributes

unsigned _divider
- Protected Attributes inherited from CapAllocatorAtomic< BITS >
unsigned volatile _bits [(BITS+BITS_PER_UNSIGNED-1)/BITS_PER_UNSIGNED]
cap_sel _cap_base

Additional Inherited Members

- Protected Types inherited from CapAllocatorAtomic< BITS >
enum  { BITS_PER_CHAR = 8, BITS_PER_UNSIGNED = sizeof(unsigned)*8, BYTES_PER_UNSIGNED = sizeof(unsigned) }
- Protected Member Functions inherited from CapAllocatorAtomic< BITS >
cap_sel internal_alloc_cap (unsigned count=1, unsigned byte_start=0)

Constructor & Destructor Documentation

template<unsigned BITS>
CapAllocatorAtomicPartition< BITS >::CapAllocatorAtomicPartition ( cap_sel  _cap_start = ~0UL,
unsigned  divider = 1 
)
inline

Member Function Documentation

template<unsigned BITS>
cap_sel CapAllocatorAtomicPartition< BITS >::alloc_cap ( unsigned  count = 1,
unsigned  cpu = ~0U 
)
inline

Reimplemented in ab::AdmissionService, and EventService.

Member Data Documentation

template<unsigned BITS>
unsigned CapAllocatorAtomicPartition< BITS >::_divider
protected

The documentation for this class was generated from the following file: