of_get_next_available_child(9)
β¨ of_get_next_available_child β Kernel API Manual β¨
okay so bestie, this is the of_get_next_available_child(9) page from the Kernel API Manual, and we are about to vibe-check a very specific little kernel helper π¦. No cap, itβs giving βfind me the next available child nodeβ energy, and weβre gonna keep every detail intact.
π NAME π
of_get_next_available_child β find the next available child node π. Thatβs the whole assignment, periodt.
πΈ SYNOPSIS πΈ
struct device_node * of_get_next_available_child (const struct
device_node *node , struct device_node *prev );
π ARGUMENTS π
nodeβ parent node. This is the parent node, iykyk β the one whose children weβre checking π .prevβ previous child of the parent node, orNULLto get first. PassNULLwhen you want the first one, bestie β¨.
π¦ DESCRIPTION π¦
okay so this function is literally of_get_next_child energy, except it automatically skips any disabled nodes (i.e. status = "disabled"). So if a node is disabled, itβs not the one β the function moves right past it, no dramatic exit needed π.
π SEE ALSO π
Kernel file ./drivers/of/base.c is where this lives, and these are the related pages in the group chat π:
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_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)
mwah π β source/version: ./drivers/of, dated October 2026, for the of_get_next_available_child(9) page. Stay slay, and may your child nodes always be available π«Άβ¨
π¦ 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