RTAI API 5.1
|
Dynamic memory allocation services. More...
Functions | |
int | rtheap_init (rtheap_t *heap, void *heapaddr, u_long heapsize, u_long pagesize, int suprt) |
Initialize a memory heap. More... | |
void * | rtheap_alloc (rtheap_t *heap, u_long size, int mode) |
Allocate a memory block from a memory heap. More... | |
int | rtheap_free (rtheap_t *heap, void *block) |
Release a memory block to a memory heap. More... | |
Dynamic memory allocation services.
Copyright (C) 2007 Paolo Mantegazza mante.nosp@m.gazz.nosp@m.a@aer.nosp@m.o.po.nosp@m.limi..nosp@m.it. Specific following parts as copyrighted/licensed by their authors.
RTAI is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
RTAI is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with RTAI; if not, see http://www.gnu.org/licenses/.
Copyright (C) 2001,2002,2003,2004 Philippe Gerum rpm@x.nosp@m.enom.nosp@m.ai.or.nosp@m.g.
RTAI is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
RTAI is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with RTAI; if not, see http://www.gnu.org/licenses/.
Dynamic memory allocation services lifted and adapted from the Xenomai nucleus.
This file implements the RTAI dynamic memory allocator based on the algorithm described in "Design of a General Purpose Memory Allocator for the 4.3BSD Unix Kernel" by Marshall K. McKusick and Michael J. Karels.