---
name: "libnvme_ns_update_stat-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_ns_update_stat-libnvme3"
---

# libnvme\_ns\_update\_stat-libnvme3(2)

update the nvme namespace stat

## NAME

libnvme\_ns\_update\_stat - update the nvme namespace stat

## SYNOPSIS

**int libnvme\_ns\_update\_stat** **(struct libnvme\_ns \*n** *,* **bool diffstat** *);*

## ARGUMENTS

- n

  *struct libnvme\_ns* object

- diffstat

  If set to true then getters return the diff stat otherwise return the current absolute stat

## RETURN

0 on success, negative error code otherwise.
