__of_device_is_reserved(9)
π¦ __of_device_is_reserved(9) β straight out of the Kernel API Manual
okay bestie, listen, this one's a tiny little function from the kernel's device tree world and honestly it's giving "small but mighty" π we're literally just checking one thing and dipping. no cap.
β¨ NAME β¨
__of_device_is_reserved β check if a device is reserved π
πΈ SYNOPSIS πΈ
bool __of_device_is_reserved (const struct device_node *device );
like, that's the whole vibe. returns a bool, takes one const struct device_node *. clean. iconic. no notes. β¨
π ARGUMENTS π
deviceβ the node you're checking for availability, okay? and heads up bestie, this one expects the locks to already be held when you call it π«Ά so likeβ¦ you handle the locks, this function handles the check. division of labor, we love to see it.
π RETURN π
trueif thestatusproperty is set to"reserved"πfalseotherwise
that's it. that's the whole answer. binary queen behavior, honestly. π₯
lowkey important: this is the version that assumes the locks are held. don't forget that part, bestie, fr fr.
π§ SEE ALSO π§
sooo there's a whole friend group here. first up, the kernel file it lives in:
- Kernel file
./drivers/of/base.c
and then the entire of-crew, in the order the manpage gives them π:
of_find_all_nodes(9)__of_device_is_compatible(9)of_machine_compatible_match(9)of_machine_read_compatible(9)of_machine_read_model(9)of_machine_get_match(9)of_machine_get_match_data(9)__of_device_is_available(9)of_device_is_available(9)__of_device_is_fail(9)of_device_is_big_endian(9)of_get_parent(9)of_get_next_parent(9)of_get_next_child(9)of_get_next_child_with_prefix(9)of_get_next_available_child(9)of_get_next_reserved_child(9)of_get_next_cpu_node(9)of_get_compatible_child(9)of_get_child_by_name(9)of_get_available_child_by_name(9)of_find_node_opts_by_path(9)of_find_node_by_name(9)of_find_node_by_type(9)of_find_compatible_node(9)of_find_node_with_property(9)of_match_node(9)of_find_matching_node_and_match(9)of_alias_from_compatible(9)of_find_node_by_phandle(9)of_parse_phandle_with_args_map(9)of_count_phandle_with_args(9)__of_add_property(9)of_add_property(9)of_remove_property(9)of_alias_scan(9)of_alias_get_id(9)of_alias_get_highest_id(9)of_console_check(9)of_find_next_cache_node(9)of_find_last_cache_level(9)of_map_id(9)of_map_iommu_id(9)of_map_msi_id(9)
and that's the whole page, bestie β go check some reserved devices π
sign-off time π this one ships as part of the Kernel API Manual, lives in ./drivers/of, and the date on it is October 2026. 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