---
name: "nvme_zns_report_zones"
section: "2"
platform: "linux"
package: "libnvme-dev"
version: "1.13-2"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/nvme_zns_report_zones"
---

# nvme\_zns\_report\_zones(2)

Return the list of zones

## NAME

nvme\_zns\_report\_zones - Return the list of zones

## SYNOPSIS

**int nvme\_zns\_report\_zones** **(int fd** *,* **\_\_u32 nsid** *,* **\_\_u64 slba** *,* **enum nvme\_zns\_report\_options opts** *,* **bool extended** *,* **bool partial** *,* **\_\_u32 data\_len** *,* **void \*data** *,* **\_\_u32 timeout** *,* **\_\_u32 \*result** *);*

## ARGUMENTS

- fd

  File descriptor of nvme device

- nsid

  Namespace ID

- slba

  Starting LBA

- opts

  Reporting options

- extended

  Extended report

- partial

  Partial report requested

- data\_len

  Length of the data buffer

- data

  Userspace address of the report zones data

- timeout

  timeout in ms

- result

  The command completion result from CQE dword0

## RETURN

The nvme command status if a response was received (see *enum nvme\_status\_field*) or -1 with errno set otherwise.
