source: rtems-docs/posix_users/timer.rst @ 9aafb39

4.115
Last change on this file since 9aafb39 was 489740f, checked in by Chris Johns <chrisj@…>, on 05/20/16 at 02:47:09

Set SPDX License Identifier in each source file.

  • Property mode set to 100644
File size: 2.6 KB
Line 
1.. comment SPDX-License-Identifier: CC-BY-SA-4.0
2
3.. COMMENT: COPYRIGHT(c) 1988-2002.
4.. COMMENT: On-Line Applications Research Corporation(OAR).
5.. COMMENT: All rights reserved.
6
7Timer Manager
8#############
9
10Introduction
11============
12
13The timer manager is ...
14
15The services provided by the timer manager are:
16
17- timer_create_ - Create a Per-Process Timer
18
19- timer_delete_ - Delete a Per-Process Timer
20
21- timer_settime_ - Set Next Timer Expiration
22
23- timer_gettime_ - Get Time Remaining on Timer
24
25- timer_getoverrun_ - Get Timer Overrun Count
26
27Background
28==========
29
30Operations
31==========
32
33System Calls
34============
35
36This section details the timer manager's services.  A subsection is dedicated
37to each of this manager's services and describes the calling sequence, related
38constants, usage, and status codes.
39
40.. COMMENT: timer_create
41
42.. _timer_create:
43
44timer_create - Create a Per-Process Timer
45-----------------------------------------
46
47**CALLING SEQUENCE:**
48
49.. code-block:: c
50
51    #include <time.h>
52    #include <signal.h>
53    int timer_create(
54        clockid_t        clock_id,
55        struct sigevent *evp,
56        timer_t         *timerid
57    );
58
59**STATUS CODES:**
60
61``EXXX`` -
62
63**DESCRIPTION:**
64
65**NOTES:**
66
67.. COMMENT: timer_delete
68
69.. _timer_delete:
70
71timer_delete - Delete a Per-Process Timer
72-----------------------------------------
73
74**CALLING SEQUENCE:**
75
76.. code-block:: c
77
78    #include <time.h>
79    int timer_delete(
80        timer_t timerid
81    );
82
83**STATUS CODES:**
84
85``EXXX`` -
86
87**DESCRIPTION:**
88
89**NOTES:**
90
91.. COMMENT: timer_settime
92
93.. _timer_settime:
94
95timer_settime - Set Next Timer Expiration
96-----------------------------------------
97
98**CALLING SEQUENCE:**
99
100.. code-block:: c
101
102    #include <time.h>
103    int timer_settime(
104        timer_t                  timerid,
105        int                      flags,
106        const struct itimerspec *value,
107        struct itimerspec       *ovalue
108    );
109
110**STATUS CODES:**
111
112``EXXX`` -
113
114**DESCRIPTION:**
115
116**NOTES:**
117
118.. COMMENT: timer_gettime
119
120.. _timer_gettime:
121
122timer_gettime - Get Time Remaining on Timer
123-------------------------------------------
124
125**CALLING SEQUENCE:**
126
127.. code-block:: c
128
129    #include <time.h>
130    int timer_gettime(
131        timer_t            timerid,
132        struct itimerspec *value
133    );
134
135**STATUS CODES:**
136
137``EXXX`` -
138
139**DESCRIPTION:**
140
141**NOTES:**
142
143.. COMMENT: timer_getoverrun
144
145.. _timer_getoverrun:
146
147timer_getoverrun - Get Timer Overrun Count
148------------------------------------------
149
150**CALLING SEQUENCE:**
151
152.. code-block:: c
153
154    #include <time.h>
155    int timer_getoverrun(
156        timer_t   timerid
157    );
158
159**STATUS CODES:**
160
161``EXXX`` -
162
163**DESCRIPTION:**
164
165**NOTES:**
Note: See TracBrowser for help on using the repository browser.