Up to [cvs.NetBSD.org] / src / sys / kern
Request diff between arbitrary revisions
Default branch: MAIN
Current tag: thorpej-cfargs
Revision 1.534.2.1 / (download) - annotate - [select for diffs], Sat Apr 3 21:45:00 2021 UTC (3 years ago) by thorpej
Branch: thorpej-cfargs
Changes since 1.534: +5 -2
lines
Diff to previous 1.534 (colored) next main 1.535 (colored)
Sync with HEAD.
Revision 1.534 / (download) - annotate - [select for diffs], Sat Dec 5 18:17:01 2020 UTC (3 years, 4 months ago) by thorpej
Branch: MAIN
Branch point for: thorpej-cfargs
Changes since 1.533: +4 -7
lines
Diff to previous 1.533 (colored)
Refactor interval timers to make it possible to support types other than the BSD/POSIX per-process timers: - "struct ptimer" is split into "struct itimer" (common interval timer data) and "struct ptimer" (per-process timer data, which contains a "struct itimer"). - Introduce a new "struct itimer_ops" that supplies information about the specific kind of interval timer, including it's processing queue, the softint handle used to schedule processing, the function to call when the timer fires (which adds it to the queue), and an optional function to call when the CLOCK_REALTIME clock is changed by a call to clock_settime() or settimeofday(). - Rename some fuctions to clearly identify what they're operating on (ptimer vs itimer). - Use kmem(9) to allocate ptimer-related structures, rather than having dedicated pools for them. Welcome to NetBSD 9.99.77.