efi_capsule_setup_info(9)
π efi_capsule_setup_info(9) β like, the Kernel API Manual, but make it make sense
okay so bestie, welcome to the glow-up of efi_capsule_setup_info(9). this is a kernel API manual page, and no, it's not a skincare routine β it's about grabbing the EFI capsule header out of the binary and setting up the capsule_info structure. slay. let's get into it π
β¨ NAME β¨
efi_capsule_setup_info β obtain the efi capsule header in the binary and setup capsule_info structure π
like... it literally reaches into the binary, finds the efi capsule header, and then sets up the capsule_info structure. that's the whole vibe. no cap.
πΈ SYNOPSIS πΈ
int efi_capsule_setup_info (struct capsule_info *cap_info , void *kbuff
, size_t hdr_bytes );
(fr fr, copy it exactly like that β the spacing is part of the look, iykyk β¨)
π¦ ARGUMENTS π¦
cap_infoβ pointer to current instance ofcapsule_infostructure. it's giving "the main character of this function call" energy πkbuffβ a mapped first page buffer pointer. yes, first page. mapped. buffer. pointer. all three πhdr_bytesβ the total received number of bytes for efi header. count 'em, bestie π
π₯ DESCRIPTION π₯
so here's the tea β β platforms with non-standard capsule update mechanisms can override this __weak function so they can perform any required capsule image munging. that's the entire point: it's __weak, so you can absolutely step in and do your own thing if your platform is built different π
lowkey the whole thing is "default behavior is here, but you may override it" β and if you want to see what that looks like in practice, see quark_quirk_function for an example. iconic. it's right there, go look at it π
ngl, this is the part where you either let the weak function do its thing or you make it your whole personality. both are valid, but the override is the moment β¨
π SEE ALSO π
- Kernel file
./drivers/firmware/efi/capsule-loader.cβ literally where it lives, go read it π§ efi_free_all_buff_pages(9)efi_capsule_submit_update(9)efi_capsule_write(9)efi_capsule_release(9)efi_capsule_open(9)
the whole capsule friend group, assembled π«Ά
and that's the page, bestie!! π this lil beauty comes to you straight from ./drivers/firmware/efi β the source/version, dated October 2026 β so yeah, mark your calendars, screenshot it, send it to the group chat. periodt. π
πβ¨
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms