clocksource_mmio_init(9)
πΈ NAME πΈ
Bestie, welcome to the Kernel API Manual page for clocksource_mmio_init(9). This function does exactly what it says on the tin: clocksource_mmio_init initializes a simple mmio based clocksource. Thatβs the whole vibe. β¨
β¨ SYNOPSIS β¨
int clocksource_mmio_init (void __iomem *base , const char *name ,
unsigned long hz , int rating , unsigned bits , u64 (*read)(struct
clocksource *) );
Yep, thatβs the signature, character for character. π
π ARGUMENTS π
baseβ the virtual address of the clock readout register. Thatβs where the clocksource reads its little heart out. πnameβ the name of the clocksource. Give it a cute label, bestie. π·οΈhzβ the frequency of the clocksource, in Hz. π°οΈratingβ the rating of the clocksource. βbitsβ the number of valid bits. π’readβ one ofclocksource_mmio_read*()above. Itβs a function pointer with theu64 (*read)(struct clocksource *)shape. π
Lowkey important:readis literally one ofclocksource_mmio_read*()above. Donβt freelance this one. π
π¦ SEE ALSO π¦
- Kernel file
./drivers/clocksource/mmio.cβ the source file for this whole situation. π«Ά
π«Ά Cute lil sign-off: this pageβs source/version is ./drivers/clocksource, and itβs dated October 2026. Byeee, go initialize something simple. π
β¨
π¦ 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