firmware_req..._builtin_buf(9)
π firmware_req..._builtin_buf(9) β Kernel API Manual
okay so bestie, welcome to the glow-up era of firmware loading β¨ this one's from the Kernel API Manual, and it's genuinely one of the more chill functions you'll meet. no cap.
πΈ NAME
firmware_request_builtin_buf β load builtin firmware into optional buffer π
π¦ SYNOPSIS
bool firmware_request_builtin_buf (struct firmware *fw , const char *name , void *buf , size_t size );
like, yes, it returns a bool. keep that in mind, it matters later π
π ARGUMENTS
fwβ pointer to thefirmwarestruct. your main character, the thing that gets filled in π«Άnameβ name of the firmware file. literally just the name, that's the whole vibe β¨bufβ if you set this, it lets you use a pre-allocated buffer so that the built-in firmware gets copied into it. this field can beNULL, which is very much allowed, no stress π. it's used by callers such asrequest_firmware_into_bufandrequest_partial_firmware_into_bufβ iykyk π§sizeβ ifbufwas provided, this is the max size of the allocated buffer available. and bestie, listen: if the built-in firmware does not fit into the pre-allocatedbuf, this call will fail π no negotiating. it either fits or it doesn't.
π₯ DESCRIPTION
So like, what does it even do π β it looks for the firmware in the built-in kernel. Only if the kernel was built-in with the firmware you're looking for will this call possibly succeed. that "possibly" is doing a lot of heavy lifting, ngl π
and if you passed a buf, the firmware will be copied into it iff the built-in firmware fits into the pre-allocated buffer size specified in size. yes, iff. that's not a typo, that's just how it is π
β οΈ heads up bestie: this caller is to be used internally by the firmware_loader only. so like, don't be out here calling it from random places, okay? that's not the vibe check you want to fail πΈ
π SEE ALSO
- Kernel file
./drivers/base/firmware_loader/builtin/main.c firmware_request_builtin(9)β the sibling!! go say hi π«Ά
okay that's the whole page, periodt π π¦
sign-off besties: this one comes from ./drivers/base/firmware_loader... and it's dated October 2026 β iconic of it honestly, and it's still filed under firmware_req..._builtin_buf(9) if you need to find it again ππ
π¦ 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