of_find_node_by_name(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay so this is the of_find_node_by_name(9) page from the Kernel API Manual, and it is literally about finding a node by its "name" property. slay. πŸ¦‹βœ¨

🌸 NAME 🌸

of_find_node_by_name β€” find a node by its "name" property. that's the whole assignment, bestie. πŸ’…

✨ SYNOPSIS ✨

the signature is giving:

struct device_node * of_find_node_by_name (struct device_node *from ,
       const char *name );

πŸŽ€ ARGUMENTS πŸŽ€

  • from β€” the node to start searching from or NULL; the node you pass will not be searched, only the next one will. Typically, you pass what the previous call returned. of_node_put will be called on from. so yes, this one has cleanup energy. 🫢
  • name β€” the name string to match against. match her, bestie. πŸŽ€

πŸ’– RETURN πŸ’–

you get a node pointer with refcount incremented β€” use of_node_put on it when done, fr fr. 🫢

πŸ¦‹ SEE ALSO πŸ¦‹

Kernel file ./drivers/of/base.c plus the whole iconic friend group: 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_reserved(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_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).


that's the whole page, bestie πŸ’œ β€” it lives under ./drivers/of, it's dated October 2026, and it's the of_find_node_by_name(9) manual page. byeeee 🫢✨

πŸ“¦ where this page comes from