NVIDIA DOCA SDK Data Center on a Chip Framework Documentation
nvmf_rpc.c File Reference
#include "spdk/log.h"
#include "spdk/rpc.h"
#include "spdk/util.h"
#include <doca_dev.h>
#include <doca_ctx.h>
#include <doca_devemu_pci.h>
#include <doca_devemu_pci_type.h>
#include <doca_error.h>
#include <doca_log.h>
#include "nvme_pci_common.h"
#include "nvme_pci_type_config.h"
Include dependency graph for nvmf_rpc.c:

Go to the source code of this file.

Data Structures

struct  nvmf_doca_create_function_in
 
struct  nvmf_doca_destroy_function_in
 
struct  nvmf_doca_list_functions_in
 

Functions

static void rpc_nvmf_doca_get_managers (struct spdk_jsonrpc_request *request, const struct spdk_json_val *params)
 
 SPDK_RPC_REGISTER ("nvmf_doca_get_managers", rpc_nvmf_doca_get_managers, SPDK_RPC_RUNTIME)
 
static void free_rpc_nvmf_doca_create_function (struct nvmf_doca_create_function_in *in)
 
static void rpc_nvmf_doca_create_function (struct spdk_jsonrpc_request *request, const struct spdk_json_val *params)
 
 SPDK_RPC_REGISTER ("nvmf_doca_create_function", rpc_nvmf_doca_create_function, SPDK_RPC_RUNTIME)
 
static void free_rpc_nvmf_doca_destroy_function (struct nvmf_doca_destroy_function_in *in)
 
static void rpc_nvmf_doca_destroy_function (struct spdk_jsonrpc_request *request, const struct spdk_json_val *params)
 
 SPDK_RPC_REGISTER ("nvmf_doca_destroy_function", rpc_nvmf_doca_destroy_function, SPDK_RPC_RUNTIME)
 
static void free_rpc_nvmf_doca_list_functions (struct nvmf_doca_list_functions_in *in)
 
static void rpc_nvmf_doca_list_functions (struct spdk_jsonrpc_request *request, const struct spdk_json_val *params)
 
 SPDK_RPC_REGISTER ("nvmf_doca_list_functions", rpc_nvmf_doca_list_functions, SPDK_RPC_RUNTIME)
 

Variables

static const struct spdk_json_object_decoder nvmf_doca_create_function_decoder []
 
static const struct spdk_json_object_decoder nvmf_doca_destroy_function_decoder []
 
static const struct spdk_json_object_decoder nvmf_doca_list_functions_decoder []
 

Function Documentation

◆ free_rpc_nvmf_doca_create_function()

static void free_rpc_nvmf_doca_create_function ( struct nvmf_doca_create_function_in in)
static

Definition at line 95 of file nvmf_rpc.c.

◆ free_rpc_nvmf_doca_destroy_function()

static void free_rpc_nvmf_doca_destroy_function ( struct nvmf_doca_destroy_function_in in)
static

Definition at line 187 of file nvmf_rpc.c.

◆ free_rpc_nvmf_doca_list_functions()

static void free_rpc_nvmf_doca_list_functions ( struct nvmf_doca_list_functions_in in)
static

Definition at line 286 of file nvmf_rpc.c.

◆ rpc_nvmf_doca_create_function()

static void rpc_nvmf_doca_create_function ( struct spdk_jsonrpc_request *  request,
const struct spdk_json_val *  params 
)
static

Definition at line 112 of file nvmf_rpc.c.

◆ rpc_nvmf_doca_destroy_function()

static void rpc_nvmf_doca_destroy_function ( struct spdk_jsonrpc_request *  request,
const struct spdk_json_val *  params 
)
static

Definition at line 206 of file nvmf_rpc.c.

◆ rpc_nvmf_doca_get_managers()

static void rpc_nvmf_doca_get_managers ( struct spdk_jsonrpc_request *  request,
const struct spdk_json_val *  params 
)
static

Definition at line 49 of file nvmf_rpc.c.

◆ rpc_nvmf_doca_list_functions()

static void rpc_nvmf_doca_list_functions ( struct spdk_jsonrpc_request *  request,
const struct spdk_json_val *  params 
)
static

Definition at line 303 of file nvmf_rpc.c.

◆ SPDK_RPC_REGISTER() [1/4]

SPDK_RPC_REGISTER ( "nvmf_doca_create_function"  ,
rpc_nvmf_doca_create_function  ,
SPDK_RPC_RUNTIME   
)

◆ SPDK_RPC_REGISTER() [2/4]

SPDK_RPC_REGISTER ( "nvmf_doca_destroy_function"  ,
rpc_nvmf_doca_destroy_function  ,
SPDK_RPC_RUNTIME   
)

◆ SPDK_RPC_REGISTER() [3/4]

SPDK_RPC_REGISTER ( "nvmf_doca_get_managers"  ,
rpc_nvmf_doca_get_managers  ,
SPDK_RPC_RUNTIME   
)

◆ SPDK_RPC_REGISTER() [4/4]

SPDK_RPC_REGISTER ( "nvmf_doca_list_functions"  ,
rpc_nvmf_doca_list_functions  ,
SPDK_RPC_RUNTIME   
)

Variable Documentation

◆ nvmf_doca_create_function_decoder

const struct spdk_json_object_decoder nvmf_doca_create_function_decoder[]
static
Initial value:
= {
{"dev-name", offsetof(struct nvmf_doca_create_function_in, dev_name), spdk_json_decode_string, true},
}
#define offsetof(t, d)

Definition at line 95 of file nvmf_rpc.c.

◆ nvmf_doca_destroy_function_decoder

const struct spdk_json_object_decoder nvmf_doca_destroy_function_decoder[]
static
Initial value:
= {
{"dev-name", offsetof(struct nvmf_doca_destroy_function_in, dev_name), spdk_json_decode_string, true},
{"vuid", offsetof(struct nvmf_doca_destroy_function_in, vuid), spdk_json_decode_string, true},
}

Definition at line 187 of file nvmf_rpc.c.

◆ nvmf_doca_list_functions_decoder

const struct spdk_json_object_decoder nvmf_doca_list_functions_decoder[]
static
Initial value:
= {
{"dev-name", offsetof(struct nvmf_doca_list_functions_in, dev_name), spdk_json_decode_string, true},
}

Definition at line 286 of file nvmf_rpc.c.