diff options
author | Iru Cai <mytbk920423@gmail.com> | 2019-10-30 16:19:22 +0800 |
---|---|---|
committer | Iru Cai <mytbk920423@gmail.com> | 2019-10-30 16:19:22 +0800 |
commit | 60f3839cf77dc575449cbe01466f7b71a303a135 (patch) | |
tree | ed07ea5fcff7309008f571b0aae1a59e216a2a72 /include/memalign.h | |
parent | 7cf50959b51d31d73277d646c253084772a92f4d (diff) | |
download | uext4-60f3839cf77dc575449cbe01466f7b71a303a135.tar.xz |
clean the malloc things
Diffstat (limited to 'include/memalign.h')
-rw-r--r-- | include/memalign.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/memalign.h b/include/memalign.h index 2f8a02b..a4d9927 100644 --- a/include/memalign.h +++ b/include/memalign.h @@ -6,6 +6,17 @@ #ifndef __ALIGNMEM_H #define __ALIGNMEM_H +#ifdef __cplusplus +extern "C" { +#endif + +void *memalign(size_t alignment, size_t size); +void *pvalloc(size_t size); + +#ifdef __cplusplus +} +#endif + /* * ARCH_DMA_MINALIGN is defined in asm/cache.h for each architecture. It * is used to align DMA buffers. |