NVIDIA DOCA SDK Data Center on a Chip Framework Documentation
sync_event_local_pci_sample.c File Reference
#include <unistd.h>
#include <doca_log.h>
#include <doca_comch.h>
#include <doca_sync_event.h>
#include <common.h>
#include "common_common.h"
Include dependency graph for sync_event_local_pci_sample.c:

Go to the source code of this file.

Functions

 DOCA_LOG_REGISTER (SYNC_EVENT::SAMPLE)
 
doca_error_t sync_event_get_export_to_dpu_supported (struct doca_devinfo *devinfo)
 
static doca_error_t se_init (struct sync_event_runtime_objects *se_rt_objs)
 
static doca_error_t se_export (struct sync_event_runtime_objects *se_rt_objs)
 
static doca_error_t se_communicate_sync (const struct sync_event_config *se_cfg, struct sync_event_runtime_objects *se_rt_objs)
 
static doca_error_t se_communicate_async (const struct sync_event_config *se_cfg, struct sync_event_runtime_objects *se_rt_objs)
 
static void comch_recv_event_cb (struct doca_comch_event_msg_recv *event, uint8_t *recv_buffer, uint32_t msg_len, struct doca_comch_connection *comch_connection)
 
doca_error_t sync_event_run (const struct sync_event_config *se_cfg, struct sync_event_runtime_objects *se_rt_objs)
 

Function Documentation

◆ comch_recv_event_cb()

static void comch_recv_event_cb ( struct doca_comch_event_msg_recv *  event,
uint8_t *  recv_buffer,
uint32_t  msg_len,
struct doca_comch_connection *  comch_connection 
)
static

Definition at line 246 of file sync_event_local_pci_sample.c.

◆ DOCA_LOG_REGISTER()

DOCA_LOG_REGISTER ( SYNC_EVENT::SAMPLE  )

◆ se_communicate_async()

static doca_error_t se_communicate_async ( const struct sync_event_config se_cfg,
struct sync_event_runtime_objects se_rt_objs 
)
static

Definition at line 177 of file sync_event_local_pci_sample.c.

◆ se_communicate_sync()

static doca_error_t se_communicate_sync ( const struct sync_event_config se_cfg,
struct sync_event_runtime_objects se_rt_objs 
)
static

Definition at line 137 of file sync_event_local_pci_sample.c.

◆ se_export()

static doca_error_t se_export ( struct sync_event_runtime_objects se_rt_objs)
static

Definition at line 86 of file sync_event_local_pci_sample.c.

◆ se_init()

static doca_error_t se_init ( struct sync_event_runtime_objects se_rt_objs)
static

Definition at line 55 of file sync_event_local_pci_sample.c.

◆ sync_event_get_export_to_dpu_supported()

doca_error_t sync_event_get_export_to_dpu_supported ( struct doca_devinfo *  devinfo)

Definition at line 44 of file sync_event_local_pci_sample.c.

◆ sync_event_run()

doca_error_t sync_event_run ( const struct sync_event_config se_cfg,
struct sync_event_runtime_objects se_rt_objs 
)

Definition at line 265 of file sync_event_local_pci_sample.c.