fwnode_grap...dpoint_count(9)
π fwnode_graph_get_endpoint_count(9)
okay bestie, so this little cutie lives in the Kernel API Manual and her whole entire job is counting endpoints on a device node. it's giving "headcount at the function but make it β¨firmwareβ¨". let's get into it π
πΈ NAME πΈ
fwnode_graph_get_endpoint_count β count endpoints on a device node, that's it, that's the gig π
β¨ SYNOPSIS β¨
unsigned int fwnode_graph_get_endpoint_count (const struct fwnode_handle
*fwnode , unsigned long flags );
like, you hand her a fwnode and some flags, and she gives you back an unsigned int. main character returns only π₯
π¦ ARGUMENTS π¦
fwnodeβ the node related to a device. literally just the node you're curious about, no cap π«Άflagsβ fwnode lookup flags. and yeah, she counts endpoints in a device node β that's the vibe check right there π
π§ DESCRIPTION π§
so here's the tea β: if the FWNODE_GRAPH_DEVICE_DISABLED flag is specified, then she also counts the unconnected endpoints and the endpoints connected to disabled devices. lowkey generous of her ngl ππ
fr fr, that's the only extra behaviour β no other flags doing secret side quests, iykyk.
π SEE ALSO π
like an entire group chat of related functions, and yes we're tagging every single one of them bestie π the kernel file is ./drivers/base/property.c and she rolls with:
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_next_endpoint(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_parse_endpoint(9)fwnode_connection_find_match(9)fwnode_connection_find_matches(9)
okay that's the whole page, and before you go β cute lil sign-off time π this one's filed under ./drivers/base and dated October 2026, and it goes by fwnode_graph_get_endpoint_count(9) like the queen she is. obsessed. bye 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