libnvme(2)
π libnvme(2) β API Manual π
okay bestie, welcome to the libnvme API manual, page two, and today's main character is a lil enum called enum nvme_pel_rci π
β¨ NAME β¨
enum nvme_pel_rci β this field indicates the persistent event log reporting context π«Ά
like. that's literally its whole job. it tells you what context the persistent event log is reporting in. no cap.
πΈ SYNOPSIS πΈ
here's the enum in all its glory, copy it exactly, don't you dare touch it:
enum nvme_pel_rci {
NVME_PEL_RCI_RCPID_SHIFT ,
NVME_PEL_RCI_RCPIT_SHIFT ,
NVME_PEL_RCI_RCE_SHIFT ,
NVME_PEL_RCI_RSVD_SHIFT ,
NVME_PEL_RCI_RCPID_MASK ,
NVME_PEL_RCI_RCPIT_MASK ,
NVME_PEL_RCI_RCE_MASK ,
NVME_PEL_RCI_RSVD_MASK
};
she's simple, she's iconic, she's doing the most with four shifts and four masks. periodt. π
π Constants π
okay so every single one of these pulls a lil something out of the struct nvme_persistent_event_log.rci field. same field, different little slices. let's go one by one, no skipping, I would never π
NVME_PEL_RCI_RCPID_SHIFTβ the shift amount you use to get the reporting context port identifier out of thestruct nvme_persistent_event_log.rcifield β¨NVME_PEL_RCI_RCPIT_SHIFTβ the shift amount you use to get the reporting context port identifier type out of thestruct nvme_persistent_event_log.rcifield πΈNVME_PEL_RCI_RCE_SHIFTβ the shift amount you use to get the reporting context exists out of thestruct nvme_persistent_event_log.rcifield π¦NVME_PEL_RCI_RSVD_SHIFTβ the shift amount you use to get the reserved reporting context out of thestruct nvme_persistent_event_log.rcifield πNVME_PEL_RCI_RCPID_MASKβ the mask you use to get the reporting context port identifier out of thestruct nvme_persistent_event_log.rcifield πNVME_PEL_RCI_RCPIT_MASKβ the mask you use to get the reporting context port identifier type out of thestruct nvme_persistent_event_log.rcifield βNVME_PEL_RCI_RCE_MASKβ the mask you use to get the reporting context exists out of thestruct nvme_persistent_event_log.rcifield πNVME_PEL_RCI_RSVD_MASKβ the mask you use to get the reserved reporting context out of thestruct nvme_persistent_event_log.rcifield π«
quick vibe check bestie: shifts go in, masks go out, and every single one of them is reading from the exact same struct nvme_persistent_event_log.rci field. that's the whole tea β
and that's the page!! this lil gem came out July 2026, it's enum nvme_pel_rci, and it lives in libnvme(2) β tysm for reading, mwah, go slay some persistent event logs ππ
β¨
π¦ 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