STRUCT OF_ENDPOINT(9)
β¨ struct of_endpoint(9) β¨
okay bestie, listen up π we're in the Kernel API Manual today β yes, the Kernel API Manual, capital letters, very serious, very slay β and our main character is struct of_endpoint, aka the OF graph endpoint data structure π
It's giving "small struct, big responsibilities." Let's get into it π¦
πΈ SYNOPSIS πΈ
Like, here's the whole entire thing, no cap:
struct of_endpoint {
unsigned int port;
unsigned int id;
const struct device_node *local_node;
};
Three fields. That's it. That's the whole struct. Iconic minimalism honestly π
π Members π
portβ the identifier of a port this endpoint belongs to, and that identifier is literally the value of theregproperty π₯ so yeah,regis doing the heavy lifting here.idβ the identifier of this endpoint, again the value of theregproperty. yes, anotherreg. it's reg all the way down π«Άlocal_nodeβ a pointer to thedevice_nodeof this endpoint. just a pointer, living its best life, pointing at a node π
π¦ SEE ALSO π¦
peep the kernel file ./include/linux/of_graph.h for these besties, they're all in the same friend group fr fr:
π no warnings on this page bestie, it's a chill little struct page. read it, love it, reference it responsibly β¨
okay and finally, the cute little sign-off π this page lives under ./include/linux, dated October 2026, and it's struct of_endpoint(9) β so go forth and traverse the OF graph, you absolute legend πππ
π¦ 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