Xenomai API  2.5.6.1
ksrc/nucleus/select.c File Reference

file descriptors events multiplexing. More...

Include dependency graph for select.c:

Functions

void xnselect_init (struct xnselect *select_block)
 Initialize a struct xnselect structure.
int xnselect_bind (struct xnselect *select_block, struct xnselect_binding *binding, struct xnselector *selector, unsigned type, unsigned index, unsigned state)
 Bind a file descriptor (represented by its xnselect structure) to a selector block.
void xnselect_destroy (struct xnselect *select_block)
 Destroy the xnselect structure associated with a file descriptor.
int xnselector_init (struct xnselector *selector)
 Initialize a selector structure.
int xnselect (struct xnselector *selector, fd_set *out_fds[XNSELECT_MAX_TYPES], fd_set *in_fds[XNSELECT_MAX_TYPES], int nfds, xnticks_t timeout, xntmode_t timeout_mode)
 Check the state of a number of file descriptors, wait for a state change if no descriptor is ready.
void xnselector_destroy (struct xnselector *selector)
 Destroy a selector block.

Detailed Description

file descriptors events multiplexing.

Author:
Gilles Chanteperdrix

Copyright (C) 2008 Efixo <[email protected]>

Xenomai is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

Xenomai is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with Xenomai; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines