libnvme(2)

🌸 NAME 🌸

ok so like, welcome to libnvme(2), the API manual bestie πŸ’– β€” and today's main character is enum nvme_id_ctrl_plsi, aka Power Loss Signaling Information. yes babe, we're talking about what happens when the power goes bye-bye and your drive has to spill the tea about it. πŸ¦‹


✨ SYNOPSIS ✨

enum nvme_id_ctrl_plsi {
    NVME_CTRL_PLSI_PLSEPF_SHIFT ,
    NVME_CTRL_PLSI_PLSFQ_SHIFT ,
    NVME_CTRL_PLSI_PLSEPF_MASK ,
    NVME_CTRL_PLSI_PLSFQ_MASK

};

that's it. four little constants, all living their best life inside one enum. slay. πŸ’…


πŸŽ€ Constants πŸŽ€

okay so each of these is basically a lil key to unlock part of the struct nvme_id_ctrl.plsi field, and you NEED them, no cap:

  • NVME_CTRL_PLSI_PLSEPF_SHIFT β€” the shift amount you use to pull the PLS Emergency Power Fail out of the struct nvme_id_ctrl.plsi field. it's giving "shift to reveal." ✨
  • NVME_CTRL_PLSI_PLSFQ_SHIFT β€” the shift amount for getting the PLS Forced Quiescence out of that same struct nvme_id_ctrl.plsi field. same energy, different bit. πŸ¦‹
  • NVME_CTRL_PLSI_PLSEPF_MASK β€” the mask that gets you the PLS Emergency Power Fail from the struct nvme_id_ctrl.plsi field. mask on, truth out. πŸ’…
  • NVME_CTRL_PLSI_PLSFQ_MASK β€” the mask that gets you the PLS Forced Quiescence from the struct nvme_id_ctrl.plsi field. periodt. πŸ‘‘
bestie reminder: shifts and masks go together like iced coffee and a deadline β€” you literally cannot get the bits out without both. 🧚

and that's the whole page, bestie! this was enum nvme_id_ctrl_plsi, part of the libnvme(2) API manual, dated July 2026. go forth, mask your bits, shift them into place, and absolutely ate. mwah πŸ’‹πŸŽ€πŸ’–

πŸ“¦ where this page comes from