request_firm...owait_cancel(9)
hiii bestie π welcome to the request_firm...owait_cancel(9) page β it's part of the Kernel API Manual and it's literally all about cancelling an async firmware request. no cap, it's short but it matters. let's get into it β¨
πΈ NAME πΈ
request_firmware_nowait_cancel β cancel an async firmware request π«Ά
π SYNOPSIS π
void request_firmware_nowait_cancel (struct device *device , void *context , void (*cont)(const struct firmware *fw, void *context) );
that's the whole signature, bestie β memorize it or don't, but it's right there π
π ARGUMENTS π
deviceβ the device for which the firmware is being loaded. like, which device are we doing this for? πcontextβ the context passed torequest_firmware_nowait. it's the same context, just vibing through π¦contβ the callback passed torequest_firmware_nowait. this is the function that gets called when things are ready β¨
π₯ DESCRIPTION π₯
okay so here's the tea β: this function cancels a pending request_firmware_nowait request for device, context and cont. like, it's the cancel button for that async request, periodt.
if the associated work has already started, this function waits until the callback has returned. so it's not gonna just dip β it waits for the callback to finish, no cutting corners π
if the callback has already completed, this function does nothing. literally nothing. it's a no-op at that point, and that's iconic.
β οΈ bestie, this function may sleep. yes, may sleep β so it's not one of those non-blocking girlypops, plan accordingly π€
π SEE ALSO π
if you're obsessed like me, here's the whole friend group π―ββοΈ β the kernel file is ./drivers/base/firmware_loader/main.c, and these are the related functions:
request_firmware(9)firmware_request_nowarn(9)request_firmware_direct(9)firmware_request_platform(9)firmware_request_cache(9)request_firmware_into_buf(9)request_partial_firmware_into_buf(9)release_firmware(9)request_firmware_nowait(9)firmware_request_nowait_nowarn(9)cache_firmware(9)uncache_firmware(9)device_cache_fw_images(9)device_uncache_fw_images(9)device_uncache_fw_images_delay(9)
that's the whole page, bestie π«Ά sending u all the firmware-loading love from ./drivers/base/firmware_loader, October 2026 edition. this has been request_firm...owait_cancel(9) β slay responsibly π
β¨
π¦ 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