libnvme(2)

πŸ’– libnvme(2) β€” API Manual πŸ’–

okay bestie, sit down, hydrate, and let me tell you about a lil enum from libnvme's API. yes this is man page number 2 in section 2 of the libnvme manual, and yes it's about storage reservations, and yes it's gonna be cute. this one is enum nvme_resv_cptpl</bold> β€” Reservation Register - Change Persist Through Power Loss State ✨


🌸 NAME 🌸

enum nvme_resv_cptpl β€” Reservation Register - Change Persist Through Power Loss State πŸŽ€

like. that's the whole name. it's giving "my reservations survive a power cycle??" ✨


πŸ¦‹ SYNOPSIS πŸ¦‹

enum nvme_resv_cptpl {
    NVME_RESERVATION_CPTPL_NO_CHANGE ,
    NVME_RESERVATION_CPTPL_CLEAR ,
    NVME_RESERVATION_CPTPL_PERSIST

};

ikr, three whole constants, we are FED πŸ“


✨ Constants ✨

slay, here's the lineup. one bullet per constant, no skips, no cap πŸ’…

  • NVME_RESERVATION_CPTPL_NO_CHANGE β€” literally nothing happens. no change to PTPL state. it's the "leave me alone i'm fine" option πŸ™ˆ
  • NVME_RESERVATION_CPTPL_CLEAR β€” okay so on a power on: reservations are released and registrants are cleared. it's a full lil reset, everything goes bye-bye πŸ’€
  • NVME_RESERVATION_CPTPL_PERSIST β€” the main character option πŸ‘‘ reservations and registrants persist across a power loss. they stay. they're iconic. they refuse to leave the group chat 🫢

ngl bestie, this enum is the one you set when you're registering a reservation and you need to tell the controller what should happen to your PTPL state. NO_CHANGE = chill, CLEAR = wipe it on power on, PERSIST = it survives, periodt. pick wisely, the vibes are load-bearing 🌈

πŸ’œ SEE ALSO πŸ’œ

no see-also refs on this one bestie, it's a standalone queen ⭐ go read the rest of the libnvme API instead, iykyk 🌸


kisses, this was enum nvme_resv_cptpl from the libnvme API Manual, section 2, dated July 2026. go forth and reserve responsibly, bestie πŸ’–πŸŽ€πŸ¦‹πŸ’…

πŸ“¦ where this page comes from