libnvme_scan_topology(9) libnvme API manual libnvme_scan_topology(9)

libnvme_scan_topology - Scan NVMe topology and apply filter

int libnvme_scan_topology (struct libnvme_global_ctx *ctx , libnvme_scan_filter_t f , void *f_args );

struct libnvme_global_ctx object
filter to apply
user-specified argument to f

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

0 on success, negative error code otherwise.

libnvme_scan_topology September 2026