aboutsummaryrefslogtreecommitdiff
path: root/platform/linux-generic/include/odp/api/plat/pool_types.h
diff options
context:
space:
mode:
Diffstat (limited to 'platform/linux-generic/include/odp/api/plat/pool_types.h')
-rw-r--r--platform/linux-generic/include/odp/api/plat/pool_types.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/platform/linux-generic/include/odp/api/plat/pool_types.h b/platform/linux-generic/include/odp/api/plat/pool_types.h
index 8bc816d4..9a26dde5 100644
--- a/platform/linux-generic/include/odp/api/plat/pool_types.h
+++ b/platform/linux-generic/include/odp/api/plat/pool_types.h
@@ -48,6 +48,19 @@ typedef enum odp_pool_type_t {
#endif
+/** @internal Pool field accessor */
+#define _odp_pool_get(pool, cast, field) \
+ (*(cast *)(uintptr_t)((uint8_t *)pool + _odp_pool_inline.field))
+
+/** @internal Pool header field offsets for inline functions */
+typedef struct _odp_pool_inline_offset_t {
+ /** @internal field offset */
+ uint16_t pool_hdl;
+ /** @internal field offset */
+ uint16_t uarea_size;
+
+} _odp_pool_inline_offset_t;
+
#ifdef __cplusplus
}
#endif