|
L4Re - L4 Runtime Environment
|
Slab allocator for object of type Type. More...
Inheritance diagram for cxx::Slab< Type, Slab_size, Max_free, Alloc >:
Collaboration diagram for cxx::Slab< Type, Slab_size, Max_free, Alloc >:Public Member Functions | |
| Type * | alloc () throw () |
| Allocate an object of type Type. More... | |
| void | free (Type *o) throw () |
| Free the object addressed by o. More... | |
Public Member Functions inherited from cxx::Base_slab< sizeof(Type), Slab_size, Max_free, Alloc > | |
| unsigned | total_objects () const throw () |
| Get the total number of objects managed by the slab allocator. More... | |
| unsigned | free_objects () const throw () |
| Get the total number of objects managed by the slab allocator. More... | |
Additional Inherited Members | |
Public Types inherited from cxx::Base_slab< sizeof(Type), Slab_size, Max_free, Alloc > | |
| typedef Alloc< Slab_i > | Slab_alloc |
| Type of the allocator for the slab caches. | |
Slab allocator for object of type Type.
| Type | the type of the objects to manage. |
| Slab_size | size of a slab cache. |
| Max_free | the maximum number of free slab caches. |
| Alloc | the allocator for the slab caches. |
Definition at line 297 of file slab_alloc.
|
inline | |||||||||||||
Allocate an object of type Type.
Definition at line 314 of file slab_alloc.
|
inline | ||||||||||||||
Free the object addressed by o.
| o | The pointer to the object to free. |
Definition at line 325 of file slab_alloc.
References L4_PAGESIZE.