NVME_MI_ADMIN_GET_LOG_BOOT_PARTITION(2)
π nvme_mi_admin_get_log_boot_partition β it's the libnvme API manual bestie β¨
okay so. picture this: you're deep in NVMe-over-MI land π¦, and you need the Boot Partition log page. that's it. that's the function. it's giving "let me retrieve Boot Partition for you, no cap" π
πΈ NAME πΈ
nvme_mi_admin_get_log_boot_partition β Retrieve Boot Partition π
β¨ SYNOPSIS β¨
int nvme_mi_admin_get_log_boot_partition (nvme_mi_ctrl_t ctrl , bool rae
, __u8 lsp , __u32 len , struct nvme_boot_partition *part );
π ARGUMENTS π
ctrlβ Controller to query π like, this is the controller you're asking, she's the main character here.raeβ Retain asynchronous events β¨ (yes queen, keep those async events, do not let them go).lspβ The log specified field of LID π§ literally the log specified field of LID, that's the whole vibe.lenβ The allocated size, minimumstruct nvme_boot_partitionπ so like, allocate at least that much bestie, don't be out here with a tiny buffer.partβ User address to store the log page πΎ your address, your storage, your log page. we're writing it right there.
π«Ά RETURN π«Ά
The nvme command status if a response was received (see enum nvme_status_field) β or -1 with errno set otherwise π
lowkey important: if you get a response, you get the nvme command status. if you don't, it's-1anderrnois set. that's the whole deal, fr fr π
and that's the page!! go off, retrieve that Boot Partition, you absolute icon ππβ
this was the libnvme API manual, nvme_mi_admi...ot_partition(2), dated July 2026 π mwah, bye bestie π
π¦ where this page comes from
- ubuntu stonking: libnvme-dev 1.16.2-1build1 Β· LGPL-2.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms