---
name: "libnvme_ctrl_get_phy_slot-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_ctrl_get_phy_slot-libnvme3"
---

# libnvme\_ctrl\_get\_phy\_slot-libnvme3(2)

Get phy\_slot.

## NAME

libnvme\_ctrl\_get\_phy\_slot - Get phy\_slot.

## SYNOPSIS

**int libnvme\_ctrl\_get\_phy\_slot** **(const struct libnvme\_ctrl \*p** *,* **const char \*\*phy\_slot** *,* **const char \*dflt** *);*

## ARGUMENTS

- p

  The *struct libnvme\_ctrl* instance to query.

- phy\_slot

  Where to store the value on success.

- dflt

  Value to store in *phy\_slot* on failure.

## RETURN

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