diff options
author | Russell King <rmk@arm.linux.org.uk> | 2012-10-25 11:57:26 +0100 |
---|---|---|
committer | Russell King <rmk@arm.linux.org.uk> | 2012-10-25 12:14:42 +0100 |
commit | c82b518135f55a8fd075b4df20c04b78c2475c53 (patch) | |
tree | 253512589f53d45b89324a2d1af597e7396aa98b /bmm_lib.h | |
parent | 28ee15c339a4e893e95cac5b8c6fbf2730e0149e (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.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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); |