---
name: "nvme_init_format_nvm-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/nvme_init_format_nvm-libnvme3"
---

# nvme\_init\_format\_nvm-libnvme3(2)

Initialize passthru command for Format NVM

## NAME

nvme\_init\_format\_nvm - Initialize passthru command for Format NVM

## SYNOPSIS

**void nvme\_init\_format\_nvm** **(struct libnvme\_passthru\_cmd \*cmd** *,* **\_\_u32 nsid** *,* **\_\_u8 lbaf** *,* **enum nvme\_cmd\_format\_mset mset** *,* **enum nvme\_cmd\_format\_pi pi** *,* **enum nvme\_cmd\_format\_pil pil** *,* **enum nvme\_cmd\_format\_ses ses** *);*

## ARGUMENTS

- cmd

  Passthru command to use

- nsid

  Namespace ID to format

- lbaf

  Logical block address format

- mset

  Metadata settings (extended or separated)

- pi

  Protection information type

- pil

  Protection information location (beginning or end)

- ses

  Secure erase settings

## DESCRIPTION

Initializes the passthru command buffer for the Format NVM command.
