diff options
author | Matias Elo <matias.elo@nokia.com> | 2022-12-13 16:59:56 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-13 16:59:56 +0200 |
commit | 282188e33695bb6863e289df61e0dfbd87ca205c (patch) | |
tree | d7049450681f6c58f3ea734d3b405c54cb668ba8 /include/odp/api/spec/buffer.h | |
parent | 00285f307c545deac5684905ade826690085df8e (diff) | |
parent | d62cba76af69e8f281b3f7014fc3cbff51506ff7 (diff) |
Merge ODP v1.39.0.0v1.39.0.0_DPDK_19.11
Merge ODP linux-generic v1.39.0.0 into linux-dpdk.
Diffstat (limited to 'include/odp/api/spec/buffer.h')
-rw-r--r-- | include/odp/api/spec/buffer.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/include/odp/api/spec/buffer.h b/include/odp/api/spec/buffer.h index b739e549f..cfb85df17 100644 --- a/include/odp/api/spec/buffer.h +++ b/include/odp/api/spec/buffer.h @@ -52,6 +52,17 @@ extern "C" { odp_buffer_t odp_buffer_from_event(odp_event_t ev); /** + * Convert multiple buffer events to buffer handles + * + * All events must be of type ODP_EVENT_BUFFER. + * + * @param[out] buf Buffer handle array for output + * @param ev Array of event handles to convert + * @param num Number of buffers and events + */ +void odp_buffer_from_event_multi(odp_buffer_t buf[], const odp_event_t ev[], int num); + +/** * Convert buffer handle to event * * @param buf Buffer handle @@ -61,6 +72,15 @@ odp_buffer_t odp_buffer_from_event(odp_event_t ev); odp_event_t odp_buffer_to_event(odp_buffer_t buf); /** + * Convert multiple buffer handles to events + * + * @param buf Array of buffer handles to convert + * @param[out] ev Event handle array for output + * @param num Number of buffers and events + */ +void odp_buffer_to_event_multi(const odp_buffer_t buf[], odp_event_t ev[], int num); + +/** * Buffer start address * * @param buf Buffer handle |