aboutsummaryrefslogtreecommitdiff
path: root/platform/linux-generic/odp_buffer.c
diff options
context:
space:
mode:
Diffstat (limited to 'platform/linux-generic/odp_buffer.c')
-rw-r--r--platform/linux-generic/odp_buffer.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/platform/linux-generic/odp_buffer.c b/platform/linux-generic/odp_buffer.c
index 609b0b206..278aa8147 100644
--- a/platform/linux-generic/odp_buffer.c
+++ b/platform/linux-generic/odp_buffer.c
@@ -23,6 +23,13 @@ uint32_t odp_buffer_size(odp_buffer_t buf)
return pool->seg_len;
}
+void *odp_buffer_user_area(odp_buffer_t buf)
+{
+ odp_buffer_hdr_t *hdr = _odp_buf_hdr(buf);
+
+ return hdr->uarea_addr;
+}
+
void odp_buffer_print(odp_buffer_t buf)
{
odp_buffer_hdr_t *hdr;