nvme_init_g...ed_log_pages(9)

πŸ“¦ version 3.2, in arch rolling

πŸ’– 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", check enum nvme_csi for 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