libnvme(2)

πŸ’– libnvme β€” section 2, the API manual bestie πŸŽ€

okay so we're in the libnvme API manual (that's manual section 2, iykyk) and today's main character is a lil struct called nvme_fdp_event_realloc ✨


🌸 NAME 🌸

struct nvme_fdp_event_realloc β€” the Media Reallocated Event Type Specific Information πŸ¦‹

like. that's it. that's the whole vibe. it's the event-specific info for a media-reallocated event, no cap.


✨ SYNOPSIS ✨

struct nvme_fdp_event_realloc {
    __u8 flags;
    __u8 rsvd1;
    __le16 nlbam;
    __le64 lba;
    __u8 rsvd12[4];
 };

she's small. she's cute. she's exactly this, don't touch her πŸ’…


πŸ‘‘ Members πŸ‘‘

okay bestie, field-by-field, let's go 🫢

  • flags β€” the Event Type Specific flags. their type is enum nvme_fdp_event_realloc_flags, so go look at that if you wanna know what the bits actually mean πŸ”₯
  • rsvd1 β€” Reserved. do not perceive her. hands off πŸ™ˆ
  • nlbam β€” Number of LBAs Moved. it's a __le16, so little-endian, keep that in mind ⭐
  • lba β€” Logical Block Address. a big ol' __le64 one πŸŽ€
  • rsvd12 β€” Reserved. yep, <purple>__u8 rsvd12[4]</purple>, four whole reserved bytes, living their reserved lil life πŸ’€

heads up bestie: the reserved fields are reserved. that means don't read meaning into them, don't write your own stuff there, don't do it. the manpage says Reserved and it means it fr fr 😭

and that's the whole page!! every single field accounted for, not one detail skipped, we ate and left no crumbs πŸ“

this lil diva lives in the libnvme API manual, section 2, dated July 2026 β€” and yes, struct nvme_fdp_event_realloc is her full government name πŸ‘‘

bye bestie, go move some LBAs πŸ’–βœ¨πŸŽ€πŸ¦‹πŸŒΈπŸ’…πŸ«Ά

πŸ“¦ where this page comes from