---
name: "libnvme_ns_get_lba_shift-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_get_lba_shift-libnvme3"
---

# libnvme\_ns\_get\_lba\_shift-libnvme3(2)

Get lba\_shift.

## NAME

libnvme\_ns\_get\_lba\_shift - Get lba\_shift.

## SYNOPSIS

**int libnvme\_ns\_get\_lba\_shift** **(const struct libnvme\_ns \*p** *,* **int \*lba\_shift** *,* **int dflt** *);*

## ARGUMENTS

- p

  The *struct libnvme\_ns* instance to query.

- lba\_shift

  Where to store the value on success.

- dflt

  Value to store in *lba\_shift* on failure.

## RETURN

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