L4Re Operating System Framework
Interface and Usage Documentation
Loading...
Searching...
No Matches
alloc.h
Go to the documentation of this file.
1
5
/*
6
* (c) 2004-2009 Alexander Warg <warg@os.inf.tu-dresden.de>,
7
* Torsten Frenzel <frenzel@os.inf.tu-dresden.de>
8
* economic rights: Technische Universität Dresden (Germany)
9
*
10
* License: see LICENSE.spdx (in this directory or the directories above)
11
*/
12
#pragma once
13
14
namespace
L4
{
15
20
class
Alloc_list
21
{
22
public
:
23
Alloc_list
() : _free(0) {}
24
Alloc_list
(
void
*blk,
unsigned
long
size) : _free(0)
25
{ free( blk, size); }
26
27
void
free(
void
*blk,
unsigned
long
size);
28
void
*alloc(
unsigned
long
size);
29
30
private
:
31
struct
Elem
32
{
33
Elem *next;
34
unsigned
long
size;
35
};
36
37
Elem *_free;
38
};
39
}
L4::Alloc_list
A simple list-based allocator.
Definition
alloc.h:21
L4
L4 low-level kernel interface.
Definition
l4sys-l4f-groups.dox:50
l4
cxx
alloc.h
Generated on Fri May 23 2025 13:40:51 for L4Re Operating System Framework by
1.9.8