of_graph_is_present(9)
πΈ of_graph_is_present (9) πΈ
okay so bestie, welcome to the Kernel API Manual, section 9 β this one's a tiny little function but she's lowkey iconic π we're checking whether a device tree node actually has a graph in it, no cap.
β¨ NAME β¨
of_graph_is_present β the vibe check for whether a graph exists at all π
β¨ SYNOPSIS β¨
bool of_graph_is_present (const struct device_node *node );
literally one argument, one boolean, zero drama π
β¨ ARGUMENTS β¨
nodeβ a pointer to thedevice_nodethat's holding the graph port. fr fr just hand her the node and she'll look inside π«Ά
β¨ RETURN β¨
She returns true if node has a port sub-node β or ports (with a port) sub-node β and false otherwise. that's it, that's the whole personality πβ¨
ngl this is the "does the graph exist or not" question, not the "is the graph any good" question. don't @ me.
β¨ SEE ALSO β¨
the whole friend group π« β you can find all of them in the Kernel file ./drivers/of/property.c:
of_property_read_bool(9)of_property_count_elems_of_size(9)of_find_property_value_of_size(9)of_property_read_u8_index(9)of_property_read_u16_index(9)of_property_read_u32_index(9)of_property_read_u64_index(9)of_property_read_variable_u8_array(9)of_property_read_variable_u16_array(9)of_property_read_variable_u32_array(9)of_property_read_u64(9)of_property_read_variable_u64_array(9)of_property_read_string(9)of_property_match_string(9)of_property_read_string_helper(9)of_graph_parse_endpoint(9)of_graph_get_port_by_id(9)of_graph_get_next_port(9)of_graph_get_next_port_endpoint(9)of_graph_get_next_endpoint(9)of_graph_get_endpoint_by_regs(9)of_graph_get_remote_endpoint(9)of_graph_get_port_parent(9)of_graph_get_remote_port_parent(9)of_graph_get_remote_port(9)of_graph_get_endpoint_count(9)of_graph_get_port_count(9)of_graph_get_remote_node(9)parse_prop_cells(9)parse_suffix_prop_cells(9)struct supplier_bindings(9)of_link_property(9)
and that's the tea β source lives at ./drivers/of, dated October 2026, and yes she's still serving of_graph_is_present(9) realness πβ¨ππ¦ slay, go read your device trees bestie ππ
π¦ 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