__clocksourc...gister_scale(9)

๐Ÿ“ฆ version 7.3.1, in nixpkgs unstable

โœจ __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 against freq to get the clocksource hz ๐Ÿงฎ
  • freq โ€” the clocksource frequency (cycles per second) divided by scale โšก

๐Ÿ’– 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 the clocksource_register_hz or clocksource_register_khz helper 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 ๐Ÿ”ฅ:


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