aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/timers.h
Commit message (Collapse)AuthorAgeFilesLines
* sys/sys: further adoption of SPDX licensing ID tags.Pedro F. Giffuni2017-11-271-0/+2
| | | | | | | | | | | | | | | Mainly focus on files that use BSD 2-Clause license, however the tool I was using misidentified many licenses so this was mostly a manual - error prone - task. The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts. Notes: svn path=/head/; revision=326256
* s/timer_t/int/gDavid Xu2006-03-011-1/+1
| | | | Notes: svn path=/head/; revision=156137
* Remove itimers_event_hook, now it is a private function in kern_time.c.David Xu2005-12-091-1/+0
| | | | Notes: svn path=/head/; revision=153263
* Let itimer store itimerspec instead of itimerval, so I don't have toDavid Xu2005-10-301-2/+2
| | | | | | | | | | | | | | | | | | | | | | convert to or from timeval frequently. Introduce function itimer_accept() to ack a timer signal in signal acceptance code, this allows us to return more fresh overrun counter than at signal generating time. while POSIX says: "the value returned by timer_getoverrun() shall apply to the most recent expiration signal delivery or acceptance for the timer,.." I prefer returning it at acceptance time. Introduce SIGEV_THREAD_ID notification mode, it is used by thread libary to request kernel to deliver signal to a specified thread, and in turn, the thread library may use the mechanism to implement SIGEV_THREAD which is required by POSIX. Timer signal is managed by timer code, so it can not fail even if signal queue is full filled by sigqueue syscall. Notes: svn path=/head/; revision=151869
* Make p_itimers as a pointer, so file sys/proc.h does not need to includeDavid Xu2005-10-231-2/+2
| | | | | | | sys/timers.h. Notes: svn path=/head/; revision=151585
* Make kernel structures invisible to userland.David Xu2005-10-231-1/+4
| | | | Notes: svn path=/head/; revision=151581
* Implement POSIX timers. Current only CLOCK_REALTIME and CLOCK_MONOTONICDavid Xu2005-10-231-2/+75
| | | | | | | | | | | | | | | clock are supported. I have plan to merge XSI timer ITIMER_REAL and other two CPU timers into the new code, current three slots are available for the XSI timers. The SIGEV_THREAD notification type is not supported yet because our sigevent struct lacks of two member fields: sigev_notify_function sigev_notify_attributes I have found the sigevent is used in AIO, so I won't add the two members unless the AIO code is adjusted. Notes: svn path=/head/; revision=151576
* /* -> /*- for license, minor formatting changesWarner Losh2005-01-071-1/+1
| | | | Notes: svn path=/head/; revision=139825
* $Id$ -> $FreeBSD$Peter Wemm1999-08-281-1/+1
| | | | Notes: svn path=/head/; revision=50477
* Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$. We are notPeter Wemm1997-02-221-1/+1
| | | | | | | ready for it yet. Notes: svn path=/head/; revision=22975
* Make the long-awaited change from $Id$ to $FreeBSD$Jordan K. Hubbard1997-01-141-1/+1
| | | | | | | | | | | This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise. Notes: svn path=/head/; revision=21673
* Obtained from: uthreads packageJulian Elischer1996-01-221-0/+42
Notes: svn path=/head/; revision=13549