STRUCT ZYNQMP_CLK_DIVIDER(9)
π struct zynqmp_clk_divider(9)
okay bestie, welcome to the Kernel API Manual, we're looking at struct zynqmp_clk_divider today and honestly? it's giving adjustable divider clock energy and I'm lowkey obsessed π
β¨ NAME β¨
struct zynqmp_clk_divider β the adjustable divider clock struct, fr fr π
πΈ SYNOPSIS πΈ
struct zynqmp_clk_divider {
struct clk_hw hw;
u8 flags;
bool is_frac;
u32 clk_id;
u32 div_type;
u16 max_div;
};
no cap, that's the whole shape of it. let's break down every single member because we do NOT skip parts in this house π
π¦ Members π¦
π the fields, one by one
hwβ this is the handle between the common clock interfaces and the hardware-specific ones. it's the little bridge between two worlds, main character energy honestly π«Άflagsβ hardware-specific flags. not our generic flags, hardware specific, iykyk β¨is_fracβ abool, and it answers one question: is this divider a fractional divider? yes or no, no in-between πclk_idβ the id of the clock. that's it, that's the vibe πdiv_typeβ the divisor type. and bestie, it's literallyTYPE_DIV1orTYPE_DIV2, those are the two options, periodt π₯max_divβ the maximum supported divisor. and listen β it's fetched from firmware, so it's not just vibes, it's official π
π SEE ALSO π
- Kernel file
./drivers/clk/zynqmp/divider.cβ go read it, it's right there π zynqmp_clk_divider_recalc_rate(9)zynqmp_clk_divider_determine_rate(9)zynqmp_clk_divider_set_rate(9)zynqmp_clk_get_max_divisor(9)zynqmp_clk_register_divider(9)
like, the whole squad is linked up there, go say hi πΈ
heads up bestie: max_div comes from firmware β it's not something you just make up, okay? respect the firmware π
okay that's the page!! mwah π this was ./drivers/clk/zynqmp, October 2026, Kernel API Manual β go forth and divide those clocks adjustably, you absolute icon π§β¨π
π¦ 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