__clocksourc...gister_scale(9)
โจ __clocksourc...gister_scale(9) โจ
okay bestie, welcome to the Kernel API Manual ๐
this one lives in the kernel time zone, and we're about to talk about __clocksource_register_scale โ the lowkey iconic function that installs brand new clocksources ๐
๐ธ NAME ๐ธ
__clocksource_register_scale โ Used to install new clocksources ๐
๐ฆ SYNOPSIS ๐ฆ
int __clocksource_register_scale (struct clocksource *cs , u32 scale ,
u32 freq );
โจ ARGUMENTS โจ
csโ the clocksource that's getting registered, bestie. like, this is the one we're putting on the map ๐ซscaleโ the scale factor, and no cap, it gets multiplied againstfreqto get the clocksource hz ๐งฎfreqโ the clocksource frequency (cycles per second) divided byscaleโก
๐ DESCRIPTION ๐
Returns -EBUSY if registration fails, and zero otherwise. that's it, that's the whole mood ๐
๐จ This *SHOULD NOT* be called directly! ๐จ Please use theclocksource_register_hzorclocksource_register_khzhelper functions instead. i'm literally begging you, use the helpers ๐ซถ
๐ SEE ALSO ๐
Kernel file ./kernel/time/clocksource.c โ plus this whole squad of related functions, all in their (9) era ๐ฅ:
clocks_calc_mult_shift(9)clocksource_mark_unstable(9)clocksource_suspend_select(9)clocksource_start_suspend_timing(9)clocksource_stop_suspend_timing(9)clocksource_suspend(9)clocksource_resume(9)clocksource_touch_watchdog(9)clocksource_max_adjustment(9)clocks_calc_max_nsecs(9)clocksource_update_max_deferment(9)clocksource_select(9)__clocksource_update_freq_scale(9)clocksource_unregister(9)current_clocksource_show(9)current_clocksource_store(9)unbind_clocksource_store(9)available_clocksource_show(9)boot_override_clocksource(9)boot_override_clock(9)
and that's the whole page, bestie ๐ it came from ./kernel/time, dated October 2026 โ so go forth, register those clocksources the right way, 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