libnvme_sed_setup_range(9)
π libnvme_sed_setup_range
okay bestie, welcome to the libnvme API manual, section 9 β yes we're in the big-kid section, iykyk π this one's all about libnvme_sed_setup_range, and honestly? she's giving main character energy for your locking setup.
β¨ NAME β¨
libnvme_sed_setup_range β configure the global locking range π«Ά that's the whole vibe: you're setting up the global locking range, periodt.
πΈ SYNOPSIS πΈ
int libnvme_sed_setup_range (struct libnvme_transport_handle *hdl ,
const struct libnvme_sed_key *key , bool read_lock , bool write_lock );
look at her π¦ four little arguments, all lined up, slaying. literally.
π ARGUMENTS π
hdlβ the transport handle π your whole ride-or-die connection situation.keyβ the Admin1 password π no cap, this is the key that gets you in.read_lockβ enable read locking π flip this on when you want reads locked down.write_lockβ enable write locking β¨ same energy, but for writes.
ngl bestie,read_lockandwrite_lockarebools, so they're just lil on/off switches β no weird in-between vibes here π«Ά
β RETURN β
see the return value convention above π that's it, that's the whole return section β the manpage said it, not me π
okay that's the tea π this iconic lil page comes to you from the libnvme API manual, dated October 2026, covering libnvme_sed_setup_range in section 9 β mwah, go lock your ranges bestie ππ§π
π¦ where this page comes from
- arch rolling: nvme-cli 3.2-1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms