nvme_init_g...le_lat_event(9)
π 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
- 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