#include <mapped_alloc.h>
Inheritance diagram for Mapped_allocator:
Public Member Functions | |
virtual void * | alloc (size_t order)=0 |
allocate s bytes size-aligned | |
virtual void | free (size_t order, void *p)=0 |
free s bytes previously allocated with alloc(s) | |
virtual void * | unaligned_alloc (int pages)=0 |
virtual void | unaligned_free (int pages, void *p)=0 |
void | free_phys (size_t s, P_ptr< void > p) |
Static Public Member Functions | |
static Mapped_allocator * | allocator () |
Static Protected Member Functions | |
static void | allocator (Mapped_allocator *a) |
Static Private Attributes | |
static Mapped_allocator * | _alloc |
|
allocate s bytes size-aligned
Implemented in Kmem_alloc. |
|
|
|
|
|
free s bytes previously allocated with alloc(s)
Implemented in Kmem_alloc. |
|
|
|
Implemented in Kmem_alloc. |
|
Implemented in Kmem_alloc. |
|
|