zynqmp_pm_cl...t_num_clocks(9)
π zynqmp_pm_clock_get_num_clocks β a Kernel API Manual moment β¨
okay so this is from the Kernel API Manual, and bestie, the function is literally called zynqmp_pm_clock_get_num_clocks. say it with me. iconic name, no notes. π
πΈ NAME πΈ
zynqmp_pm_clock_get_num_clocks β get the number of clocks in the system, that's it, that's the whole vibe πβ¨
π¦ SYNOPSIS π¦
int zynqmp_pm_clock_get_num_clocks (u32 *nclocks );
like, you hand it a pointer and it hands you back a count. simple. clean. slay. π
π ARGUMENTS π
nclocksβ the number of clocks in the system/board. that's the whole parameter, she's a one-job queen and she does her job π
π DESCRIPTION π
so what actually happens? it calls the firmware API to get the number of clocks. that's the entire plot, no plot twists, no subplots. it's giving "short and sweet" and honestly? obsessed. π§β¨
π₯ RETURN π₯
0 on success, else an error code. so if you get 0, congrats bestie you ate π and if you don't, wellβ¦ that's an error code, read it and weep π
β SEE ALSO β
the kernel file lives at ./drivers/clk/zynqmp/clkc.c bestie, go read it, it's got lore π
and then the whole friend group, in the order the page gives them:
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_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)
ngl this page is short but she's efficient, and efficient is a whole aesthetic π«Ά
and that's the tea π β this one came out of ./drivers/clk/zynqmp, dated October 2026, and it lives in the Kernel API Manual. mwah, bye 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