summaryrefslogtreecommitdiff
path: root/bmm_lib.h
diff options
context:
space:
mode:
authorRussell King <rmk@arm.linux.org.uk>2012-10-25 11:57:26 +0100
committerRussell King <rmk@arm.linux.org.uk>2012-10-25 12:14:42 +0100
commitc82b518135f55a8fd075b4df20c04b78c2475c53 (patch)
tree253512589f53d45b89324a2d1af597e7396aa98b /bmm_lib.h
parent28ee15c339a4e893e95cac5b8c6fbf2730e0149e (diff)
Add aligned malloc function [new kernel required]
vmeta wants to allocate memory with specific alignments. Rather than having vmeta request more memory of bmm, and then doing alignment on the result, provide a proper API to do this task. This requires an updated kernel.
Diffstat (limited to 'bmm_lib.h')
-rw-r--r--bmm_lib.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/bmm_lib.h b/bmm_lib.h
index 37dfe67..f8c160b 100644
--- a/bmm_lib.h
+++ b/bmm_lib.h
@@ -41,6 +41,7 @@ extern "C" {
int bmm_init();
void bmm_exit();
void *bmm_malloc(unsigned long size, int attr);
+void *bmm_malloc_aligned(unsigned long size, int attr, unsigned align);
void bmm_free(void *vaddr);
void *bmm_attach(unsigned long paddr, unsigned long len);
void bmm_detach(void *vaddr, unsigned long len);