NVME_INIT_GET_LOG_FDP_STATS-LIBNVME3(2)
π NAME π
nvme_init_get_log_fdp_stats β bestie, this is the one that initializes the passthru command for the Get Flexible Data Placement Statistics log. Like, it sets up the vibes for the Get Log command so the actual fetching can happen later. No cap.
π¦ SYNOPSIS π¦
void nvme_init_get_log_fdp_stats (struct libnvme_passthru_cmd *cmd ,
__u16 egid , __u64 lpo , void *log , __u32 len );
Bestie look at that signature. Five things going in, and the function itself returns void because it's a setup girlie, not a "give you the answer" girlie. She's just prepping the command buffer. Slay.
β¨ ARGUMENTS β¨
cmdβ the passthru command you're gonna use. Hand her the struct, she fills it in. Main character energy.egidβ the Endurance group identifier.__u16, tiny but mighty, she's the group you care about πlpoβ offset into the log page. Like where in the log you wanna start reading.__u64because the log page said "let me be big."logβ the log page data buffer. That's the spot in memory where the good stuff's gonna land πlenβ length (in bytes) of the user buffer you provided, the one that's holding the log data.__u32. Give her the size bestie, don't leave her guessing π
πΈ DESCRIPTION πΈ
Okay so here's what she actually does: nvme_init_get_log_fdp_stats initializes the passthru command buffer for the Get Log command, and she sets the LID value to NVME_LOG_LID_FDP_STATS. That's it. That's the whole thing. She's not fetching, she's not copying, she's initializing. Setup era. Iconic behavior honestly.
So you call her, she fills in the command buffer with the right LID, and you take it from there. Periodt. π
Lowkey a reminder bestie: she only initializes. The actual log data? That's a job for the command you're about to fire off. Don't @ her if the buffer's empty before you run it. π«Ά
that's the page!! it's from the libnvme API manual, section 9 (the kernel/API corner of the world), and the date on it is October 2026 ποΈβ¨ go forth and place your flexible data, bestie ππ§ββοΈ
π¦ 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