fwnode_graph...ext_endpoint(9)
π fwnode_graph...ext_endpoint(9) β Kernel API Manual
okay so bestie, welcome to the glow-up edition of the fwnode_graph...ext_endpoint(9) page from the Kernel API Manual β¨ this one's short but she's important, so pay attention π
πΈ NAME πΈ
fwnode_graph_get_next_endpoint β get the next endpoint firmware node, literally that's her whole job π¦
β¨ SYNOPSIS β¨
struct fwnode_handle * fwnode_graph_get_next_endpoint (const struct
fwnode_handle *fwnode , struct fwnode_handle *prev );
π ARGUMENTS π
fwnodeβ pointer to the parent firmware node π like, the one who's holding all the endpoints, she's the mother of the group chatprevβ the previous endpoint node, orNULLif you wanna grab the first one π± starting fresh, no baggage, we love a clean slate
π DESCRIPTION π
okay so here's the tea β β you, the caller, are responsible for calling fwnode_handle_put on the returned fwnode pointer. no cap, that's on you, don't forget it or you're leaking refs and that's not the vibe π
and also β the way that this function also puts a reference to prev unconditionally?? yeah. it does that. so don't go putting it again yourself, bestie, that's double-dipping and the kernel will Not be happy π
β RETURN β
an endpoint firmware node pointer π«Ά β or NULL if there are no more endpoints available. that's it, that's the whole answer. NULL = you've reached the end of the line, no more endpoints, go home π
π SEE ALSO π
Kernel file ./drivers/base/property.c β and like, the whole extended friend group π :
device_property_present(9)fwnode_property_present(9)device_property_read_bool(9)fwnode_property_read_bool(9)device_property_read_u8_array(9)device_property_read_u16_array(9)device_property_read_u32_array(9)device_property_read_u64_array(9)device_property_read_string_array(9)device_property_read_string(9)device_property_match_string(9)fwnode_property_read_u8_array(9)fwnode_property_read_u16_array(9)fwnode_property_read_u32_array(9)fwnode_property_read_u64_array(9)fwnode_property_read_string_array(9)fwnode_property_read_string(9)fwnode_property_match_string(9)fwnode_property_match_property_string(9)fwnode_property_get_reference_args(9)fwnode_find_reference(9)fwnode_get_name(9)fwnode_get_name_prefix(9)fwnode_name_eq(9)fwnode_get_parent(9)fwnode_get_next_parent(9)fwnode_count_parents(9)fwnode_get_nth_parent(9)fwnode_get_next_child_node(9)fwnode_get_next_available_child_node(9)device_get_next_child_node(9)fwnode_get_named_child_node(9)device_get_named_child_node(9)fwnode_handle_get(9)fwnode_device_is_available(9)fwnode_get_child_node_count(9)fwnode_get_named_child_node_count(9)fwnode_get_phy_mode(9)device_get_phy_mode(9)fwnode_iomap(9)fwnode_irq_get(9)fwnode_irq_get_byname(9)fwnode_graph_get_port_parent(9)fwnode_graph_get_remote_port_parent(9)fwnode_graph_get_remote_port(9)fwnode_graph_get_remote_endpoint(9)fwnode_graph_get_endpoint_by_id(9)fwnode_graph_get_endpoint_count(9)fwnode_graph_parse_endpoint(9)fwnode_connection_find_match(9)fwnode_connection_find_matches(9)
reminder bestie:fwnode_handle_puton the return value, and rememberprevgets put for you. iykyk π
and that's the whole page, mwah π this little icon was brought to you by the fine folks over in ./drivers/base, dated October 2026 β periodt, go read the source, ily, bye π§ββοΈπ
π¦ 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