zynqmp_pm_clock_get_parents(9)
π zynqmp_pm_clock_get_parents(9) π
Okay so bestie, welcome to the Kernel API Manual page for zynqmp_pm_clock_get_parents(9) β yes that's the whole name, it's giving "my function name is a paragraph" but we move π«Ά. This is the ZynqMP clock corner of the kernel, and honestly? It's iconic.
β¨ NAME β¨
zynqmp_pm_clock_get_parents β grab the first 3 parents of a clock for a given id. That's it, that's the vibe. Three parents, no cap π
πΈ SYNOPSIS πΈ
int zynqmp_pm_clock_get_parents (u32 clock_id , u32 index , struct
parents_resp *response );
π ARGUMENTS π
clock_idβ the Clock ID, aka which clock we're talking about πindexβ the Parent index, aka where in the parent lineup you're starting πresponseβ the Parents of the given clock, where the answer gets dropped off π¦
β DESCRIPTION β
So this function is literally used to get 3 parents for the clock specified by the given clock ID. Three at a time, that's the whole deal β¨
Here's the cute part: this API returns 3 parents with a single response. But what if your clock has more than 3 parents? Not me leaving you hanging β there's a whole loop situation. To get the other parents, the master should call the same API in a loop with a new parent index till error is returned. Lowkey genius, highkey efficient π
The example, because examples ate:
- First call should have
index0, which will return parents0,1and2π - Next call,
indexshould be3, which will return parent3,4and5π§ - β¦and so on, forever, until the error shows up and tells you to stop π
π RETURN π
0 on success, else error+reason β like, it tells you what went wrong, we love a communicative king π
π¦ SEE ALSO π¦
Kernel file ./drivers/clk/zynqmp/clkc.c, plus this whole friend group:
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_attributes(9)__zynqmp_clock_get_topology(9)zynqmp_clock_get_topology(9)__zynqmp_clock_get_parents(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)
Heads up bestie: this page lives at./drivers/clk/zynqmp, it's dated October 2026, and it answers to the namezynqmp_pm_clock_get_parents(9). Screenshot it, memorize it, live by it π
That's the whole page, periodt. Go get those three parents πΈπ«Ά
π¦ 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