Lines Matching +full:user +full:- +full:defined
8 port_send, port_sendn \- send a user-defined event to a port or list of ports
14 \fBint\fR \fBport_send\fR(\fBint\fR \fIport\fR, \fBint\fR \fIevents\fR, \fBvoid *\fR\fIuser\fR);
20 \fBint\fR \fIevents\fR, \fBvoid *\fR\fIuser\fR);
26 The \fBport_send()\fR function submits a user-defined event to a specified
30 specified in the \fIuser\fR parameter. The \fBportev_object\fR member of an
34 The \fBport_sendn()\fR function submits a user-defined event to multiple ports.
40 the value specified in the \fIuser\fR parameter. The \fBportev_object\fR
55 events. A non-negative return value less than the \fInent\fR argument
74 \fBprocess.max-port-events\fR resource control at the time
128 \fBExample 1 \fRUse \fBport_send()\fR to send a user event (PORT_SOURCE_USER)
132 The following example uses \fBport_send()\fR to send a user event
135 structure are the same as the corresponding user and events arguments of the
147 void *user;
157 user = <my_own_value>;
158 ret = port_send(myport, events, user);
159 if (ret == -1) {
170 timeout.tv_sec = 1; /* user defined */
173 if (ret == -1) {
176 * - EINTR or ETIME : log error code and try again ...
177 * - Other kind of errors : may have to close the port ...
217 MT-Level Async-Signal-Safe