---
name: "libnvme_mi_mi_pda_write-libnvme3"
section: "2"
platform: "linux"
package: "nvme-cli"
version: "3.2-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/libnvme_mi_mi_pda_write-libnvme3"
---

# libnvme\_mi\_mi\_pda\_write-libnvme3(2)

Write the NVMe-MI Persistent Data Area (PDA)

## NAME

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

## 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

- 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.
