NVIDIA DOCA SDK Data Center on a Chip Framework Documentation
doca_utils.hpp File Reference
#include <cstddef>
#include <chrono>
#include <string>
#include <vector>
#include <doca_argp.h>
#include <doca_buf.h>
#include <doca_buf_inventory.h>
#include <doca_comch.h>
#include <doca_comch_consumer.h>
#include <doca_comch_producer.h>
#include <doca_ctx.h>
#include <doca_dev.h>
#include <doca_erasure_coding.h>
#include <doca_mmap.h>
#include <doca_pe.h>
#include <doca_rdma.h>
Include dependency graph for doca_utils.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  storage::rdma_conn_pair
 
struct  storage::value_requirement
 
struct  storage::value_multiplicity
 

Namespaces

 storage
 

Functions

doca_dev * storage::open_device (std::string const &identifier)
 
doca_dev_rep * storage::open_representor (doca_dev *dev, std::string const &identifier)
 
doca_mmap * storage::make_mmap (doca_dev *dev, char *memory_region, size_t memory_region_size, uint32_t permissions)
 
doca_mmap * storage::make_mmap (doca_dev *dev, void const *mmap_export_blob, size_t mmap_export_blob_size)
 
doca_buf_inventory * storage::make_buf_inventory (size_t num_elements)
 
doca_comch_consumer * storage::make_comch_consumer (doca_comch_connection *conn, doca_mmap *mmap, doca_pe *pe, uint32_t task_pool_size, doca_data callback_user_data, doca_comch_consumer_task_post_recv_completion_cb_t task_cb, doca_comch_consumer_task_post_recv_completion_cb_t error_cb)
 
doca_comch_producer * storage::make_comch_producer (doca_comch_connection *conn, doca_pe *pe, uint32_t task_pool_size, doca_data callback_user_data, doca_comch_producer_task_send_completion_cb_t task_cb, doca_comch_producer_task_send_completion_cb_t error_cb)
 
doca_rdma * storage::make_rdma_context (doca_dev *dev, doca_pe *pe, doca_data ctx_user_data, uint32_t permissions)
 
bool storage::is_ctx_running (doca_ctx *ctx) noexcept
 
doca_error_t storage::stop_context (doca_ctx *ctx, doca_pe *pe) noexcept
 
doca_error_t storage::stop_context (doca_ctx *ctx, doca_pe *pe, std::vector< doca_task * > &ctx_tasks) noexcept
 
void storage::register_cli_argument (doca_argp_type type, char const *short_name, char const *long_name, char const *description, value_requirement requirement, value_multiplicity multiplicity, doca_argp_param_cb_t callback)
 
char * storage::get_buffer_bytes (doca_buf *buf) noexcept
 
char const * storage::get_buffer_bytes (doca_buf const *buf) noexcept
 
void storage::create_doca_logger_backend (void) noexcept
 
doca_ec_matrix_type storage::matrix_type_from_string (std::string const &matrix_type)
 

Variables

static constexpr value_requirement storage::required_value {true}
 
static constexpr value_requirement storage::optional_value {false}
 
static constexpr value_multiplicity storage::single_value {false}
 
static constexpr value_multiplicity storage::multiple_values {true}