nvme_init_g...s_fdp_events(9)
π NAME π
nvme_init_get_features_fdp_events β the glow-up function that initializes your passthru command for Get Features: Flexible Data Placement Events, bestie β¨ (like, the whole libnvme API manual vibe, but make it cute)
π¦ SYNOPSIS π¦
void nvme_init_get_features_fdp_events (struct libnvme_passthru_cmd *cmd
, enum nvme_get_features_sel sel , __u16 phndl , void *data , __u32 len
);
okay so she takes five args and returns void, no cap, and yes the signature is literally that π
πΈ ARGUMENTS πΈ
cmdβ the passthru command you're gonna use, like the main character of this whole operation πselβ picks which type of attribute comes back to you; peepenum nvme_get_features_selfor the menu of options π₯phndlβ the Placement Handle (aka PHNDL, iykyk) π«Άdataβ your Supported FDP Event Type List data buffer, go look atstruct nvme_fdp_supported_event_descfor the deets πlenβ literally just the length ofdata, don't overthink her β
β¨ DESCRIPTION β¨
So what she actually does: she initializes the passthru command buffer for the Get Features command, with the FID value set to NVME_FEAT_FID_FDP_EVENTS. That's it. That's the whole job. Iconic, honestly ππ§
fr fr though, she's just prepping the buffer for you β the command itself doesn't go anywhere until you actually send it π
and that's the page, bestie π this lil writeup is from the libnvme API manual, dated October 2026, and yes it's giving "reference docs but make her slay" ππ¦πΈπ π«Ά
π¦ 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