nvme_init_g...ance_grp_evt(9)
π nvme_init_get_log_endurance_grp_evt π
okay bestie, so this is a page straight out of the libnvme API manual β yes, that libnvme β and it's all about one lil' function that gets your passthru command ready for the Endurance Group Event Aggregate log. ngl it's a glow-up ritual for a buffer. let's go π¦
β¨ NAME β¨
nvme_init_get_log_endurance_grp_evt β Initialize passthru command for Endurance Group Event Aggregate
likeβ¦ that's literally the whole personality π
πΈ SYNOPSIS πΈ
void nvme_init_get_log_endurance_grp_evt (struct libnvme_passthru_cmd
*cmd , __u64 lpo , void *log , __u32 len );
no cap, that's the whole signature β it returns void, so don't be waiting around for a return value, she gives you nothing back and she's iconic for it π
π ARGUMENTS π
cmdβ the passthru command you're gonna use. this is the main character, the one getting dressed up π«Άlpoβ offset to the start of the log page. think of it asβ¦ where in the log you're starting, bestie πlogβ user address to store the log page. yes, your address. she's gonna write the log page right there πΎlenβ the allocated length of the log page. please make it the actual allocated length, not a vibe-checked guess π
π₯ DESCRIPTION π₯
so what does she do. nvme_init_get_log_endurance_grp_evt initializes the passthru command buffer for the Get Log command, with the LID value NVME_LOG_LID_ENDURANCE_GRP_EVT. that's it. that's the whole thing. she sets it up, hands it back through cmd, and dips β¨
it's giving "prep work" energy β you call her before you actually send the passthru command, and she makes sure the Get Log bits are all in place. no drama, no surprises, just setup π
lowkey important: it's avoidfunction, so there's no status to check. if something's off with your buffer, that's between you and yourlen, fr fr π
and that's the page!! go forth and log your endurance group events ππ
sign-off szn π β this lil' beauty lives in the libnvme API manual, dated October 2026. mwah, take care of her π
π¦ 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