devm_of_rese..._device_init(9)
π devm_of_rese..._device_init(9) β a Kernel API Manual moment
ok so bestie, welcome to the kernel API manual, and yes the title is literally truncated like that β devm_of_rese..._device_init(9) β the kernel was too busy being iconic to finish typing, we love that for it π
β¨ NAME β¨
devm_of_reserved_mem_device_init β the resource-managed glow-up of of_reserved_mem_device_init() π¦
πΈ SYNOPSIS πΈ
int devm_of_reserved_mem_device_init (struct device *dev );
π ARGUMENTS π
devβ pointer to the device you wanna configure. it's giving "here's the main character, please set them up" π
π§ DESCRIPTION π§
okay so picture this: this is a resource managed version of of_reserved_mem_device_init. that's the whole vibe. the reserved memory region gets released automatically when the device is unbound β like, you don't have to remember to clean up, the kernel does it for you, no cap β¨ honestly the way devm handles the release for you is highkey iconic.
β RETURN β
- negative
errnoon failure π (flop era) - zero on success π (slay era)
π₯ SEE ALSO π₯
- Kernel file
./drivers/of/of_reserved_mem.cβ go read the source, iykyk π«Ά 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)of_reserved_mem_lookup(9)of_reserved_mem_region_to_resource(9)of_reserved_mem_region_to_resource_byname(9)of_reserved_mem_region_count(9)
and that's the whole page, bestie! π this one's filed under ./drivers/of, dated October 2026, and it's devm_of_rese..._device_init(9) all the way down. periodt πβ¨
π¦ 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