diff options
author | Alan Korr <alkorr@rockbox.org> | 2002-04-16 18:37:44 +0000 |
---|---|---|
committer | Alan Korr <alkorr@rockbox.org> | 2002-04-16 18:37:44 +0000 |
commit | 223884c4e5f14c6ed1fc2f536bd9250984a6a0d6 (patch) | |
tree | 0ab00dfa4e6a6a80b57272545c79d83780377912 /firmware/test/memory/memory.h | |
parent | 464a26d8913ba43d8bc6f71c1fbb9d9971628457 (diff) | |
download | rockbox-223884c4e5f14c6ed1fc2f536bd9250984a6a0d6.tar.gz rockbox-223884c4e5f14c6ed1fc2f536bd9250984a6a0d6.zip |
There is two part in this module :
* memory-page :
It is a page allocator using bins. Each bin is a list (or a splay tree)
of the same power-of-2 pages. If no page left in a bin, it tries to
allocate a large page to split into two pages. Page size are :
512 B, 1 KB, 2 KB, 4 KB, 8 KB, 16 KB, 32 KB, 64 KB, 128 KB,
256 KB, 512 KB, 1 MB and 2 MB. Alignment of a page is the same
value than for its size.
* memory-slab :
using slab for smaller blocks, but much simpler than Linux' slab.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@106 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/test/memory/memory.h')
-rw-r--r-- | firmware/test/memory/memory.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/firmware/test/memory/memory.h b/firmware/test/memory/memory.h index 881cb509bc..fde6ac3ad1 100644 --- a/firmware/test/memory/memory.h +++ b/firmware/test/memory/memory.h | |||
@@ -18,10 +18,10 @@ | |||
18 | ****************************************************************************/ | 18 | ****************************************************************************/ |
19 | #ifndef __LIBRARY_MEMORY_H__ | 19 | #ifndef __LIBRARY_MEMORY_H__ |
20 | # define __LIBRARY_MEMORY_H__ | 20 | # define __LIBRARY_MEMORY_H__ |
21 | # include <config.h> | 21 | # include <memory/config.h> |
22 | # include <defines.h> | 22 | # include <memory/defines.h> |
23 | # include <types.h> | 23 | # include <memory/types.h> |
24 | # include <return_values.h> | 24 | # include <memory/return_values.h> |
25 | # include <inlines.h> | 25 | # include <memory/inlines.h> |
26 | # include <functions.h> | 26 | # include <memory/functions.h> |
27 | #endif | 27 | #endif |