nvme_init_g...le_lat_event(9)

πŸ“¦ version 3.2, in arch rolling

πŸ’– nvme_init_get_log_predictable_lat_event β€” the libnvme API manual, but make it make sense ✨

Okay bestie, gather round, because today we're meeting nvme_init_get_log_predictable_lat_event(9) from the libnvme API manual, and honestly? She's a little helper with a big name and I'm obsessed. πŸŽ€


🌸 NAME 🌸

nvme_init_get_log_predictable_lat_event β€” literally the function that initializes the passthru command for the Predictable Latency Event Aggregate. Say that five times fast, I dare you. πŸ’…


✨ SYNOPSIS ✨

void nvme_init_get_log_predictable_lat_event (struct libnvme_passthru_cmd *cmd ,
                                              __u64 lpo ,
                                              void *log ,
                                              __u32 len );

No cap, she returns void β€” she's not here to give you answers, she's here to set things up. Main character energy only. πŸ‘‘


πŸ¦‹ ARGUMENTS πŸ¦‹

Four little besties walk into a function call:

  • cmd β€” the passthru command you're gonna use. This is the one getting glowed up. πŸ’–
  • lpo β€” offset into the predictable latency event. Type <italic>__u64</italic>, because we're fancy like that. πŸ”₯
  • log β€” the user address for the log page data. i.e. where the good stuff gets parked. πŸ“
  • len β€” length of the user buffer that's holding the log data, measured in bytes. Type <italic>__u32</italic>. Measure twice, bestie. πŸ“

🌈 DESCRIPTION 🌈

So what does she actually do? She initializes the passthru command buffer for the Get Log command β€” and she does it with the LID value NVME_LOG_LID_PREDICTABLE_LAT_AGG. That's it, that's the whole vibe check: set up the buffer, right LID, done. Slay. ⭐

Fr fr, no extra magic here β€” she sets up the command buffer for Get Log with NVME_LOG_LID_PREDICTABLE_LAT_AGG and hands the mic back to you. 🫢

Okay that's the whole page, bestie β€” go forth and initialize with confidence πŸ’œ

Signed, sealed, delivered: October 2026, straight from the libnvme API manual. Mwah! πŸ˜­πŸ’‹

πŸ“¦ where this page comes from