STRUCT CLK_HW_OMAP(9)
π struct clk_hw_omap(9) β like, the OMAP struct clk π
okay bestie, welcome to the Kernel API Manual β¨ this one's all about struct clk_hw_omap, which is literally the OMAP version of a struct clk. lowkey iconic, highkey specific. let's get into it π«Ά
πΈ NAME πΈ
struct clk_hw_omap β the OMAP struct clk. that's it, that's the vibe π
β¨ SYNOPSIS β¨
here's the whole glow-up, member by member, no cap:
struct clk_hw_omap {
struct clk_hw hw;
struct list_head node;
unsigned long fixed_rate;
u8 fixed_div;
struct clk_omap_reg enable_reg;
u8 enable_bit;
unsigned long flags;
struct clk_omap_reg clksel_reg;
struct dpll_data *dpll_data;
const char *clkdm_name;
struct clockdomain *clkdm;
const struct clk_hw_omap_ops *ops;
u32 context;
int autoidle_count;
};
π Members π
the main characters, one by one π
nodeβ alist_headthat links this clock into the full clock list. it's giving "i know everybody at this party" energy π₯enable_regβ the register you write to when you wanna enable the clock (peepenable_bit). honestly the on switch π«Άenable_bitβ the bitshift you write to enable/disable the clock (peepenable_reg). tiny but powerful, fr fr πflagsβ see "struct clk.flagspossibilities" above. yes, above. go look πclksel_regβ forclkselclks, this is the register va holding the src/divisor select. very demure, very selector πΈdpll_dataβ for DPLLs, it's a pointer to thestruct dpll_datafor this clock. DPLL girlies stay winning πclkdm_nameβ the clockdomain name that this clock is contained in. name tag at the function πclkdmβ pointer to thestruct clockdomain, resolved fromclkdm_nameat runtime. so it's the actual domain, not just the name β character development β¨opsβ the clock ops for this clock. the whole personality tbh π¦
π SEE ALSO π
go read these next, i'm obsessed:
- Kernel file
./include/linux/clk/ti.h struct clk_omap_reg(9)struct dpll_data(9)struct clk_hw_omap_ops(9)struct ti_clk_ll_ops(9)
ok that's the whole page bestie, you ate that π stay curious, keep reading headers, and remember: theenable_bitis nothing without theenable_reg. iykyk π β¨
and finally, a lil sign-off π this cutie lives over in ./include/linux/clk, it's dated October 2026, and you can find it filed under struct clk_hw_omap(9). mwah ππ«Άπ·
π¦ 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