---
name: "nvme_scan_subsystem_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_subsystem_namespaces"
---

# nvme\_scan\_subsystem\_namespaces(2)

Scan for namespaces in a subsystem

## NAME

nvme\_scan\_subsystem\_namespaces - Scan for namespaces in a subsystem

## SYNOPSIS

**int nvme\_scan\_subsystem\_namespaces** **(nvme\_subsystem\_t s** *,* **struct dirent \*\*\*ns** *);*

## ARGUMENTS

- s

  Subsystem to scan

- ns

  Pointer to array of dirents

## RETURN

number of entries in *ns*
