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

Go to the source code of this file.

Data Structures

struct  doca_dpa_dev_buf
 doca dpa device buf declaration More...
 
struct  doca_dpa_dev_buf_arr
 doca dpa device buf array declaration More...
 

Functions

struct doca_dpa_dev_buf __attribute__ ((__packed__))
 
struct doca_dpa_dev_buf_arr __attribute__ ((__packed__, aligned(64)))
 
DOCA_EXPERIMENTAL __forceinline doca_dpa_dev_buf_t doca_dpa_dev_buf_array_get_buf (doca_dpa_dev_buf_arr_t buf_arr, const uint64_t buf_idx)
 Get DPA buffer handle from a DPA buffer array handle. More...
 
DOCA_EXPERIMENTAL __forceinline void doca_dpa_dev_buf_set_addr (doca_dpa_dev_buf_t buf, uintptr_t addr)
 Set the address of a DPA buffer handle. More...
 
DOCA_EXPERIMENTAL __forceinline void doca_dpa_dev_buf_set_len (doca_dpa_dev_buf_t buf, size_t len)
 Set the length of a DPA buffer handle. More...
 
DOCA_EXPERIMENTAL __forceinline void doca_dpa_dev_buf_set_mmap (doca_dpa_dev_buf_t buf, doca_dpa_dev_mmap_t mmap)
 Set the DOCA Mmap associated with a DPA buffer handle. More...
 
DOCA_EXPERIMENTAL __forceinline uintptr_t doca_dpa_dev_buf_get_addr (doca_dpa_dev_buf_t buf)
 Get address from a DPA buffer handle. More...
 
DOCA_EXPERIMENTAL __forceinline uint64_t doca_dpa_dev_buf_get_len (doca_dpa_dev_buf_t buf)
 Get length from a DPA buffer handle. More...
 
DOCA_EXPERIMENTAL __forceinline doca_dpa_dev_mmap_t doca_dpa_dev_buf_get_mmap (doca_dpa_dev_buf_t buf)
 Get the DOCA Mmap associated with a DPA buffer handle. More...
 
DOCA_EXPERIMENTAL doca_dpa_dev_uintptr_t doca_dpa_dev_buf_get_external_ptr (doca_dpa_dev_buf_t buf)
 Obtain a pointer to externally allocated memory. More...
 
DOCA_EXPERIMENTAL void doca_dpa_dev_post_buf_memcpy (doca_dpa_dev_async_ops_t async_ops_handle, doca_dpa_dev_buf_t dst_buf_handle, doca_dpa_dev_buf_t src_buf_handle, uint32_t flags)
 Initiate a copy data between two DOCA buffers. More...
 
DOCA_EXPERIMENTAL void doca_dpa_dev_post_memcpy (doca_dpa_dev_async_ops_t async_ops_handle, doca_dpa_dev_mmap_t dst_mmap_handle, uint64_t dst_addr, doca_dpa_dev_mmap_t src_mmap_handle, uint64_t src_addr, size_t length, uint32_t flags)
 Initiate a copy data between two DOCA Mmaps. More...
 
DOCA_EXPERIMENTAL doca_dpa_dev_uintptr_t doca_dpa_dev_mmap_get_external_ptr (doca_dpa_dev_mmap_t mmap_handle, uint64_t addr)
 Obtain a pointer to externally allocated memory. More...
 

Variables

__dpa_global__ typedef uint32_t doca_dpa_dev_mmap_t
 DPA mmap handle type definition. More...
 
__dpa_global__ typedef uint64_t doca_dpa_dev_buf_t
 DPA buffer handle type definition. More...
 
__dpa_global__ typedef uint64_t doca_dpa_dev_buf_arr_t
 DPA buffer array handle type definition. More...
 
uintptr_t addr
 
uint64_t len
 
doca_dpa_dev_mmap_t mmap
 
unsigned char reserved [12]
 
struct doca_dpa_dev_bufbufs
 

Variable Documentation

◆ addr

uintptr_t addr

address held by doca dpa device buf

Definition at line 0 of file doca_dpa_dev_buf.h.

◆ bufs

struct doca_dpa_dev_buf* bufs

doca dpa device bufs

Definition at line 0 of file doca_dpa_dev_buf.h.

◆ len

uint64_t len

length of doca dpa device buf

Definition at line 1 of file doca_dpa_dev_buf.h.

◆ mmap

the mmap associated with the doca dpa device buf

Definition at line 2 of file doca_dpa_dev_buf.h.

◆ reserved

unsigned char reserved

reserved field

Definition at line 3 of file doca_dpa_dev_buf.h.