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 thestruct nvme_id_ctrl.plsifield. it's giving "shift to reveal." β¨NVME_CTRL_PLSI_PLSFQ_SHIFTβ the shift amount for getting the PLS Forced Quiescence out of that samestruct nvme_id_ctrl.plsifield. same energy, different bit. π¦NVME_CTRL_PLSI_PLSEPF_MASKβ the mask that gets you the PLS Emergency Power Fail from thestruct nvme_id_ctrl.plsifield. mask on, truth out. πNVME_CTRL_PLSI_PLSFQ_MASKβ the mask that gets you the PLS Forced Quiescence from thestruct nvme_id_ctrl.plsifield. 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
- ubuntu stonking: libnvme-dev 1.16.2-1build1 Β· 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