nvme_init_dsm_range(2) libnvme API manual nvme_init_dsm_range(2)

nvme_init_dsm_range - Constructs a data set range structure

void nvme_init_dsm_range (struct nvme_dsm_range *dsm , __u32 *ctx_attrs , __u32 *llbas , __u64 *slbas , __u16 nr_ranges );

DSM range array
Array of context attributes
Array of length in logical blocks
Array of starting logical blocks
The size of the dsm arrays

Each array must be the same size of size 'nr_ranges'. This is intended to be used with constructing a payload for nvme_dsm.

The nvme command status if a response was received or -errno otherwise.

nvme_init_dsm_range March 2024