event.h File Reference

API published in:
API deprecated in:


#include <sys/queue.h>
#include <sys/_lock.h>
#include <sys/_mutex.h>

Go to the source code of this file.


Data Structures

struct   kevent
struct   knlist

Defines

#define  EVFILT_READ   (-1)
#define  EVFILT_WRITE   (-2)
#define  EVFILT_AIO   (-3)
#define  EVFILT_VNODE   (-4)
#define  EVFILT_PROC   (-5)
#define  EVFILT_SIGNAL   (-6)
#define  EVFILT_TIMER   (-7)
#define  EVFILT_NETDEV   (-8)
#define  EVFILT_FS   (-9)
#define  EVFILT_SYSCOUNT   9
#define  EV_SET(kevp_, a, b, c, d, e, f)
#define  EV_ADD   0x0001
#define  EV_DELETE   0x0002
#define  EV_ENABLE   0x0004
#define  EV_DISABLE   0x0008
#define  EV_ONESHOT   0x0010
#define  EV_CLEAR   0x0020
#define  EV_SYSFLAGS   0xF000
#define  EV_FLAG1   0x2000
#define  EV_EOF   0x8000
#define  EV_ERROR   0x4000
#define  NOTE_LOWAT   0x0001
#define  NOTE_DELETE   0x0001
#define  NOTE_WRITE   0x0002
#define  NOTE_EXTEND   0x0004
#define  NOTE_ATTRIB   0x0008
#define  NOTE_LINK   0x0010
#define  NOTE_RENAME   0x0020
#define  NOTE_REVOKE   0x0040
#define  NOTE_EXIT   0x80000000
#define  NOTE_FORK   0x40000000
#define  NOTE_EXEC   0x20000000
#define  NOTE_PCTRLMASK   0xf0000000
#define  NOTE_PDATAMASK   0x000fffff
#define  NOTE_TRACK   0x00000001
#define  NOTE_TRACKERR   0x00000002
#define  NOTE_CHILD   0x00000004
#define  NOTE_LINKUP   0x0001
#define  NOTE_LINKDOWN   0x0002
#define  NOTE_LINKINV   0x0004

Define Documentation

#define EV_ADD   0x0001
 
#define EV_CLEAR   0x0020
 
#define EV_DELETE   0x0002
 
#define EV_DISABLE   0x0008
 
#define EV_ENABLE   0x0004
 
#define EV_EOF   0x8000
 
#define EV_ERROR   0x4000
 
#define EV_FLAG1   0x2000
 
#define EV_ONESHOT   0x0010
 
#define EV_SET kevp_,
a,
b,
c,
d,
e,
 ) 
 

Value:

do {    \
        struct kevent *kevp = (kevp_);          \
        (kevp)->ident = (a);                    \
        (kevp)->filter = (b);                   \
        (kevp)->flags = (c);                    \
        (kevp)->fflags = (d);                   \
        (kevp)->data = (e);                     \
        (kevp)->udata = (f);                    \
} while(0)
#define EV_SYSFLAGS   0xF000
 
#define EVFILT_AIO   (-3)
 
#define EVFILT_FS   (-9)
 
#define EVFILT_NETDEV   (-8)
 
#define EVFILT_PROC   (-5)
 
#define EVFILT_READ   (-1)
 
#define EVFILT_SIGNAL   (-6)
 
#define EVFILT_SYSCOUNT   9
 
#define EVFILT_TIMER   (-7)
 
#define EVFILT_VNODE   (-4)
 
#define EVFILT_WRITE   (-2)
 
#define NOTE_ATTRIB   0x0008
 
#define NOTE_CHILD   0x00000004
 
#define NOTE_DELETE   0x0001
 
#define NOTE_EXEC   0x20000000
 
#define NOTE_EXIT   0x80000000
 
#define NOTE_EXTEND   0x0004
 
#define NOTE_FORK   0x40000000
 
#define NOTE_LINK   0x0010
 
#define NOTE_LINKDOWN   0x0002
 
#define NOTE_LINKINV   0x0004
 
#define NOTE_LINKUP   0x0001
 
#define NOTE_LOWAT   0x0001
 
#define NOTE_PCTRLMASK   0xf0000000
 
#define NOTE_PDATAMASK   0x000fffff
 
#define NOTE_RENAME   0x0020
 
#define NOTE_REVOKE   0x0040
 
#define NOTE_TRACK   0x00000001
 
#define NOTE_TRACKERR   0x00000002
 
#define NOTE_WRITE   0x0002
 

Copyright © Nokia Corporation 2001-2008
Back to top