of_reserved_mem_lookup(9)
π 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 desiredreserved-memoryregion π
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 π
- Kernel file
./drivers/of/of_reserved_mem.cπ fdt_scan_reserved_mem_late(9)fdt_fixup_reserved_mem_node(9)fdt_validate_reserved_mem_node(9)__reserved_mem_init_node(9)fdt_init_reserved_mem_node(9)of_reserved_mem_device_init_by_idx(9)of_reserved_mem_device_init_by_name(9)of_reserved_mem_device_release(9)devm_of_reserved_mem_device_init(9)of_reserved_mem_region_to_resource(9)of_reserved_mem_region_to_resource_byname(9)of_reserved_mem_region_count(9)
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
- 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