libnvme\_mi\_mi\_pda\_write(9) libnvme API manual libnvme\_mi\_mi\_pda\_write(9)

# [NAME](#NAME)

libnvme\_mi\_mi\_pda\_write - Write the NVMe-MI Persistent Data Area (PDA)

# [SYNOPSIS](#SYNOPSIS)

**int libnvme\_mi\_mi\_pda\_write** **(struct libnvme\_mi\_ep \*ep ,** **enum nvme\_mi\_pda\_dformat dformat ,** **\_\_u32 dofst ,** **\_\_u32 dlen ,** **void \*data ,** **size\_t data\_len );**

# [ARGUMENTS](#ARGUMENTS)

[ep](#ep)

endpoint for MI communication

[dformat](#dformat)

data format to use for *dofst* and *dlen*, see *enum nvme\_mi\_pda\_dformat*

[dofst](#dofst)

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

[dlen](#dlen)

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

[data](#data)

data to write to the PDA

[data\_len](#data_len)

length of *data*

# [DESCRIPTION](#DESCRIPTION)

Performs an NVMe-MI PDA Write command.

# [RETURN](#RETURN)

The nvme command status if a response was received (see *enum nvme\_status\_field*) or negative error code otherwise.

libnvme\_mi\_mi\_pda\_write October 2026

---

Document: libnvme_mi_mi_pda_write-libnvme3(2) from nvme-cli 3.2-r0 (Chainguard OS)
Source: https://github.com/linux-nvme/nvme-cli
