of_reserved_mem_lookup(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– of_reserved_mem_lookup β€” the Kernel API Manual glow-up ✨

okay so bestie, this one lives in the kernel API manual, section 9 (that's the kernel developer manual vibe, iykyk 🧚), and it's genuinely such a little icon. let me tell you everything πŸ’…


✨ NAME ✨

of_reserved_mem_lookup β€” acquire reserved_mem from a device node πŸŽ€

like, you hand it a device node and it hands you back your reserved-memory struct. match made in heaven fr fr πŸ’–


🌸 SYNOPSIS 🌸

struct reserved_mem * of_reserved_mem_lookup (struct device_node *np );

that's the whole thing. one argument, one pointer back. slay 🫢


πŸ¦‹ ARGUMENTS πŸ¦‹

  • np β€” node pointer of the desired reserved-memory region πŸ‘‘

literally the handle to the reserved-memory region you're obsessed with. that's it, that's the input ✨


πŸ’œ DESCRIPTION πŸ’œ

so this is the function that lets drivers acquire a reference to the reserved_mem struct based on a device node handle πŸ’«

you've got a device node, you want the reserved_mem that goes with it, boom β€” that's the function. main character energy, honestly.

Returns a reserved_mem reference, or NULL on error 😭 so like, always check your pointer bestie, no cap πŸ™ˆ

ngl, NULL on error is not a suggestion. it's a promise. vibe check your return value πŸ’€

🌈 SEE ALSO 🌈

the whole reserved-mem friend group, all linked up 🫢 go read them, they're iconic ⭐


and that's the page!! πŸ’– this one came from ./drivers/of, dated October 2026 β€” so like, shoutout to the ./drivers/of directory and the October 2026 timestamp, and the kernel API manual section 9 for hosting the whole thing πŸŽ€ bye bestie, happy looking-up βœ¨πŸ’…

πŸ“¦ where this page comes from