nvme_init_s...resv_persist(9)

πŸ“¦ version 3.2, in arch rolling

πŸ’… nvme_init_set_features_resv_persist(9) β€” like, the libnvme API manual, bestie ✨

okay so real talk, this whole page lives in the libnvme API manual and it's about one (1) little function that sets up a passthru command. that's it. that's the vibe. let's get into it 🫢


🌸 NAME 🌸

nvme_init_set_features_resv_persist β€” initializes the passthru command for Reservation Persistence. yes, that's the whole name, no she did not shorten it πŸ’…


✨ SYNOPSIS ✨

here's the signature, copy it exactly, no cap:

void nvme_init_set_features_resv_persist (struct libnvme_passthru_cmd
*cmd , __u32 nsid , bool sv , bool ptpl );

it returns void, so like… she does the work and doesn't even ask for a thank-you. main character energy fr fr πŸ‘‘


πŸŽ€ ARGUMENTS πŸŽ€

every single one, in order, no skipping:

  • cmd β€” the passthru command you're gonna use. this is the lil vessel she fills in πŸ«™
  • nsid β€” the Namespace ID. which namespace we're talking to, obviously πŸ’«
  • sv β€” Save value across power states. a bool, so it's a yes/no situation ⚑
  • ptpl β€” Persist Through Power Loss. also a bool. the name literally says what it does, iconic 🌈

πŸ¦‹ DESCRIPTION πŸ¦‹

so what does she do? she initializes the passthru command buffer for the Set Features command, with the FID value NVME_FEAT_FID_RESV_PERSIST. that's the whole assignment. she shows up, she sets the buffer up correctly, she leaves. ate and left no crumbs πŸ’€βœ¨

lowkey the entire point is that you don't have to hand-build that buffer yourself β€” she already knows the FID you need. iykyk 🧚

πŸ’– a lil sign-off πŸ’–

this page is from the libnvme API manual, dated October 2026 β€” so yeah, she's a libnvme girlie through and through. mwah, go forth and persist your reservations πŸ”₯πŸ‘‘πŸ“

πŸ“¦ where this page comes from