On 11/07/2022 17:48:49-0700, Kevin Rowland wrote: > Hello, > > I'm curious if there's some mechanism in the kernel to bridge POSIX > timers (or the timerfd subsystem) and the alarmtimer feature. > The intent is to give userspace the ability to set timers that > (optionally) result in the system waking from suspend via RTC alarm. > > I was thinking about hacking together something myself in > `kernel/time/posix-timers.c`, but then found `alarmtimer.c` which, as > far as I can tell, is exposed only to the rest of the kernel. > > Any pointers welcome. > alarmtimers are POSIX timers, see https://lwn.net/Articles/429925/ Simply use the CLOCK_REALTIME_ALARM clockid > Best, > Kevin -- Alexandre Belloni, co-owner and COO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com