clk_register_divider_table(9)
β¨ clk_register_divider_table β¨
okay bestie, welcome to the Kernel API Manual page for clk_register_divider_table β itβs literally βregister a table based divider clock with the clock framework,β and weβre gonna go through every single arg together. no cap, nothing skipped π
π NAME π
clk_register_divider_table β register a table based divider clock with the clock framework. iconic clock-framework behavior, lowkey essential. π
π¦ SYNOPSIS π¦
okay so the whole call looks exactly like this, character for character:
struct clk * clk_register_divider_table (struct device *dev , const char *name , const char *parent_name , unsigned long flags , void __iomem *reg , u8 shift , u8 width , unsigned long clk_divider_flags , const struct clk_div_table *table , spinlock_t *lock );
π«Ά ARGUMENTS π«Ά
devβ device registering this clock. main character device energy.nameβ name of this clock. give it a cute little identity, bestie.parent_nameβ name of clockβs parent. family tree moment.flagsβ framework-specific flags. framework says what it says.regβ register address to adjust divider. this is the spot weβre messing with.shiftβ number of bits to shift the bitfield. bitfield shifting, very demure.widthβ width of the bitfield. how wide the bitfield is, periodt.clk_divider_flagsβ divider-specific flags for this clock. divider-specific, not framework-specific β important distinction, iykyk.tableβ array of divider/value pairs ending with adivset to0. donβt forget thatdivset to0ending, fr fr.lockβ shared register lock for this clock. shared register lock, keep it locked bestie.
π SEE ALSO π
peep the kernel file ./drivers/clk/clk-divider.c and also clk_hw_unregister_divider(9) β go browse, itβs giving related lore. π¦
π thatβs the whole page, bestie! source/version: ./drivers/clk; date: October 2026. now go register that table based divider clock and slay π
β¨
π¦ 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