libnvme(9)
π libnvme(9) β API Manual π
okay bestie, welcome to the libnvme glow-up tour, section 9, API Manual edition. today's main character is a struct, and she is serving. let's get into it π«Ά
β¨ NAME β¨
struct nvme_resv_acquire_args β the args you hand over for the NVMe Reservation Acquire Command. that's it, that's the whole vibe. no cap.
πΈ SYNOPSIS πΈ
struct nvme_resv_acquire_args {
__u64 crkey;
__u64 nrkey;
__u32 *result;
int args_size;
int fd;
__u32 timeout;
__u32 nsid;
enum nvme_resv_rtype rtype;
enum nvme_resv_racqa racqa;
bool iekey;
};
look at her. ten fields. absolutely iconic β¨
π Members π
she's got a whole roster, so let's meet the cast one by one, no skipping, we do not skip in this house π
crkeyβ the current reservation key that's chillin' with the host. the one you already have, basically.nrkeyβ the reservation key that gets unregistered from the namespace, but ONLY if the action is preempt. not preempting? then this one's just sitting there. πresultβ the command completion result, straight outta CQE dword0. the receipts, fr fr.args_sizeβ the size ofstruct nvme_resv_acquire_args. she knows her own measurements πfdβ file descriptor of the nvme device. your ticket in.timeoutβ timeout in ms. patience, but make it measurable β³nsidβ namespace identifier. which namespace are we talking to? be specific bestie.rtypeβ the type of reservation to be create, seeenum nvme_resv_rtype. (the original says "create", we're keeping it, it's part of her charm π)racqaβ the action that is performed by the command, seeenum nvme_resv_racqa. the "what are we actually doing here" field.iekeyβ set this to ignore the existing key. yes, ignore it. she said what she said. π
lowkey important:rtypeandracqaare enums, so go readenum nvme_resv_rtypeandenum nvme_resv_racqabefore you start guessing values. don't freestyle a reservation command, bestie, that's not the move π
that's the whole page, and you ate it. go forth and acquire those reservations responsibly π¦
signing off with love from the libnvme crew β API Manual, page struct nvme_resv_acquire_args, dated August 2026. mwah π
π¦ where this page comes from
- fedora 44: libnvme-doc 1.16.2-1.fc44 Β· LGPL-2.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms