NVIDIA DOCA SDK Data Center on a Chip Framework Documentation
doca_buf_array.h File Reference
#include <stddef.h>
#include <stdint.h>
#include <doca_compat.h>
#include <doca_error.h>
Include dependency graph for doca_buf_array.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Typedefs

typedef uint64_t doca_dpa_dev_buf_arr_t
 Type representing a doca_buf_arr handle on the DPA. More...
 

Functions

DOCA_EXPERIMENTAL doca_error_t doca_buf_arr_create (size_t num_elem, struct doca_buf_arr **buf_arr)
 Allocates a doca_buf_arr. More...
 
DOCA_EXPERIMENTAL doca_error_t doca_buf_arr_set_target_gpu (struct doca_buf_arr *buf_arr, struct doca_gpu *gpu_handler)
 Configures the buf array to be created on the gpu device. More...
 
DOCA_EXPERIMENTAL doca_error_t doca_buf_arr_set_target_dpa (struct doca_buf_arr *buf_arr, struct doca_dpa *dpa_handler)
 Configures the buf array to be created on the dpa device. More...
 
DOCA_EXPERIMENTAL doca_error_t doca_buf_arr_set_params (struct doca_buf_arr *buf_arr, struct doca_mmap *mmap, size_t elem_size, uint64_t start_offset)
 Sets the buf array params. More...
 
DOCA_EXPERIMENTAL doca_error_t doca_buf_arr_start (struct doca_buf_arr *buf_arr)
 This method enables the allocation of doca_bufs. More...
 
DOCA_EXPERIMENTAL doca_error_t doca_buf_arr_stop (struct doca_buf_arr *buf_arr)
 Stops a started doca buf array. More...
 
DOCA_EXPERIMENTAL doca_error_t doca_buf_arr_destroy (struct doca_buf_arr *buf_arr)
 Destroys a doca buf array instance. More...
 
DOCA_EXPERIMENTAL doca_error_t doca_buf_arr_get_gpu_handle (const struct doca_buf_arr *buf_arr, struct doca_gpu_buf_arr **gpu_buf_arr)
 Retrieves the handle in the gpu memory space of a doca_buf_arr. More...
 
DOCA_EXPERIMENTAL doca_error_t doca_buf_arr_get_dpa_handle (const struct doca_buf_arr *buf_arr, doca_dpa_dev_buf_arr_t *dpa_buf_arr)
 Retrieves the handle in the dpa memory space of a doca_buf_arr. More...