efi_capsule_pending(9)
β¨ efi_capsule_pending π
okay so bestie, welcome to the Kernel API Manual β yes we're reading kernel docs together, this is our bonding time π«Ά
πΈ NAME πΈ
efi_capsule_pending β has a capsule been passed to the firmware? π like, is it pending or not, that's the whole vibe check
π SYNOPSIS π
bool efi_capsule_pending (int *reset_type );
π ARGUMENTS π
reset_typeβ this is where you stash the type of EFI reset if a capsule is pending. it's literally the output slot, bestie, that's its whole job π«‘
π¦ DESCRIPTION π¦
so here's the tea β β to make sure the registered capsule gets processed correctly by the firmware, we have to perform a specific type of reset. so: if a capsule is pending, this function returns the reset type in reset_type. that's it, that's the deal β¨
β οΈ race condition alert, no cap β this function will race with callers ofefi_capsule_update. like, for example: you call this function while somebody else is inefi_capsule_updatebut hasn't reachedefi_capsue_update_lockedyet β you will miss the updates tocapsule_pendingandefi_reset_typeafterefi_capsule_update_lockedcompletes. π rip
a non-racy use is from platform reboot code, because we use system_state to make sure no capsules can be sent to the firmware once we're at SYSTEM_RESTART. iconic behavior honestly π see efi_capsule_update_locked.
π₯ SEE ALSO π₯
kernel file ./drivers/firmware/efi/capsule.c β and also go read:
okay that's the whole page, go forth and know thy capsules π§π
β source/version: ./drivers/firmware/efi β dated October 2026 β¨ slay, see you in the next manpage bestie π
π¦ 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