uv_mmtimer_ioctl(9)
πΈ 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 capargβ 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 byargπ₯MMTIMER_GETBITSβ Returns the number of bits in the clock's counter πMMTIMER_MMAPAVAILβ Returns1if registers can bemmap'dinto userspace π¦MMTIMER_GETCOUNTERβ Gets the current value in the counter and places it in the address specified byargπ
π 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
- 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