of_graph_ge..._port_parent(9)
π of_graph_get_remote_port_parent(9) β Kernel API Manual π
ok so bestie, welcome to the glow-up era of the kernel API docs β¨ this one lives in the Kernel API Manual (section 9, iykyk) and it's all about that device-tree graph life π³
π NAME π
of_graph_get_remote_port_parent β literally goes and gets the remote port's parent node π
β¨ SYNOPSIS β¨
struct device_node * of_graph_get_remote_port_parent (const struct
device_node *node );
that's the whole signature, no cap π«Ά
π¦ ARGUMENTS π¦
nodeβ pointer to a local endpointdevice_nodeπ like, this is your starting point, your main character, the node you already have
πΈ RETURN πΈ
it hands you back the remote device node that's associated with the remote endpoint node linked to node π₯
β οΈ okay this part is important bestie: use of_node_put on it when done π
like, don't just walk away with your new node reference, that's not the vibe
π SEE ALSO π
the whole friend group π and yeah, it lives in the Kernel file ./drivers/of/property.c:
of_property_read_bool(9)of_graph_is_present(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(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)
π«Ά that's the whole page bestie, go forth and traverse those graph links responsibly π β¨
β cute lil sign-off: this masterpiece came from ./drivers/of and it's dated October 2026 π see u in the next manpage, mwah π
π¦ 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