NVME_INIT_GET_LOG_FDP_STATS-LIBNVME3(2)

πŸ“¦ version 3.2, in arch rolling

πŸ’… 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. __u64 because 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