NVIDIA DOCA SDK Data Center on a Chip Framework Documentation
urom_common.c File Reference
#include <arpa/inet.h>
#include <netdb.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <doca_argp.h>
#include <doca_ctx.h>
#include <doca_log.h>
#include "urom_common.h"
Include dependency graph for urom_common.c:

Go to the source code of this file.

Macros

#define _GNU_SOURCE
 

Functions

 DOCA_LOG_REGISTER (UROM::SAMPLES :COMMON)
 
static doca_error_t device_address_callback (void *param, void *config)
 
doca_error_t register_urom_common_params (void)
 
doca_error_t start_urom_service (struct doca_pe *pe, struct doca_dev *dev, uint64_t nb_workers, struct doca_urom_service **service)
 
doca_error_t start_urom_worker (struct doca_pe *pe, struct doca_urom_service *service, uint64_t worker_id, uint32_t *gid, uint64_t nb_tasks, doca_cpu_set_t *cpuset, char **env, size_t env_count, uint64_t plugins, struct doca_urom_worker **worker)
 
doca_error_t start_urom_domain (struct doca_pe *pe, struct doca_urom_domain_oob_coll *oob, uint64_t *worker_ids, struct doca_urom_worker **workers, size_t nb_workers, struct urom_domain_buffer_attrs *buffers, size_t nb_buffers, struct doca_urom_domain **domain)
 

Macro Definition Documentation

◆ _GNU_SOURCE

#define _GNU_SOURCE

Definition at line 27 of file urom_common.c.

Function Documentation

◆ device_address_callback()

static doca_error_t device_address_callback ( void *  param,
void *  config 
)
static

Definition at line 52 of file urom_common.c.

◆ DOCA_LOG_REGISTER()

DOCA_LOG_REGISTER ( UROM::SAMPLES :COMMON  )

◆ register_urom_common_params()

doca_error_t register_urom_common_params ( void  )

Definition at line 69 of file urom_common.c.

◆ start_urom_domain()

doca_error_t start_urom_domain ( struct doca_pe *  pe,
struct doca_urom_domain_oob_coll oob,
uint64_t *  worker_ids,
struct doca_urom_worker **  workers,
size_t  nb_workers,
struct urom_domain_buffer_attrs buffers,
size_t  nb_buffers,
struct doca_urom_domain **  domain 
)

Definition at line 243 of file urom_common.c.

◆ start_urom_service()

doca_error_t start_urom_service ( struct doca_pe *  pe,
struct doca_dev *  dev,
uint64_t  nb_workers,
struct doca_urom_service **  service 
)

Definition at line 95 of file urom_common.c.

◆ start_urom_worker()

doca_error_t start_urom_worker ( struct doca_pe *  pe,
struct doca_urom_service *  service,
uint64_t  worker_id,
uint32_t *  gid,
uint64_t  nb_tasks,
doca_cpu_set_t cpuset,
char **  env,
size_t  env_count,
uint64_t  plugins,
struct doca_urom_worker **  worker 
)

Definition at line 148 of file urom_common.c.