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

# nvme\_identify\_allocated\_ns\_list(2)

Retrieves allocated namespace id list

## NAME

nvme\_identify\_allocated\_ns\_list - Retrieves allocated namespace id list

## SYNOPSIS

**int nvme\_identify\_allocated\_ns\_list** **(int fd** *,* **\_\_u32 nsid** *,* **struct nvme\_ns\_list \*list** *);*

## ARGUMENTS

- fd

  File descriptor of nvme device

- nsid

  Return namespaces greater than this identifier

- list

  User space destination address to transfer the data

## DESCRIPTION

A list of 1024 namespace IDs is returned to the host containing NSIDs in increasing order that are greater than the value specified in the Namespace Identifier (nsid) field of the command.

See *struct nvme\_ns\_list* for the definition of the returned structure.

## RETURN

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