summaryrefslogtreecommitdiff
path: root/test/helpers.h
diff options
context:
space:
mode:
Diffstat (limited to 'test/helpers.h')
-rw-r--r--test/helpers.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/helpers.h b/test/helpers.h
index 6a268c1..ba8c4fd 100644
--- a/test/helpers.h
+++ b/test/helpers.h
@@ -14,6 +14,12 @@ extern "C" {
*/
void *io_uring_malloc(size_t size);
+
+/*
+ * Helper for allocating size bytes aligned on a boundary.
+ */
+void io_uring_posix_memalign(void **memptr, size_t alignment, size_t size);
+
#ifdef __cplusplus
}
#endif