efi_capsule_update_locked(9)
π efi_capsule_update_locked(9) π
okay bestie, welcome to the Kernel API Manual entry for efi_capsule_update_locked(9) β yes, the manual name is literally right there, we're being efficient π
β¨ NAME β¨
efi_capsule_update_locked β pass a single capsule to the firmware π«Ά
πΈ SYNOPSIS πΈ
the whole signature, copied exactly, no cap:
int efi_capsule_update_locked (efi_capsule_header_t *capsule , struct
page **sg_pages , int reset );
π ARGUMENTS π
capsuleβ capsule to send to the firmware πsg_pagesβ array of scatter gather (block descriptor) pages π§resetβ the reset type required for capsule π₯
π¦ DESCRIPTION π¦
okay so the vibe here is locked-function energy π
Since this function must be called under capsule_mutex, it checks whether efi_reset_type will conflict with reset, and atomically sets it and capsule_pending if a capsule was successfully sent to the firmware. β¨
it also checks to see if the system is about to restart, and if so, it aborts β like, bye π. This avoids races between efi_capsule_update and efi_capsule_pending, periodt. π
π SEE ALSO π
- Kernel file:
./drivers/firmware/efi/capsule.c efi_capsule_pending(9)efi_capsule_supported(9)efi_capsule_update(9)
mwah π source/version: ./drivers/firmware/efi Β· date: October 2026 Β· page name: efi_capsule_update_locked(9) β that's the footer, folded into a cute sign-off, 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