libnvme_mi_mi_pda_write(9)

NAME
libnvme_mi_mi_pda_write - Write the NVMe-MI Persistent Data Area (PDA)

SYNOPSIS
int libnvme_mi_mi_pda_write (libnvme_mi_ep_t ep , enum nvme_mi_pda_dformat dformat , __u32 dofst , __u32 dlen , void *data , size_t data_len );

ARGUMENTS

ep  endpoint for MI communication

dformat
    data format to use for dofst and dlen, see enum nvme_mi_pda_dformat

dofst
    starting offset, in units of dformat, into the PDA to write

dlen
    length, in units of dformat, of data to write to the PDA starting at dofst

data
    data to write to the PDA

data_len
    length of data

DESCRIPTION
Performs an NVMe-MI PDA Write command.

RETURN
The nvme command status if a response was received (see enum nvme_status_field) or negative error code otherwise.