---
name: "libnvme_scan_subsystem_namespaces-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/libnvme_scan_subsystem_namespaces-libnvme3"
---

# libnvme\_scan\_subsystem\_namespaces-libnvme3(2)

Scan for namespaces in a subsystem

## NAME

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

## SYNOPSIS

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

## ARGUMENTS

- s

  Subsystem to scan

- ns

  Pointer to array of dirents

## RETURN

number of entries in *ns* or a negative error code
