---
name: "libnvme_subsystem_get_iopolicy-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_subsystem_get_iopolicy-libnvme3"
---

# libnvme\_subsystem\_get\_iopolicy-libnvme3(2)

Get iopolicy.

## NAME

libnvme\_subsystem\_get\_iopolicy - Get iopolicy.

## SYNOPSIS

**int libnvme\_subsystem\_get\_iopolicy** **(const struct libnvme\_subsystem \*p** *,* **const char \*\*iopolicy** *,* **const char \*dflt** *);*

## ARGUMENTS

- p

  The *struct libnvme\_subsystem* instance to query.

- iopolicy

  Where to store the value on success.

- dflt

  Value to store in *iopolicy* on failure.

## RETURN

0 on success, -ENOENT if the attribute does not exist, or a negative errno on failure.
