CVSROOT: /cvs
Module name: src
Changes by: [email protected] 2023/09/09 21:08:05
Modified files:
sys/sys : clockintr.h sched.h time.h resourcevar.h
sys/kern : kern_clockintr.c kern_sched.c sched_bsd.c
kern_time.c subr_prof.c
Log message:
clockintr: support an arbitrary callback function argument
Callers can now provide an argument pointer to clockintr_establish().
The pointer is kept in a new struct clockintr member, cl_arg. The
pointer is passed as the third parameter to clockintr.cl_func when it
is executed during clockintr_dispatch(). Like the callback function,
the callback argument is immutable after the clockintr is established.
At present, nothing uses this. All current clockintr_establish()
callers pass a NULL arg pointer. However, I am confident that dt(4)'s
profile provider will need this in the near future.
Requested by dlg@ back in March.