devm_rpi_firmware_get(9)
β¨ devm_rpi_firmware_get(9) β¨
okay so bestie, we're in the Kernel API Manual today and this one is genuinely so chill β it's giving "one job, does it well." Let's get into it π«Ά
πΈ NAME πΈ
devm_rpi_firmware_get β get a pointer to the rpi_firmware structure. that's it. that's the whole vibe. π
π¦ SYNOPSIS π¦
struct rpi_firmware * devm_rpi_firmware_get (struct device *dev , struct device_node *firmware_node );
literally just hand it two things and it hands you back a struct rpi_firmware *. iconic behaviour ngl β¨
π ARGUMENTS π
devβ the firmware device structure. like, the device itself. the main character πfirmware_nodeβ a pointer to the firmware Device Tree node. yep, a pointer, not the node itself, don't come for me π
π DESCRIPTION π
so what does it actually do? it returns the firmware pointer. but bestie, hear me β from the source, word for word:
Returns NULL is the firmware device is not ready.
no cap, that's the note. if the firmware device isn't ready yet? you get NULL. so likeβ¦ vibe check your return value before you dereference it, fr fr π
π§ SEE ALSO π§
- the kernel file
./drivers/firmware/raspberrypi.cβ go read it, it's right there π rpi_firmware_property_list(9)rpi_firmware_property(9)rpi_firmware_get(9)β the non-devmcousin, iykyk
and that's the page!! mwah π this little angel lives over in ./drivers/firmware, it's dated October 2026, and it's filed under devm_rpi_firmware_get(9) β go forth and 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