diff options
Diffstat (limited to 'lib/util.h')
-rw-r--r-- | lib/util.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/util.h b/lib/util.h index 095ede20f..7ad8758fe 100644 --- a/lib/util.h +++ b/lib/util.h @@ -169,6 +169,11 @@ void ovs_strzcpy(char *dst, const char *src, size_t size); int string_ends_with(const char *str, const char *suffix); +void *xmalloc_pagealign(size_t) MALLOC_LIKE; +void free_pagealign(void *); +void *xmalloc_size_align(size_t, size_t) MALLOC_LIKE; +void free_size_align(void *); + /* The C standards say that neither the 'dst' nor 'src' argument to * memcpy() may be null, even if 'n' is zero. This wrapper tolerates * the null case. */ |