|
NOVA User-Level Environment
Version testbox/changed-memory-timing-317-g320d8b5
|
#include <capalloc.h>
Public Member Functions | |
| 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 Types | |
| enum | { BITS_PER_CHAR = 8, BITS_PER_UNSIGNED = sizeof(unsigned)*8, BYTES_PER_UNSIGNED = sizeof(unsigned) } |
Protected Member Functions | |
| cap_sel | internal_alloc_cap (unsigned count=1, unsigned byte_start=0) |
Protected Attributes | |
| unsigned volatile | _bits [(BITS+BITS_PER_UNSIGNED-1)/BITS_PER_UNSIGNED] |
| cap_sel | _cap_base |
|
protected |
|
inline |
|
inline |
|
inline |
|
inline |
Reimplemented in ab::AdmissionService, and EventService.
|
inline |
|
inline |
|
inlineprotected |
|
protected |
|
protected |