TIMER_CREATESection: Linux Programmer's Guide (2)
Index Return to Main Contents
NAMEtimer_create - Create a POSIX.1b interval timer clock
- long sys_timer_create (clockid_t which_clock, struct sigevent *timer_event_spec, timer_t *created_timer_id);
timer_create creates a POSIX.1b interval timer, pointed to by created_timer_id, using the which_clock format. The timer_event_spec points to a sigevent structure if non-NULL. The sigevent structure defines the asynchronous notification that occurs when the timer expires.
The values that clockid_t currently supports for POSIX.1b timers, as defined in include/linux.time.h, are:
- Systemwide realtime clock.
- Represents monotonic time. Cannot be set.
- High resolution per-process timer.
- Thread-specific timer.
- An invalid which_clock value was specified.
- The system could not process the request.
- An invalid timer_event_spec value was specified.
This document was created by man2html, using the manual pages.
Time: 05:33:05 GMT, December 24, 2015