---
name: "libnvme_sed_setup_range-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_sed_setup_range-libnvme3"
---

# libnvme\_sed\_setup\_range-libnvme3(2)

Configure the global locking range

## NAME

libnvme\_sed\_setup\_range - Configure the global locking range

## SYNOPSIS

**int libnvme\_sed\_setup\_range** **(struct libnvme\_transport\_handle \*hdl** *,* **const struct libnvme\_sed\_key \*key** *,* **bool read\_lock** *,* **bool write\_lock** *);*

## ARGUMENTS

- hdl

  Transport handle

- key

  Admin1 password

- read\_lock

  Enable read locking

- write\_lock

  Enable write locking

## RETURN

See the return value convention above.
