NVIDIA DOCA SDK Data Center on a Chip Framework Documentation
apsh_common.h File Reference
#include <doca_apsh.h>
#include <doca_apsh_attr.h>
#include <doca_dev.h>
Include dependency graph for apsh_common.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  apsh_config
 

Macros

#define MAX_PATH_LEN   260
 

Functions

doca_error_t register_apsh_params (bool add_os_arg, bool add_pid_arg)
 
doca_error_t init_doca_apsh (const char *dma_device_name, struct doca_apsh_ctx **ctx)
 
doca_error_t init_doca_apsh_system (struct doca_apsh_ctx *ctx, enum doca_apsh_system_os os_type, const char *os_symbols, const char *mem_region, const char *pci_vuid, struct doca_apsh_system **system)
 
doca_error_t cleanup_doca_apsh (struct doca_apsh_ctx *ctx, struct doca_apsh_system *system)
 
doca_error_t process_get (DOCA_APSH_PROCESS_PID_TYPE pid, struct doca_apsh_system *sys, int *nb_procs, struct doca_apsh_process ***processes, struct doca_apsh_process **process)
 

Macro Definition Documentation

◆ MAX_PATH_LEN

#define MAX_PATH_LEN   260

Definition at line 32 of file apsh_common.h.

Function Documentation

◆ cleanup_doca_apsh()

doca_error_t cleanup_doca_apsh ( struct doca_apsh_ctx *  ctx,
struct doca_apsh_system *  system 
)

Definition at line 384 of file apsh_common.c.

◆ init_doca_apsh()

doca_error_t init_doca_apsh ( const char *  dma_device_name,
struct doca_apsh_ctx **  ctx 
)

Definition at line 287 of file apsh_common.c.

◆ init_doca_apsh_system()

doca_error_t init_doca_apsh_system ( struct doca_apsh_ctx *  ctx,
enum doca_apsh_system_os  os_type,
const char *  os_symbols,
const char *  mem_region,
const char *  pci_vuid,
struct doca_apsh_system **  system 
)

Definition at line 325 of file apsh_common.c.

◆ process_get()

doca_error_t process_get ( DOCA_APSH_PROCESS_PID_TYPE  pid,
struct doca_apsh_system *  sys,
int *  nb_procs,
struct doca_apsh_process ***  processes,
struct doca_apsh_process **  process 
)

Definition at line 397 of file apsh_common.c.

◆ register_apsh_params()

doca_error_t register_apsh_params ( bool  add_os_arg,
bool  add_pid_arg 
)

Definition at line 169 of file apsh_common.c.