NVME_INIT_GET_LOG_BOOT_PARTITION-LIBNVME3(2)

πŸ“¦ version 3.2, in arch rolling

🌸 nvme_init_get_log_boot_partition β€” libnvme API manual πŸŽ€

okay bestie, so this is a page from the libnvme API manual, and it's about one very specific little function: nvme_init_get_log_boot_partition (the manpage section is 9, iykyk). It's short, it's sweet, and it does exactly one thing β€” let's get into it πŸ’…


✨ NAME ✨

nvme_init_get_log_boot_partition β€” Initialize passthru command for Boot Partition πŸ¦‹

That's it. That's the whole job. She's a one-task queen and she does it well, no cap.


⭐ SYNOPSIS ⭐

void nvme_init_get_log_boot_partition (struct libnvme_passthru_cmd *cmd
, __u8 lsp , struct nvme_boot_partition *part , __u32 len );

Look at her πŸ₯Ή Four little params, returns void β€” she doesn't even need to tell you how it went, she just does it. Main character energy fr.


πŸŽ€ ARGUMENTS πŸŽ€

  • cmd β€” the passthru command you're gonna use πŸ’– like, this is the thing getting set up, hand her the buffer and she'll fill it in.
  • lsp β€” the log specified field of LID πŸ‘‘ it's a __u8, so keep it tidy.
  • part β€” user address to store the log page 🫢 yes bestie, you own that memory, she's just writing the log page into it.
  • len β€” the allocated size, minimum struct nvme_boot_partition ⭐ this one's important β€” don't go smaller than that or it's giving chaos.
ngl, "minimum struct nvme_boot_partition" is the vibe check here β€” that's the floor, not the ceiling 🌈

πŸ”₯ DESCRIPTION πŸ”₯

So what does she actually do? She initializes the passthru command buffer for the Get Log command, with the LID value set to NVME_LOG_LID_BOOT_PARTITION ✨

That's the whole thing. She's basically the setup bestie for the Get Log passthru β€” you bring the cmd, the lsp, your part buffer and its len, and she makes sure the command buffer is pointed at the Boot Partition log page. Periodt πŸ’…

No return value, no drama, no surprises β€” just a clean little initialization 🧚


πŸ’œ SEE ALSO πŸ’œ

lowkey this page keeps to itself β€” the original doesn't list any SEE ALSO refs, so there's nothing extra to link you to πŸ™ˆ (go read the rest of the libnvme API manual if you're nosy, but that's me being chatty, not the page.)


🌸 tiny reminder: this is the libnvme API manual, so all the usual "this is a library function, mind your pointers, mind your buffer sizes" energy applies 😭

okay that's the whole page, bestie β€” short and iconic, just like her πŸ’–

sign-off time πŸŽ€: this one came from the libnvme API manual, dated October 2026, and the page is nvme_init_get_log_boot_partition(9) β€” see you in the next one, muah πŸ’‹βœ¨πŸ¦‹

πŸ“¦ where this page comes from