Lines 27-33
Link Here
|
27 |
.\" |
27 |
.\" |
28 |
.\" $FreeBSD$ |
28 |
.\" $FreeBSD$ |
29 |
.\" |
29 |
.\" |
30 |
.Dd July 15, 2016 |
30 |
.Dd September 22, 2021 |
31 |
.Dt TIMER_CREATE 2 |
31 |
.Dt TIMER_CREATE 2 |
32 |
.Os |
32 |
.Os |
33 |
.Sh NAME |
33 |
.Sh NAME |
Lines 75-93
This structure,
Link Here
|
75 |
allocated by the application, defines the asynchronous notification to occur |
75 |
allocated by the application, defines the asynchronous notification to occur |
76 |
when the timer expires. |
76 |
when the timer expires. |
77 |
.Pp |
77 |
.Pp |
78 |
If |
78 |
The |
79 |
.Fa evp->sigev_notify |
79 |
.Fa evp->sigev_notify |
80 |
is |
80 |
field specifies the notification method used when the event triggers, see |
81 |
.Dv SIGEV_SIGNO |
81 |
.Xr sigevent 3 . |
82 |
or |
82 |
.Pp |
83 |
.Dv SIGEV_THREAD_ID , |
|
|
84 |
the signal specified in |
85 |
.Fa evp->sigev_signo |
86 |
will be sent to the calling process |
87 |
.Pq Dv SIGEV_SIGNO |
88 |
or to the thread whose LWP ID is |
89 |
.Fa evp->sigev_notify_thread_id |
90 |
.Pq Dv SIGEV_THREAD_ID . |
91 |
The information for the queued signal will include: |
83 |
The information for the queued signal will include: |
92 |
.Bl -column ".Va si_value" |
84 |
.Bl -column ".Va si_value" |
93 |
.It Sy Member Ta Sy Value |
85 |
.It Sy Member Ta Sy Value |
Lines 118-136
member having the value
Link Here
|
118 |
.Dv SIGEV_SIGNAL , |
110 |
.Dv SIGEV_SIGNAL , |
119 |
the |
111 |
the |
120 |
.Va sigev_signo |
112 |
.Va sigev_signo |
121 |
having a default signal number |
113 |
having a default signal number, |
122 |
.Pq Dv SIGALRM , |
|
|
123 |
and the |
114 |
and the |
124 |
.Va sigev_value |
115 |
.Va sigev_value |
125 |
member having |
116 |
member having |
126 |
the value of the timer ID. |
117 |
the value of the timer ID. |
127 |
.Pp |
118 |
.Pp |
128 |
This implementation supports a |
119 |
This implementation supports the |
|
|
120 |
.Tn POSIX |
129 |
.Fa clock_id |
121 |
.Fa clock_id |
130 |
of |
122 |
values |
131 |
.Dv CLOCK_REALTIME |
123 |
.Dv CLOCK_MONOTONIC , |
132 |
or |
124 |
.Dv CLOCK_REALTIME , |
133 |
.Dv CLOCK_MONOTONIC . |
125 |
.Dv CLOCK_THREAD_CPUTIME_ID , |
|
|
126 |
and |
127 |
.Dv CLOCK_PROCESS_CPUTIME_ID . |
128 |
There are also a number of |
129 |
.Fx |
130 |
specific values, see |
131 |
.Xr clock_getres 2 . |
132 |
.Pp |
133 |
The default signal value when |
134 |
.Fa evp |
135 |
is |
136 |
.Dv NULL |
137 |
depends on the value of |
138 |
.Fa clock_id . |
139 |
For |
140 |
.Dv CLOCK_VIRTUAL , |
141 |
the default signal is |
142 |
.Dv SIGVTALRM . |
143 |
For |
144 |
.Dv CLOCK_PROF , |
145 |
the default signal is |
146 |
.Dv SIGPROF . |
147 |
For all other values, the default signal is |
148 |
.Dv SIGALRM . |
134 |
.Pp |
149 |
.Pp |
135 |
If |
150 |
If |
136 |
.Fa evp->sigev_notify |
151 |
.Fa evp->sigev_notify |