of_graph_ge...oint_by_regs(9)
β¨ of_graph_ge...oint_by_regs(9) β¨
okay so bestie, like, real talk: this is a page from the Kernel API Manual (yes, the Linux kernel, we're literally in the big leagues π
) and the function name is genuinely that long, don't @ me, that's just how it's spelled β of_graph_ge...oint_by_regs(9), ellipsis and all. iykyk π
πΈ NAME πΈ
of_graph_get_endpoint_by_regs β bestie. it gets you an endpoint node that has specific identifiers. that's the whole vibe. β¨
π¦ SYNOPSIS π¦
struct device_node * of_graph_get_endpoint_by_regs (const struct
device_node *parent , int port_reg , int reg );
like, look at her. three args, one pointer out. iconic. π
π ARGUMENTS π
parentβ pointer to the parent device node π«Ά (yes, the actual parent, we're going in)port_regβ the identifier of the parent port node, and by "identifier" we mean the value of itsregproperty, periodt.regβ the identifier of the endpoint node, again: value of theregproperty. that one. π
β RETURN β
You get back an 'endpoint' node pointer β and she's a very specific girlie: she's the one identified by reg, and at the same time she's the child of a port node identified by port_reg. two whole criteria. main character energy fr fr. π
π¨ bestie listen βregandport_regare ignored when they are-1. like, straight up not read. so if you pass-1don't be out here expecting it to filter anything, okay?
π«Ά and please, PLEASE β use of_node_put on the pointer when done. that's not optional, that's a reference you're holding. clean up after yourself, we don't leak. π
π§ SEE ALSO π§
Kernel file ./drivers/of/property.c β that's the home base, go say hi π
and then the whole friend group:
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_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)
like. the whole squad. ate and left no crumbs ππ₯
and that's the tea, bestie π this masterpiece lives over in ./drivers/of and it's dated October 2026 β so yeah, of_graph_ge...oint_by_regs(9), Kernel API Manual, October 2026, ./drivers/of. mwah. go call of_node_put. πβ¨
π¦ 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