clocksource_hz2mult(9)
π clocksource_hz2mult(9) π
okay bestie, welcome to the Kernel API Manual side of the group chat. this page is short, sweet, and lowkey iconic: it's all about converting a hz frequency into a multiplier. no cap.
β¨ NAME β¨
clocksource_hz2mult β calculates mult from hz and shift.
π¦ SYNOPSIS π¦
u32 clocksource_hz2mult (u32 hz , u32 shift_constant );
keep that signature exactly as-is, spaces and all, iykyk.
π ARGUMENTS π
hzβ Clocksource frequency in Hz.shift_constantβ Clocksource shift factor.
πΈ DESCRIPTION πΈ
okay so these helper functions convert a hz counter frequency into a timsource multiplier, given the clocksource shift value. that's the whole vibe check, periodt.
π₯ SEE ALSO π₯
the extended universe, fr fr:
- Kernel file
./include/linux/clocksource.h struct clocksource_hw_snapshot(9)struct clocksource(9)clocksource_khz2mult(9)clocksource_cyc2ns(9)struct clocksource_base(9)
later bestie π
β¨ β source/version: ./include/linux, dated October 2026. π«Ά
π¦ 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