API Reference Manual  1.45.0
api/spec/buffer.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: BSD-3-Clause
2  * Copyright (c) 2013-2018 Linaro Limited
3  * Copyright (c) 2022-2023 Nokia
4  */
5 
12 #ifndef ODP_API_SPEC_BUFFER_H_
13 #define ODP_API_SPEC_BUFFER_H_
14 #include <odp/visibility_begin.h>
15 
16 #ifdef __cplusplus
17 extern "C" {
18 #endif
19 
20 #include <odp/api/buffer_types.h>
21 #include <odp/api/event_types.h>
22 #include <odp/api/pool_types.h>
23 #include <odp/api/std_types.h>
24 
42 
52 void odp_buffer_from_event_multi(odp_buffer_t buf[], const odp_event_t ev[], int num);
53 
62 
70 void odp_buffer_to_event_multi(const odp_buffer_t buf[], odp_event_t ev[], int num);
71 
80 
89 
102 
116 
125 
138 
152 
160 
171 void odp_buffer_free_multi(const odp_buffer_t buf[], int num);
172 
180 
193 
198 #ifdef __cplusplus
199 }
200 #endif
201 
202 #include <odp/visibility_end.h>
203 #endif
ODP buffer types.
ODP event API type definitions.
ODP pool.
Standard C language types and definitions for ODP.
void * odp_buffer_user_area(odp_buffer_t buf)
Buffer user area.
uint32_t odp_buffer_size(odp_buffer_t buf)
Buffer maximum data size.
odp_event_t odp_buffer_to_event(odp_buffer_t buf)
Convert buffer handle to event.
odp_buffer_t odp_buffer_alloc(odp_pool_t pool)
Buffer alloc.
void odp_buffer_free(odp_buffer_t buf)
Buffer free.
int odp_buffer_is_valid(odp_buffer_t buf)
Check that buffer is valid.
void * odp_buffer_addr(odp_buffer_t buf)
Buffer start address.
odp_buffer_t odp_buffer_from_event(odp_event_t ev)
Get buffer handle from event.
int odp_buffer_alloc_multi(odp_pool_t pool, odp_buffer_t buf[], int num)
Allocate multiple buffers.
uint64_t odp_buffer_to_u64(odp_buffer_t hdl)
Get printable value for an odp_buffer_t.
void odp_buffer_free_multi(const odp_buffer_t buf[], int num)
Free multiple buffers.
void odp_buffer_from_event_multi(odp_buffer_t buf[], const odp_event_t ev[], int num)
Convert multiple buffer events to buffer handles.
void odp_buffer_print(odp_buffer_t buf)
Print buffer metadata to STDOUT.
void odp_buffer_to_event_multi(const odp_buffer_t buf[], odp_event_t ev[], int num)
Convert multiple buffer handles to events.
odp_pool_t odp_buffer_pool(odp_buffer_t buf)
Buffer pool of the buffer.