Utilities for boilerplate code.
nvm_bp
Boilerplate for working with the API.
Encapsulated in a struct such that example code can focus on the interesting parts and the usual boiler-plate code needed to get things going.
Public Members
dev
geo
bufs
vblk
ws_opt
naddrs
struct nvm_addr nvm_bp::addrs[]
nvm_bp_term
nvm_bp_init_from_args
Use argv as ‘nvm_bp_init(argv[1], argv[2], argv[3])’.
nvm_bp_init
argv[3]: naddrs argv[2]: Backend Identifier as hex, eg.
NVM_BE_IOCTL(0x1), NVM_BE_SPDK(0x4) argv[1]: Device identifier, eg. “/dev/nvme0n1” or “traddrs:0000:00:01.0”
nvm_bp_pr