libnvme\_scan\_subsystem\_namespaces(9) libnvme API manual libnvme\_scan\_subsystem\_namespaces(9)

# [NAME](#NAME)

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

# [SYNOPSIS](#SYNOPSIS)

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

# [ARGUMENTS](#ARGUMENTS)

[s](#s)

Subsystem to scan

[ns](#ns)

Pointer to array of dirents

# [RETURN](#RETURN)

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

libnvme\_scan\_subsystem\_namespaces September 2026

---

Document: libnvme_scan_subsystem_namespaces-libnvme3(2) from nvme-cli 3.1-r0 (Chainguard OS)
Source: https://github.com/linux-nvme/nvme-cli
