NVIDIA DOCA SDK Data Center on a Chip Framework Documentation
rdma_sync_event_responder_sample.c File Reference
#include <doca_error.h>
#include <doca_log.h>
#include <doca_buf_inventory.h>
#include <doca_buf.h>
#include <doca_ctx.h>
#include "rdma_common.h"
Include dependency graph for rdma_sync_event_responder_sample.c:

Go to the source code of this file.

Macros

#define EXAMPLE_SET_VALUE   (0xD0CA) /* Example value to use for setting sync event */
 

Functions

 DOCA_LOG_REGISTER (RDMA_READ_RESPONDER::SAMPLE)
 
doca_error_t rdma_sync_event_responder_destroy_sync_event_resources (struct rdma_resources *resources)
 
doca_error_t rdma_sync_event_responder_allocate_sync_event_resources (struct rdma_resources *resources)
 
static doca_error_t write_read_connection (struct rdma_config *cfg, struct rdma_resources *resources)
 
static doca_error_t rdma_sync_event_responder_export_and_connect (struct rdma_resources *resources)
 
static doca_error_t rdma_sync_event_responder_handle_event (struct doca_sync_event *sync_event)
 
static doca_error_t responder_wait_for_requester_finish (struct rdma_resources *resources)
 
static void rdma_sync_event_responder_state_change_callback (const union doca_data user_data, struct doca_ctx *ctx, enum doca_ctx_states prev_state, enum doca_ctx_states next_state)
 
doca_error_t rdma_sync_event_responder (struct rdma_config *cfg)
 

Macro Definition Documentation

◆ EXAMPLE_SET_VALUE

#define EXAMPLE_SET_VALUE   (0xD0CA) /* Example value to use for setting sync event */

Definition at line 36 of file rdma_sync_event_responder_sample.c.

Function Documentation

◆ DOCA_LOG_REGISTER()

DOCA_LOG_REGISTER ( RDMA_READ_RESPONDER::SAMPLE  )

◆ rdma_sync_event_responder()

doca_error_t rdma_sync_event_responder ( struct rdma_config cfg)

Definition at line 365 of file rdma_sync_event_responder_sample.c.

◆ rdma_sync_event_responder_allocate_sync_event_resources()

doca_error_t rdma_sync_event_responder_allocate_sync_event_resources ( struct rdma_resources resources)

Definition at line 76 of file rdma_sync_event_responder_sample.c.

◆ rdma_sync_event_responder_destroy_sync_event_resources()

doca_error_t rdma_sync_event_responder_destroy_sync_event_resources ( struct rdma_resources resources)

Definition at line 44 of file rdma_sync_event_responder_sample.c.

◆ rdma_sync_event_responder_export_and_connect()

static doca_error_t rdma_sync_event_responder_export_and_connect ( struct rdma_resources resources)
static

Definition at line 171 of file rdma_sync_event_responder_sample.c.

◆ rdma_sync_event_responder_handle_event()

static doca_error_t rdma_sync_event_responder_handle_event ( struct doca_sync_event *  sync_event)
static

Definition at line 228 of file rdma_sync_event_responder_sample.c.

◆ rdma_sync_event_responder_state_change_callback()

static void rdma_sync_event_responder_state_change_callback ( const union doca_data  user_data,
struct doca_ctx *  ctx,
enum doca_ctx_states  prev_state,
enum doca_ctx_states  next_state 
)
static

doca_ctx_stop() has been called. In this sample, this happens either due to a failure encountered, in which case doca_pe_progress() will cause any inflight task to be flushed, or due to the successful compilation of the sample flow. In both cases, in this sample, doca_pe_progress() will eventually transition the context to idle state.

Definition at line 299 of file rdma_sync_event_responder_sample.c.

◆ responder_wait_for_requester_finish()

static doca_error_t responder_wait_for_requester_finish ( struct rdma_resources resources)
static

Definition at line 262 of file rdma_sync_event_responder_sample.c.

◆ write_read_connection()

static doca_error_t write_read_connection ( struct rdma_config cfg,
struct rdma_resources resources 
)
static

Definition at line 121 of file rdma_sync_event_responder_sample.c.