uv_mmtimer_ioctl(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 uv_mmtimer_ioctl(9) 🌸

okay bestie, welcome to the Kernel API Manual β€” this is the page for uv_mmtimer_ioctl, literally the ioctl interface for /dev/uv_mmtimer ✨


πŸ’… SYNOPSIS πŸ’…

long uv_mmtimer_ioctl (struct file *file , unsigned int cmd , unsigned long arg );

🫢 ARGUMENTS 🫢

  • file β€” the file structure for the device, bestie πŸŽ€
  • cmd β€” the command to execute, no cap
  • arg β€” optional argument to the command

🌈 DESCRIPTION 🌈

So this function executes the command specified by cmd. It returns 0 for success and < 0 for failure β€” slay πŸ’…

Valid commands are giving iconic:

  • MMTIMER_GETOFFSET β€” Should return the offset (relative to the start of the page where the registers are mapped) for the counter in question 🧚
  • MMTIMER_GETRES β€” Returns the resolution of the clock in femto (10^-15) seconds ⭐
  • MMTIMER_GETFREQ β€” Copies the frequency of the clock in Hz to the address specified by arg πŸ”₯
  • MMTIMER_GETBITS β€” Returns the number of bits in the clock's counter πŸ’œ
  • MMTIMER_MMAPAVAIL β€” Returns 1 if registers can be mmap'd into userspace πŸ¦‹
  • MMTIMER_GETCOUNTER β€” Gets the current value in the counter and places it in the address specified by arg πŸŽ€

πŸ‘‘ SEE ALSO πŸ‘‘

Kernel file ./drivers/char/uv_mmtimer.c uv_mmtimer_mmap(9), uv_mmtimer_init(9) β€” go read those too, iykyk 🌸


xoxo, signed off by the Kernel API Manual besties β€” source/version line: ./drivers/char; date: October 2026 πŸŽ€βœ¨πŸ’–

πŸ“¦ where this page comes from