The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/include/sys/asynchio.h

Version: -  FREEBSD  -  FREEBSD-13-STABLE  -  FREEBSD-13-0  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  l41  -  OPENBSD  -  linux-2.6  -  MK84  -  PLAN9  -  xnu-8792 
SearchContext: -  none  -  3  -  10 

    1 /*      asynchio.h - Asynchronous I/O                   Author: Kees J. Bot
    2  *                                                              26 Jan 1995
    3  * This is just a fake async I/O library to be used for programs
    4  * written for Minix-vmd that must also run under standard Minix.
    5  * This limits the number of ugly #ifdefs somewhat.  The programs must
    6  * be restricted to performing just one service, of course.
    7  */
    8 #ifndef _SYS__ASYNCHIO_H
    9 #define _SYS__ASYNCHIO_H
   10 
   11 #ifndef _ANSI_H
   12 #include <ansi.h>
   13 #endif
   14 
   15 #include <sys/time.h>
   16 
   17 typedef struct {
   18         char    state;
   19         char    op;
   20         char    fd;
   21         char    req;
   22         void    *data;
   23         ssize_t count;
   24         int     errno;
   25 } asynchio_t;
   26 
   27 #define ASYN_NONBLOCK   0x01
   28 
   29 #define ASYN_INPROGRESS EINPROGRESS
   30 
   31 void asyn_init(asynchio_t *_asyn);
   32 ssize_t asyn_read(asynchio_t *_asyn, int _fd, void *_buf, size_t _len);
   33 ssize_t asyn_write(asynchio_t *_asyn, int _fd, const void *_buf, size_t _len);
   34 int asyn_ioctl(asynchio_t *_asyn, int _fd, unsigned long _request, void *_data);
   35 int asyn_wait(asynchio_t *_asyn, int _flags, struct timeval *to);
   36 int asyn_synch(asynchio_t *_asyn, int _fd);
   37 int asyn_close(asynchio_t *_asyn, int _fd);
   38 
   39 #endif /* _SYS__ASYNCHIO_H */

Cache object: 48e7d009c611ee06f4e47f473b381d44


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.