NVIDIA DOCA SDK Data Center on a Chip Framework Documentation
rmax_common.h File Reference
#include <stdbool.h>
#include <stdint.h>
#include <stdlib.h>
#include <doca_argp.h>
#include <doca_buf.h>
#include <doca_buf_inventory.h>
#include <doca_ctx.h>
#include <doca_pe.h>
#include <doca_dev.h>
#include <doca_error.h>
#include <doca_log.h>
#include <doca_mmap.h>
#include <doca_rmax.h>
#include "common.h"
Include dependency graph for rmax_common.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  rmax_stream_config
 
struct  rmax_program_state
 

Macros

#define MAX_BUFFERS   2 /* max number of buffers used by the samples */
 

Functions

doca_error_t register_create_stream_params (void)
 
doca_error_t rmax_flow_set_attributes (struct rmax_stream_config *config, struct doca_rmax_flow *flow)
 
doca_error_t rmax_stream_set_attributes (struct doca_rmax_in_stream *stream, struct rmax_stream_config *config)
 
doca_error_t rmax_stream_start (struct rmax_program_state *state)
 
doca_error_t rmax_stream_allocate_buf (struct rmax_program_state *state, struct doca_rmax_in_stream *stream, struct rmax_stream_config *config, struct doca_buf **buffer, uint16_t *stride_size)
 
void rmax_create_stream_cleanup (struct rmax_program_state *state, struct doca_rmax_in_stream *stream, struct doca_rmax_flow *flow, struct doca_buf *buf)
 

Macro Definition Documentation

◆ MAX_BUFFERS

#define MAX_BUFFERS   2 /* max number of buffers used by the samples */

Definition at line 46 of file rmax_common.h.

Function Documentation

◆ register_create_stream_params()

doca_error_t register_create_stream_params ( void  )

Definition at line 116 of file rmax_common.c.

◆ rmax_create_stream_cleanup()

void rmax_create_stream_cleanup ( struct rmax_program_state state,
struct doca_rmax_in_stream *  stream,
struct doca_rmax_flow *  flow,
struct doca_buf *  buf 
)

Definition at line 375 of file rmax_common.c.

◆ rmax_flow_set_attributes()

doca_error_t rmax_flow_set_attributes ( struct rmax_stream_config config,
struct doca_rmax_flow *  flow 
)

Definition at line 207 of file rmax_common.c.

◆ rmax_stream_allocate_buf()

doca_error_t rmax_stream_allocate_buf ( struct rmax_program_state state,
struct doca_rmax_in_stream *  stream,
struct rmax_stream_config config,
struct doca_buf **  buffer,
uint16_t *  stride_size 
)

Definition at line 284 of file rmax_common.c.

◆ rmax_stream_set_attributes()

doca_error_t rmax_stream_set_attributes ( struct doca_rmax_in_stream *  stream,
struct rmax_stream_config config 
)

Definition at line 226 of file rmax_common.c.

◆ rmax_stream_start()

doca_error_t rmax_stream_start ( struct rmax_program_state state)

Definition at line 267 of file rmax_common.c.