STRUCT SAMSUNG_DIV_CLOCK(9)
π
struct samsung_div_clock β information about div clock
okay so bestie, welcome to the Kernel API Manual page for struct samsung_div_clock(9) β it's giving "tiny struct, big responsibilities" and honestly? iconic. Let's get into it β¨
β¨ NAME β¨
struct samsung_div_clock β information about div clock
no cap, that's literally the whole vibe: this struct holds the info about a div clock π
πΈ SYNOPSIS πΈ
struct samsung_div_clock {
unsigned int id;
const char *name;
const char *parent_name;
unsigned long flags;
unsigned long offset;
u8 shift;
u8 width;
u8 div_flags;
struct clk_div_table *table;
};
look at her π«Ά every field accounted for, not one dropped, we love a complete queen π
π¦ Members π¦
idβ the platform specific id of the clock, iykyk πnameβ name of this div clock, like her government name πparent_nameβ name of the parent clock, aka who she came from πΈflagsβ optional flags for basic clock, the little extras β¨offsetβ offset of the register for configuring the div, i.e. where in the register map she lives πshiftβ starting bit location of the div control bit-field in reg, the exact bit where the drama starts π―widthβ width of the bitfield, how many bits she's taking up, main character energy fr fr πdiv_flagsβ flags for div-type clock, her own special set of flags πtableβ array of divider/value pairs ending with a div set to 0 π₯
bestie pls note: thattableis an array of divider/value pairs, and it ends with a div set to0. That terminator is not optional β it's the whole "stop reading here" moment π
π SEE ALSO π
Kernel file ./drivers/clk/samsung/clk.h plus all her friends in the clk squad:
struct samsung_clk_provider(9)struct samsung_clock_alias(9)struct samsung_fixed_rate_clock(9)struct samsung_fixed_factor_clock(9)struct samsung_mux_clock(9)struct samsung_gate_clock(9)struct samsung_clk_reg_dump(9)struct samsung_pll_clock(9)struct samsung_cmu_info(9)
and that's the whole page, bestie π§ mwah π this one lives in ./drivers/clk/samsung, dated October 2026 β go forth and configure those dividers responsibly πβ
π¦ 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