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

# nvme\_scan\_ctrl\_namespaces(2)

Scan for namespaces in a controller

## NAME

nvme\_scan\_ctrl\_namespaces - Scan for namespaces in a controller

## SYNOPSIS

**int nvme\_scan\_ctrl\_namespaces** **(nvme\_ctrl\_t c** *,* **struct dirent \*\*\*ns** *);*

## ARGUMENTS

- c

  Controller to scan

- ns

  Pointer to array of dirents

## RETURN

number of entries in *ns*
