Lines Matching defs:source

104  * port_associate_ksource(): associate a kernel event source with a port
105 * port_dissociate_ksource(): dissociate a kernel event source from a port
123 * Every event source implements an own method to generate events for a port:
141 * PORT_SOURCE_AIO event source. It also uses the sigevent structure
147 * incremented. The timer event source uses a callback function to
151 * This event source uses the port_associate() function to allocate
178 * This event source uses the port_associate() interface to register
196 * - the event source cancel the event,
278 * - event source management (managed by the port_source_t structure)
285 * 1. Event source association with a port:
288 * port_ksource_tab[]. An event source can get dissociated from a port
290 * port_ksource_tab[] implies that the source will be associated
292 * The event source can deliver a callback function, which is used by the
293 * port to notify the event source about close(2). The idea is that
294 * in such a case the event source should free all allocated resources
298 * The callback function is not necessary when the event source does not
299 * maintain local resources, a second condition is that the event source
305 * (allocation of an event structure) by the event source as part of the
307 * the event source can return a corresponding error code to the application.
318 * source. This kind of slots can not be used for
320 * by the event source.
325 * source. The event source takes the control over
331 * event data to the port. Event source has to use the function
338 * The event source can deliver a callback function to the port as an
345 * slot becomes free or it is delivered back to the event source
347 * is at the same time the indicator for the event source that the event
362 * The global queue lock is used every time when an event source delivers
369 * - the event source can free all allocated resources associated with the
371 * - the event source can re-use the current event slot/structure
372 * - the event source can deny the delivery of the event to the application
839 * a particular source with a port is because of performance.
865 /* associate new source with the port */
881 * The port_send() function sends an event of type "source" to a
894 port_send(port_t *pp, int source, int events, void *user)
899 error = port_alloc_event_local(pp, source, PORT_ALLOC_DEFAULT, &pev);
942 port_dispatch_event(port_t *pp, int opcode, int source, int events,
948 error = port_alloc_event_block(pp, source, PORT_ALLOC_DEFAULT, &pev);
1567 * 2. PORT_KEV_WIRED event structures will be reused by the "source"
1571 * 5. The event source callback function is the last opportunity for the
1572 * event source to update events, to free local resources associated with
1592 * event source.
1622 * 2. PORT_KEV_WIRED event structures will be reused by the "source"
1626 * 5. The event source callback function is the last opportunity for the
1627 * event source to update events, to free local resources associated with
1647 * sub-system (source).