---
name: "libnvme_scan_subsystems-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_subsystems-libnvme3"
---

# libnvme\_scan\_subsystems-libnvme3(2)

Scan for subsystems

## NAME

libnvme\_scan\_subsystems - Scan for subsystems

## SYNOPSIS

**int libnvme\_scan\_subsystems** **(struct libnvme\_global\_ctx \*ctx** *,* **struct dirent \*\*\*subsys** *);*

## ARGUMENTS

- ctx

  *struct libnvme\_global\_ctx* object

- subsys

  Pointer to array of dirents

## RETURN

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