fwnode_grap...dpoint_count(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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:


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