__zynqmp_clock_get_parents(9)
π
__zynqmp_clock_get_parents β the Kernel API Manual, but make it cute
okay so bestie, this is a kernel function from the ZynqMP clock driver (./drivers/clk/zynqmp/clkc.c), and it's literally just vibing in the kernel API manual. it's giving "lowkey important, highkey niche" π
β¨ NAME β¨
__zynqmp_clock_get_parents β get parents info of clock from firmware response data π
like, the firmware sent you a little package of parent-clock data and this function is the one that unpacks it. no cap.
πΈ SYNOPSIS πΈ
int __zynqmp_clock_get_parents (struct clock_parent *parents , struct
parents_resp *response , u32 *nparent );
π¦ ARGUMENTS π¦
parentsβ clock parents, aka the place where the parent info is gonna live. it's astruct clock_parent *, periodt π«Άresponseβ clock parents data received from firmware. this is the raw tea straight from the firmware,struct parents_resp *πnparentβ number of parent. literally the count of parents,u32 *, iconic π
β RETURN β
0 on success, else error+reason π β so if you get anything other than 0, that's your sign something went sideways and there's a reason attached.
π₯ SEE ALSO π₯
yeah so there's a whole friend group here, all chilling in the kernel file ./drivers/clk/zynqmp/clkc.c:
struct clock_parent(9), struct zynqmp_clock(9), zynqmp_is_valid_clock(9), zynqmp_get_clock_name(9), zynqmp_get_clock_type(9), zynqmp_pm_clock_get_num_clocks(9), zynqmp_pm_clock_get_name(9), zynqmp_pm_clock_get_topology(9), zynqmp_clk_register_fixed_factor(9), zynqmp_pm_clock_get_parents(9), zynqmp_pm_clock_get_attributes(9), __zynqmp_clock_get_topology(9), zynqmp_clock_get_topology(9), zynqmp_clock_get_parents(9), zynqmp_get_parent_list(9), zynqmp_register_clk_topology(9), zynqmp_register_clocks(9), zynqmp_get_clock_info(9), zynqmp_clk_setup(9)
ngl that's a whole squad π go read them if you want the full lore, iykyk.
lowkey reminder: this page is from the ./drivers/clk/zynqmp corner of the kernel and it's dated October 2026, so bestie, that's the version tea β don't come for me if your tree is different, fr fr π
stay slay, go read your kernel source πβ¨
π¦ 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