NVME_INIT_GET_LOG_FDP_EVENTS-LIBNVME3(2)
π nvme_init_get_log_fdp_events β a libnvme API manual moment π
okay bestie, so like, this is a section 9 page from the libnvme API manual and the function is nvme_init_get_log_fdp_events β yes the actual page header truncates it to nvme_init_ge...g_fdp_events(9) which honestly is giving "my name is too long for the terminal" energy π but we move.
πΈ NAME πΈ
nvme_init_get_log_fdp_events β Initialize passthru command for Flexible Data Placement Events. like that's literally the whole vibe, she sets up the passthru command so you can go get those FDP events π₯
β¨ SYNOPSIS β¨
void nvme_init_get_log_fdp_events (struct libnvme_passthru_cmd *cmd ,
bool host_events , __u16 egid , __u64 lpo , void *log , __u32 len );
no return value, she's a void, she just does her thing and leaves π
π ARGUMENTS π
cmdβ the passthru command you're gonna use. this is the lil container she's filling up π«Άhost_eventsβ aboolthat decides whose events you're reporting: host or controller. pick a side, bestie.egidβ Endurance group identifier, a__u16. iykyk π§lpoβ offset into the log page, a__u64. that's where we start reading, no cap.logβ the log page data buffer (void *), the actual destination for all that data π₯lenβ length, in bytes, of the user buffer you provided to hold the log data. keep it exact or things get weird π
π DESCRIPTION π
So what she actually does: she initializes the passthru command buffer for the Get Log command with LID value NVME_LOG_LID_FDP_EVENTS. that's it, that's the whole job, and she does it immaculately π
ngl the LID constant is the main character here β NVME_LOG_LID_FDP_EVENTS β literally the key to the whole thing π
k bye bestie, go log some events π¦
β¨ sign-off time β¨ this page comes from the libnvme API manual, dated October 2026, and its source/footer line is the very same nvme_init_ge...g_fdp_events(9) situation as the top β so yeah, we came full circle πππ
π¦ 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