---
name: "nvme_init_get_lba_status-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_get_lba_status-libnvme3"
---

# nvme\_init\_get\_lba\_status-libnvme3(2)

Initialize passthru command to retrieve information on possibly unrecoverable LBAs

## NAME

nvme\_init\_get\_lba\_status - Initialize passthru command to retrieve information on possibly unrecoverable LBAs

## SYNOPSIS

**void nvme\_init\_get\_lba\_status** **(struct libnvme\_passthru\_cmd \*cmd** *,* **\_\_u32 nsid** *,* **\_\_u64 slba** *,* **\_\_u32 mndw** *,* **enum nvme\_lba\_status\_atype atype** *,* **\_\_u16 rl** *,* **struct nvme\_lba\_status \*lbas** *);*

## ARGUMENTS

- cmd

  Passthru command to use

- nsid

  Namespace ID to retrieve LBA status

- slba

  Starting logical block address to check statuses

- mndw

  Maximum number of dwords to return

- atype

  Action type mechanism to determine LBA status descriptors to return, see *enum nvme\_lba\_status\_atype*

- rl

  Range length from slba to perform the action

- lbas

  Data payload buffer to return status descriptors

## DESCRIPTION

Initializes the passthru command buffer for the Get LBA Status command.
