efi_capsule_update_locked(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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 πŸ’œ


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