request_firmware(9)
π NAME π
okay so bestie, this is request_firmware(9) from the Kernel API Manual, and it literally does what it says: it sends a firmware request and waits for it. slay. β¨
β¨ SYNOPSIS β¨
The exact signature, no cap:
int request_firmware (const struct firmware **firmware_p , const char
*name , struct device *device );
π ARGUMENTS π
firmware_pβ pointer to firmware image. this is the slot where the image comes back, bestie.nameβ name of firmware file.deviceβ device for which firmware is being loaded.
π¦ DESCRIPTION π¦
firmware_p will be used to return a firmware image by the name of name for device device. iconic little out-param behavior, honestly. π
Should be called from user context where sleeping is allowed. like, actually allowed β not βprobably fineβ π
name will be used as $FIRMWARE in the uevent environment and should be distinctive enough not to be confused with any other firmware image for this or any other device. make it unique, bestie.
No..shenanigans: it must not contain any".."path components β"foo/bar..bin"is allowed, but"foo/../bar.bin"is not. periodt, that one is a hard no. π«
Important: caller must hold the reference count of device. do not skip this, iβm begging. π«Ά
The function can be called safely inside device's suspend and resume callback. good news bestie, that part is safe. π
π₯ SEE ALSO π₯
Kernel file: ./drivers/base/firmware_loader/main.c
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)request_firmware_nowait_cancel(9)cache_firmware(9)uncache_firmware(9)device_cache_fw_images(9)device_uncache_fw_images(9)device_uncache_fw_images_delay(9)
mwah π β this pageβs source/version is ./drivers/base/firmware_loader, and the date on it is October 2026. go be iconic with your firmware requests π
β¨
π¦ 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