devm_rpi_firmware_get(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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 🧚


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