libnvme(9)
π 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 anenum nvme_fdp_event_type, iykyk) πflagsβ the Event Flags (this one's anenum nvme_fdp_event_flags, periodt) βpidβ the Placement Identifier, cute and__le16-sized πtsβ the Timestamp, and it's astruct nvme_timestampso 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
- arch rolling: nvme-cli 3.2-1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms