libnvme(9)

πŸ“¦ version 3.2, in arch rolling

πŸ’– libnvme(9) β€” API Manual πŸ’–

okay bestie, so this is a page straight out of the libnvme API manual (section 9, we're fancy like that ✨), and it's literally just one struct. One. Gorgeous. Little. Struct. It's giving "small but mighty" and honestly? Obsessed. 🫢

✨ NAME ✨

struct nvme_fdp_event β€” the FDP Event struct, no cap πŸ’…

🌸 SYNOPSIS 🌸

here's the whole vibe, character for character, don't touch a thing:

struct nvme_fdp_event {
    __u8 type;
    __u8 flags;
    __le16 pid;
    struct nvme_timestamp ts;
    __le32 nsid;
    __u8 type_specific[16];
    __le16 rgid;
    __u8 ruhid;
    __u8 rsvd35[5];
    __u8 vs[24];
 };

look at her. eleven fields. every single one accounted for. slay πŸ”₯


πŸŽ€ Members πŸŽ€

this is the part where we go field by field, and yes, we're doing all of them, because skipping members is not the move πŸ™ˆ

  • type β€” the Event Type (it's an enum nvme_fdp_event_type, iykyk) πŸ‘‘
  • flags β€” the Event Flags (this one's an enum nvme_fdp_event_flags, periodt) ⭐
  • pid β€” the Placement Identifier, cute and __le16-sized πŸ’–
  • ts β€” the Timestamp, and it's a struct nvme_timestamp so you know it's keeping track of time fr fr πŸ•°οΈ
  • nsid β€” the Namespace Identifier β€” say hi to your namespace bestie 🌈
  • type_specific β€” the Event Type Specific Information, __u8 type_specific[16], sixteen whole bytes of "it depends, bestie" energy πŸ¦‹
  • rgid β€” the Reclaim Group Identifier 🌸
  • ruhid β€” the Reclaim Unit Handle Identifier, one single __u8, tiny icon πŸ’…
  • rsvd35 β€” Reserved. __u8 rsvd35[5]. it's reserved, we don't touch it, we just respect it πŸ™ˆ
  • vs β€” Vendor Specific, __u8 vs[24] β€” the "your vendor, your rules" corner of the struct 🧚

lowkey reminder: the reserved field is reserved and the vendor specific field is vendor specific. that's the whole assignment. don't be out here repurposing things, bestie 😭

and that's the page!! every field, every type, every array size, all present and accounted for πŸ’œ this was struct nvme_fdp_event in the libnvme API Manual, section 9, dated October 2026 β€” mwah, go forth and parse those FDP events, main character energy only πŸ‘‘βœ¨

πŸ“¦ where this page comes from