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

Go to the source code of this file.

Functions

doca_error_t comch_utils_init (const char *server_name, const char *pci_addr, const char *rep_pci_addr, void *user_data, doca_comch_event_msg_recv_cb_t client_recv_event_cb, doca_comch_event_msg_recv_cb_t server_recv_event_cb, struct comch_cfg **comch_cfg)
 
doca_error_t comch_utils_fast_path_init (const char *server_name, const char *pci_addr, const char *rep_pci_addr, void *user_data, doca_comch_event_msg_recv_cb_t client_recv_event_cb, doca_comch_event_msg_recv_cb_t server_recv_event_cb, doca_comch_event_consumer_cb_t new_consumer_event_cb, doca_comch_event_consumer_cb_t expired_consumer_event_cb, struct comch_cfg **comch_cfg)
 
doca_error_t comch_utils_destroy (struct comch_cfg *comch_cfg)
 
doca_error_t comch_utils_send (struct doca_comch_connection *connection, const void *msg, uint32_t len)
 
void * comch_utils_get_user_data (struct doca_comch_connection *connection)
 
doca_error_t comch_utils_progress_connection (struct doca_comch_connection *connection)
 
struct doca_comch_connection * comch_util_get_connection (struct comch_cfg *comch_cfg)
 
uint32_t comch_utils_get_max_buffer_size (struct comch_cfg *comch_cfg)
 

Function Documentation

◆ comch_util_get_connection()

struct doca_comch_connection* comch_util_get_connection ( struct comch_cfg comch_cfg)

Definition at line 276 of file comch_utils.c.

◆ comch_utils_destroy()

doca_error_t comch_utils_destroy ( struct comch_cfg comch_cfg)

Definition at line 592 of file comch_utils.c.

◆ comch_utils_fast_path_init()

doca_error_t comch_utils_fast_path_init ( const char *  server_name,
const char *  pci_addr,
const char *  rep_pci_addr,
void *  user_data,
doca_comch_event_msg_recv_cb_t  client_recv_event_cb,
doca_comch_event_msg_recv_cb_t  server_recv_event_cb,
doca_comch_event_consumer_cb_t  new_consumer_event_cb,
doca_comch_event_consumer_cb_t  expired_consumer_event_cb,
struct comch_cfg **  comch_cfg 
)

Definition at line 296 of file comch_utils.c.

◆ comch_utils_get_max_buffer_size()

uint32_t comch_utils_get_max_buffer_size ( struct comch_cfg comch_cfg)

Definition at line 286 of file comch_utils.c.

◆ comch_utils_get_user_data()

void* comch_utils_get_user_data ( struct doca_comch_connection *  connection)

Definition at line 254 of file comch_utils.c.

◆ comch_utils_init()

doca_error_t comch_utils_init ( const char *  server_name,
const char *  pci_addr,
const char *  rep_pci_addr,
void *  user_data,
doca_comch_event_msg_recv_cb_t  client_recv_event_cb,
doca_comch_event_msg_recv_cb_t  server_recv_event_cb,
struct comch_cfg **  comch_cfg 
)

Definition at line 573 of file comch_utils.c.

◆ comch_utils_progress_connection()

doca_error_t comch_utils_progress_connection ( struct doca_comch_connection *  connection)

Definition at line 264 of file comch_utils.c.

◆ comch_utils_send()

doca_error_t comch_utils_send ( struct doca_comch_connection *  connection,
const void *  msg,
uint32_t  len 
)

Definition at line 212 of file comch_utils.c.