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

# nvme\_scan\_topology(2)

Scan NVMe topology and apply filter

## NAME

nvme\_scan\_topology - Scan NVMe topology and apply filter

## SYNOPSIS

**int nvme\_scan\_topology** **(nvme\_root\_t r** *,* **nvme\_scan\_filter\_t f** *,* **void \*f\_args** *);*

## ARGUMENTS

- r

  nvme\_root\_t object

- f

  filter to apply

- f\_args

  user-specified argument to *f*

## DESCRIPTION

Scans the NVMe topology and filters out the resulting elements by applying *f*.

## RETURN

Number of elements scanned
