clocksource_mmio_init(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 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 of clocksource_mmio_read*() above. It’s a function pointer with the u64 (*read)(struct clocksource *) shape. πŸ‘€
Lowkey important: read is literally one of clocksource_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