libnvme(2)
π libnvme(2) β the API manual, but make it make sense π
okay so bestie, welcome to the libnvme manual page for enum nvme_pel_ehai β¨ this is the cute little enum that holds the persistent event header additional information β that's literally what EHAI stands for, not me being mysterious π
Think of it as the vibe-check lookup table for the rci field. iykyk π
β¨ NAME β¨
enum nvme_pel_ehai β this field indicates the persistent event header additional information π¦
πΈ SYNOPSIS πΈ
enum nvme_pel_ehai {
NVME_PEL_EHAI_PIT_SHIFT ,
NVME_PEL_EHAI_RSVD_SHIFT ,
NVME_PEL_EHAI_PIT_MASK ,
NVME_PEL_EHAI_RSVD_MASK
};
π Constants π
four constants, four little besties, each one doing its own iconic job π
NVME_PEL_EHAI_PIT_SHIFTβ the shift amount you use to pull the reporting context port identifier out of thestruct nvme_persistent_event_log.rcifield π« like, shift it and the PIT just appears.NVME_PEL_EHAI_RSVD_SHIFTβ the shift amount you use to get the reserved reporting context out of that samestruct nvme_persistent_event_log.rcifield π reserved stuff, we don't ask questions, we just shift.NVME_PEL_EHAI_PIT_MASKβ the mask that gets you the reporting context port identifier from thestruct nvme_st_result.dstsfield π― different struct this time, so keep your eyes open bestie, it'sdstsnotrci, okay?NVME_PEL_EHAI_RSVD_MASKβ the mask that gets you the reserved reporting context from thestruct nvme_st_result.dstsfield π«Ά again with thedstsfield. yes exactly.
fr fr, two of these are aboutstruct nvme_persistent_event_log.rciand two are aboutstruct nvme_st_result.dstsβ don't mix them up, that's the whole plot twist π
that's the whole page, no cap, every single constant accounted for β
okay and for the cute sign-off: this is enum nvme_pel_ehai from the libnvme API manual, dated July 2026, and the manual name is libnvme(2). slay ππβ¨
π¦ 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