libnvme\_refresh\_topology(9) libnvme API manual libnvme\_refresh\_topology(9)

# [NAME](#NAME)

libnvme\_refresh\_topology - Refresh libnvme\_root\_t object contents

# [SYNOPSIS](#SYNOPSIS)

**int libnvme\_refresh\_topology** **(struct libnvme\_global\_ctx \*ctx );**

# [ARGUMENTS](#ARGUMENTS)

[ctx](#ctx)

*struct libnvme\_global\_ctx* object

# [DESCRIPTION](#DESCRIPTION)

Removes all elements in *r* and rescans the existing topology.

# [RETURN](#RETURN)

0 on success, negative error code otherwise.

libnvme\_refresh\_topology October 2026

---

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