Loading...
Searching...
No Matches
spdk_nvme_rdma_hooks Struct Reference

RDMA Transport Hooks. More...

#include <nvme.h>

Data Fields

struct ibv_pd *(* get_ibv_pd )(const struct spdk_nvme_transport_id *trid, struct ibv_context *verbs)
 Get an InfiniBand Verbs protection domain.
 
uint64_t(* get_rkey )(struct ibv_pd *pd, void *buf, size_t size)
 Get an InfiniBand Verbs memory region for a buffer.
 
void(* put_rkey )(uint64_t key)
 Put back keys got from get_rkey.
 

Detailed Description

RDMA Transport Hooks.

Field Documentation

◆ get_ibv_pd

struct ibv_pd *(* spdk_nvme_rdma_hooks::get_ibv_pd) (const struct spdk_nvme_transport_id *trid, struct ibv_context *verbs)

Get an InfiniBand Verbs protection domain.

Parameters
tridthe transport id
verbsInfiniband verbs context
Returns
pd of the nvme ctrlr

◆ get_rkey

uint64_t(* spdk_nvme_rdma_hooks::get_rkey) (struct ibv_pd *pd, void *buf, size_t size)

Get an InfiniBand Verbs memory region for a buffer.

Parameters
pdThe protection domain returned from get_ibv_pd
bufMemory buffer for which an rkey should be returned.
sizesize of buf
Returns
Infiniband remote key (rkey) for this buf

◆ put_rkey

void(* spdk_nvme_rdma_hooks::put_rkey) (uint64_t key)

Put back keys got from get_rkey.

Parameters
keyThe Infiniband remote key (rkey) got from get_rkey

The documentation for this struct was generated from the following file: