efi_capsule_setup_info(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 of capsule_info structure. 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 🌈

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