NVME_GET_LOG_BOOT_PARTITION(2)

πŸ’– nvme_get_log_boot_partition(2) πŸ’–

okay bestie, welcome to the libnvme API manual β€” yes we're literally reading manpages together, this is our bonding era 🫢


✨ NAME ✨

nvme_get_log_boot_partition β€” Retrieve Boot Partition πŸ‘‘


🌸 SYNOPSIS 🌸

int nvme_get_log_boot_partition (int fd , bool rae , __u8 lsp , __u32 len , struct nvme_boot_partition *part );

like. one function. five lil arguments. we're gonna go through every single one, no skips, no skimming, periodt πŸ’…


πŸ¦‹ ARGUMENTS πŸ¦‹

  • fd β€” the file descriptor of your nvme device. it's giving "here's my ticket, let me in" πŸŽ€
  • rae β€” Retain asynchronous events. yes ma'am, hold onto those events for me πŸ™ˆ
  • lsp β€” the log specified field of LID. it lives in a __u8, so keep it cute and small ✨
  • len β€” the allocated size, minimum struct nvme_boot_partition. don't be stingy with the buffer, bestie, that's the floor not the ceiling πŸ’€
  • part β€” user address to store the log page. this is where the boot partition log gets dropped off, main character energy only πŸ‘‘

⭐ RETURN ⭐

so here's the vibe check on what comes back at you:

  • the nvme command status if a response was received (peep enum nvme_status_field for the deets) πŸ’œ
  • or -1 with errno set otherwise 😭

like it either tells you what happened or it just throws a -1 at you and points at errno. classic.


fr fr, don't ignore that errno. it's not being dramatic, it's literally telling you what went wrong 🌈

🧚 a lil sign-off 🧚

this iconic lil page came to you from the libnvme API manual, dated July 2026 β€” and yes, that's the whole footer, we're not copying it verbatim, we're honoring it πŸ’– slay, go log some boot partitions, mwah πŸŽ€βœ¨

πŸ“¦ where this page comes from