STRUCT CLOCKSOURCE_BASE(9)
π NAME π
Okay bestie, welcome to the Kernel API Manual page for struct clocksource_base(9) β¨ β it's literally the hardware abstraction for the clock on which a clocksource is based. No cap, it's giving foundation energy π
.
β¨ SYNOPSIS β¨
struct clocksource_base {
enum clocksource_ids id;
u32 freq_khz;
u64 offset;
u32 numerator;
u32 denominator;
};
π Members π
idβ Defaults toCSID_GENERICπ. Thisidvalue is used by conversion functions that require the current clocksource to be based on aclocksource_basewith a particular ID in certain snapshot functions, so callers can validate the clocksource from which the snapshot was taken. iykyk.freq_khzβ Nominal frequency of the base clock in kHz π©·.offsetβ Offset between the base clock and the clocksource πΈ.numeratorβ Numerator of the clock ratio between the base clock and the clocksource π«.denominatorβ Denominator of the clock ratio between the base clock and the clocksource π.
π SEE ALSO π
Peep the kernel file ./include/linux/clocksource.h struct clocksource_hw_snapshot(9) β plus these iconic little references:
struct clocksource(9)clocksource_khz2mult(9)clocksource_hz2mult(9)clocksource_cyc2ns(9)
Okay that's the whole page, bestie π. Signed, sealed, and slayed by source/version ./include/linux, dated October 2026, for struct clocksource_base(9) β now go be the main character of your clocksource era πβ¨π«Ά.
π¦ 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