libnvme(9)

πŸ“¦ version 3.2, in arch rolling

πŸ’… libnvme(9) β€” API Manual, bestie edition πŸŽ€

okay so this page is from the libnvme API Manual (section 9, the kernel/API girlies) and it's all about one little enum, and honestly? she's lowkey iconic. it's the enum nvme_eom_optional_data_present page, aka the EOM Optional Data Present Fields moment. no cap, this is a niche one but we're gonna slay it together ✨


✨ NAME ✨

enum nvme_eom_optional_data_present β€” the EOM Optional Data Present Fields, fr fr. that's the whole vibe. πŸ¦‹


🌸 SYNOPSIS 🌸

here's the whole enum, bestie, laid out exactly as she comes:

enum nvme_eom_optional_data_present {
    NVME_EOM_ODP_PEFP_SHIFT ,
    NVME_EOM_ODP_EDFP_SHIFT ,
    NVME_EOM_ODP_RSVD_SHIFT ,
    NVME_EOM_ODP_PEFP_MASK ,
    NVME_EOM_ODP_EDFP_MASK ,
    NVME_EOM_ODP_RSVD_MASK

};

look at her. six little constants. main character energy from top to bottom πŸ’œ


πŸ‘‘ Constants πŸ‘‘

every single one of these bad girls is a helper for reading one specific field: .odp inside struct nvme_phy_rx_eom_log. some are shifts, some are masks, and all of them are pulling a different piece of the story out of that field. iykyk πŸ”₯

  • NVME_EOM_ODP_PEFP_SHIFT β€” the shift amount that gets you the printable eye field present value out of the struct nvme_phy_rx_eom_log.odp field. shift it, and the printable eye field present is like, right there. πŸ’«
  • NVME_EOM_ODP_EDFP_SHIFT β€” the shift amount that gets you the eye data field present value out of the struct nvme_phy_rx_eom_log.odp field. same energy, different field. 🫢
  • NVME_EOM_ODP_RSVD_SHIFT β€” the shift amount that gets you the reserved optional data present value out of the struct nvme_phy_rx_eom_log.odp field. yes, "reserved optional data present" β€” that's the exact wording, don't @ me πŸ™ˆ
  • NVME_EOM_ODP_PEFP_MASK β€” the mask that gets you the printable eye field present value from the struct nvme_phy_rx_eom_log.odp field. masking era ✨
  • NVME_EOM_ODP_EDFP_MASK β€” the mask that gets you the eye data field present value from the struct nvme_phy_rx_eom_log.odp field. another mask, another slay πŸ’…
  • NVME_EOM_ODP_RSVD_MASK β€” the mask that gets you the reserved data present value from the struct nvme_phy_rx_eom_log.odp field. (and yes, this one just says "reserved data present" while the shift one above says "reserved optional data present" β€” i noticed too, but that's literally what the page says, so we keep it exactly like that ⭐)
little reminder bestie: shifts and masks are two different moves β€” shifts get you the amount to shift by, masks get you the bits to mask with. both, always, out of that same .odp field in struct nvme_phy_rx_eom_log. 🧚

and that's the whole page!! short and sweet, just how we like her. this was the libnvme(9) page for enum nvme_eom_optional_data_present, and it's dated October 2026, so mark your calendars and stan responsibly. mwah, ily, go read some .odp fields πŸ’–πŸŽ€πŸ¦‹πŸŒΈπŸ’…

πŸ“¦ where this page comes from