summaryrefslogtreecommitdiff
path: root/firmware/include/buflib.h
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/include/buflib.h')
-rw-r--r--firmware/include/buflib.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/firmware/include/buflib.h b/firmware/include/buflib.h
index e912429b1f..1bae3e7a3f 100644
--- a/firmware/include/buflib.h
+++ b/firmware/include/buflib.h
@@ -54,6 +54,17 @@ struct buflib_context
54}; 54};
55 55
56/** 56/**
57 * This declares the minimal overhead that is required per alloc. These
58 * are bytes that are allocated from the context's pool in addition
59 * to the actually requested number of bytes.
60 *
61 * The total number of bytes consumed by an allocation is
62 * BUFLIB_ALLOC_OVERHEAD + requested bytes + strlen(<name passed to
63 * buflib_alloc_ex()) + pad to pointer size
64 */
65#define BUFLIB_ALLOC_OVERHEAD (6*sizeof(union buflib_data))
66
67/**
57 * Callbacks used by the buflib to inform allocation that compaction 68 * Callbacks used by the buflib to inform allocation that compaction
58 * is happening (before data is moved) 69 * is happening (before data is moved)
59 * 70 *