---
name: "libnvme_refresh_topology-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_refresh_topology-libnvme3"
---

# libnvme\_refresh\_topology-libnvme3(2)

Refresh libnvme\_root\_t object contents

## NAME

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

## SYNOPSIS

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

## ARGUMENTS

- ctx

  *struct libnvme\_global\_ctx* object

## DESCRIPTION

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

## RETURN

0 on success, negative error code otherwise.
