icc_get(9)
π icc_get(9) β the Kernel API Manual glow-up, bestie β¨
Okay so real talk, this is the icc_get(9) man page from the Kernel API Manual and honestly it's way more iconic than it lets on. It's all about grabbing yourself a path handle between two endpoints, and I'm gonna walk you through it like we're texting at 2am. π«Ά
πΈ NAME πΈ
icc_get β get a path handle between two endpoints. That's the whole vibe. Lowkey does exactly what it says on the tin. β¨
π¦ SYNOPSIS π¦
struct icc_path * icc_get (struct device *dev , const char *src , const char *dst );
Like, that's the function signature and you should copy it exactly, no cap. π
π ARGUMENTS π
devβ device pointer for the consumer device. Basically "who's asking for this path", iykyk.srcβ source node name. The starting point, the main character of the journey. πdstβ destination node name. Where we're headed, the final boss. π
π₯ DESCRIPTION π₯
So here's the tea: this function will search for a path between two endpoints and return an icc_path handle on success. That's it, that's the whole move. π
β οΈ Bestie, listen: use icc_put to release constraints when they are not needed anymore. Don't just leave them hanging, it's giving clingy ex energy and the kernel will Not be amused. π
π RETURN π
- Returns an
icc_pathpointer on success. Slay. π - Returns
ERR_PTRon error. Not slay, but at least it tells you. π - Returns
NULLwhen the API is disabled. It's literally not even available, so don't come for it. π
π SEE ALSO π
Okay so there are a LOT of friends in this friend group, let me introduce you:
- Kernel file
./drivers/interconnect/core.cβ yes the source file, go read it, it's right there. π of_icc_get_from_provider(9)of_icc_get_by_index(9)of_icc_get(9)icc_set_tag(9)icc_get_name(9)icc_set_bw(9)icc_put(9)icc_node_create_dyn(9)icc_node_create(9)icc_node_destroy(9)icc_node_set_name(9)icc_link_nodes(9)icc_link_create(9)icc_node_add(9)icc_node_del(9)icc_nodes_remove(9)icc_provider_init(9)icc_provider_register(9)icc_provider_deregister(9)
That's the whole crew, every single one, don't skip a single name or I will know. π
~ cute sign-off time ~ π§
This lil masterpiece lives in ./drivers/interconnect, and it's dated October 2026 in the kernel docs, so yeah, future vibes. Periodt. πβ¨
π¦ 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