zynqmp_is_valid_clock(9)
π zynqmp_is_valid_clock(9) π
okay bestie, welcome to zynqmp_is_valid_clock(9) β that's the page name and the function name, we love a multitasker β¨ this one lives in the Kernel API Manual and it's literally here to answer one question: is this clock valid or not?? π΅οΈββοΈ
β¨ NAME β¨
zynqmp_is_valid_clock β check whether clock is valid or not π
π SYNOPSIS π
int zynqmp_is_valid_clock (u32 clk_id );
that's it. that's the whole vibe check. one argument, one int coming back at you π«Ά
πΈ ARGUMENTS πΈ
clk_idβ the clock index, aka the little number that tells you which clock we're interrogating π
β RETURN β
so here's the tea, and it's giving three-possible-outcomes energy:
- returns
1if the clock is valid β - returns
0if the clock is invalid β - otherwise you get an error code π (yes, "else" β that's the original wording and we're not about to improvise, fr fr)
π¦ SEE ALSO π¦
the whole clique, no cap β they all hang out in the kernel file ./drivers/clk/zynqmp/clkc.c:
struct clock_parent(9)struct zynqmp_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_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)
like, the entire friend group showed up to the function ππ
k bye bestie, go validate some clocks π
this iconic little page comes to you from ./drivers/clk/zynqmp, dated October 2026 (future queen behavior honestly π°οΈπ) β mwah, see you in the next man page πβ¨
π¦ 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