ENUM FW_OPT(9)
π enum fw_opt(9) π
okay so bestie, welcome to the Kernel API Manual, and buckle up because today we're talking about enum fw_opt β literally the options that control how firmware loading behaves. yes, the whole vibe of your firmware load is decided right here. iconic behaviour honestly π
β¨ NAME β¨
enum fw_opt β options to control firmware loading behaviour π¦
πΈ SYNOPSIS πΈ
enum fw_opt {
FW_OPT_UEVENT ,
FW_OPT_NOWAIT ,
FW_OPT_USERHELPER ,
FW_OPT_NO_WARN ,
FW_OPT_NOCACHE ,
FW_OPT_NOFALLBACK_SYSFS ,
FW_OPT_FALLBACK_PLATFORM ,
FW_OPT_PARTIAL
};
π Constants π
π
FW_OPT_UEVENT
Turns on the fallback mechanism so a kobject uevent gets sent when the firmware isn't found. from there, userspace is literally in charge of loading the firmware using the sysfs loading facility. team effort fr fr π«Ά
β‘ FW_OPT_NOWAIT
this one's just here to describe that the firmware request is asynchronous. no waiting around, main character energy only β¨
π§ FW_OPT_USERHELPER
Enables the fallback mechanism in case the direct filesystem lookup fails at finding the firmware. for the details, go refer to firmware_fallback_sysfs β iykyk π
π€« FW_OPT_NO_WARN
Quiet mode. avoid printing warning messages. not me silencing the warnings π
π« FW_OPT_NOCACHE
Disables firmware caching. so like, firmware caching is used to cache the firmware upon suspend, so that upon resume, races against the firmware file lookup on storage are avoided. it's used for calls where the file may be too big, or where the driver takes charge of its own firmware caching mechanism. lowkey responsible of it honestly π
π FW_OPT_NOFALLBACK_SYSFS
Disable the sysfs fallback mechanism. and bestie listen β it takes precedence over FW_OPT_UEVENT and FW_OPT_USERHELPER. it said what it said π
ποΈ FW_OPT_FALLBACK_PLATFORM
Enable fallback to the device fw copy embedded in the platform's main firmware. and if both this fallback and the sysfs fallback are enabled, then this fallback gets tried first. first in line, periodt β
π FW_OPT_PARTIAL
Allow partial read of firmware instead of needing to read the entire file. we love efficiency π
π₯ SEE ALSO π₯
- Kernel file
./drivers/base/firmware_loader/firmware.h
okay that's the whole page, you ate that honestly π
β¨ and for the cute sign-off: this lil masterpiece lives at ./drivers/base/firmware_loader and it's dated October 2026 β so go forth and load your firmware responsibly, 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