of_icc_get(9)
π NAME π
okay so welcome to the of_icc_get(9) page in the Kernel API Manual, bestie β¨ β this one is all about getting a path handle from a DT node based on name. It's giving βlook up your interconnect path by the name you gave itβ energy, and honestly? iconic. π
π¦ SYNOPSIS π¦
struct icc_path * of_icc_get (struct device *dev , const char *name );
π ARGUMENTS π
devβ device pointer for the consumer device. It's the device that's asking for the path, iykyk π«Άnameβ interconnect path name. Literally the name of the interconnect path πΈ
πΈ DESCRIPTION πΈ
This function will search for a path between two endpoints and return an icc_path handle on success. Use icc_put to release constraints when they are not needed anymore. No cap, that cleanup part matters π
If the interconnect API is disabled, NULL is returned and the consumer drivers will still build. Drivers are free to handle this specifically, but they don't have to. So yes, sometimes NULL is just the vibe and not a whole crisis π
lowkey important: the API can be disabled and everything still builds, so don't assume NULL always means something exploded. It's valid, bestie β¨
β RETURN β
icc_path pointer on success or ERR_PTR on error. NULL is returned when the API is disabled or the "interconnects" DT property is missing.
So: success gets you the pointer, error gets you ERR_PTR, and NULL is the special βAPI disabled / no "interconnects" DT propertyβ situation πβ¨
π SEE ALSO π
Kernel file ./drivers/interconnect/core.c
of_icc_get_from_provider(9)of_icc_get_by_index(9)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)
mwah π this lil page is from the Kernel API Manual, source ./drivers/interconnect, dated October 2026. of_icc_get(9) out β slay and read the SEE ALSO 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