nvme_init_g...ed_log_pages(9)
π nvme_init_get_log_supported_log_pages(9) π
okay so bestie, welcome to the libnvme API manual β section 9, kernel-adjacent vibes only, we're in the deep end and honestly? we're thriving. this one's all about prepping a passthru command so you can go ask a drive "hey, which log pages do you even support?" πΈ
β¨ NAME β¨
nvme_init_get_log_supported_log_pages β Initialize passthru command for Supported Log Pages π
like, it literally sets up the command buffer for you. no cap, that's the whole job.
π¦ SYNOPSIS π¦
void nvme_init_get_log_supported_log_pages (struct libnvme_passthru_cmd
*cmd , enum nvme_csi csi , struct nvme_supported_log_pages *log );
three args, zero drama. void return so you get nothing back β the function does its thing inside cmd and you just vibe. π
π ARGUMENTS π
cmdβ the passthru command you're gonna use π«Ά this is the thing getting initialized, so hand it over and let it cook.csiβ the Command set identifier. if you're like "which values tho", checkenum nvme_csifor the known ones β iykyk, the enum has your back β¨logβ an array of LID supported and Effects data structures π yes, that's exactly what it sounds like, and yes, it's iconic of it to be that specific.
π DESCRIPTION π
so what does it actually do? it initializes the passthru command buffer for the Get Log command, with the LID value set to NVME_LOG_LID_SUPPORTED_LOG_PAGES β
that's it. that's the whole function. one job, done flawlessly, main character energy only π β¨
quick vibe check: this is literally just setup β it's initializing a buffer, not sending anything anywhere. build the command here, then go actually run it somewhere else, bestie π
π SEE ALSO π
ngl there's no SEE ALSO section in this one β the page said what it said and dipped π but like, enum nvme_csi is right there in the ARGUMENTS if you wanna go look at it with your own two eyes π
and that's the whole page, bestie, you ate that π this little gem comes to you from the libnvme API manual, dated October 2026 β go forth and initialize those log page commands, you gorgeous creature π§ππ₯
π¦ 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