Changeset 8b8d05f in rtems


Ignore:
Timestamp:
Oct 26, 2016, 11:50:56 AM (3 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
505eb55
Parents:
fc718cb
git-author:
Sebastian Huber <sebastian.huber@…> (10/26/16 11:50:56)
git-committer:
Sebastian Huber <sebastian.huber@…> (10/26/16 12:05:44)
Message:

sys/event.h: Update to FreeBSD head 2016-06-27

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libcsupport/include/sys/event.h

    rfc718cb r8b8d05f  
    2424 * SUCH DAMAGE.
    2525 *
    26  * $FreeBSD$
     26 * $FreeBSD: head/sys/sys/event.h 302242 2016-06-27 23:34:53Z kib $
    2727 */
    2828
     
    3939#define EVFILT_SIGNAL           (-6)    /* attached to struct proc */
    4040#define EVFILT_TIMER            (-7)    /* timers */
    41 /*      EVFILT_NETDEV           (-8)       no longer supported */
     41#define EVFILT_PROCDESC         (-8)    /* attached to process descriptors */
    4242#define EVFILT_FS               (-9)    /* filesystem events */
    4343#define EVFILT_LIO              (-10)   /* attached to lio requests */
    4444#define EVFILT_USER             (-11)   /* User events */
    45 #define EVFILT_SYSCOUNT         11
     45#define EVFILT_SENDFILE         (-12)   /* attached to sendfile requests */
     46#define EVFILT_SYSCOUNT         12
    4647
    4748#define EV_SET(kevp_, a, b, c, d, e, f) do {    \
     
    6970#define EV_ENABLE       0x0004          /* enable event */
    7071#define EV_DISABLE      0x0008          /* disable event (not reported) */
     72#define EV_FORCEONESHOT 0x0100          /* enable _ONESHOT and force trigger */
    7173
    7274/* flags */
     
    7981#define EV_DROP         0x1000          /* note should be dropped */
    8082#define EV_FLAG1        0x2000          /* filter-specific flag */
     83#define EV_FLAG2        0x4000          /* filter-specific flag */
    8184
    8285/* returned values */
     
    107110 */
    108111#define NOTE_LOWAT      0x0001                  /* low water mark */
     112#define NOTE_FILE_POLL  0x0002                  /* behave like poll() */
    109113
    110114/*
     
    118122#define NOTE_RENAME     0x0020                  /* vnode was renamed */
    119123#define NOTE_REVOKE     0x0040                  /* vnode access was revoked */
    120 
    121 /*
    122  * data/hint flags for EVFILT_PROC, shared with userspace
     124#define NOTE_OPEN       0x0080                  /* vnode was opened */
     125#define NOTE_CLOSE      0x0100                  /* file closed, fd did not
     126                                                   allowed write */
     127#define NOTE_CLOSE_WRITE 0x0200                 /* file closed, fd did allowed
     128                                                   write */
     129#define NOTE_READ       0x0400                  /* file was read */
     130
     131/*
     132 * data/hint flags for EVFILT_PROC and EVFILT_PROCDESC, shared with userspace
    123133 */
    124134#define NOTE_EXIT       0x80000000              /* process exited */
     
    132142#define NOTE_TRACKERR   0x00000002              /* could not track child */
    133143#define NOTE_CHILD      0x00000004              /* am a child process */
     144
     145/* additional flags for EVFILT_TIMER */
     146#define NOTE_SECONDS            0x00000001      /* data is seconds */
     147#define NOTE_MSECONDS           0x00000002      /* data is milliseconds */
     148#define NOTE_USECONDS           0x00000004      /* data is microseconds */
     149#define NOTE_NSECONDS           0x00000008      /* data is nanoseconds */
    134150
    135151struct knote;
     
    143159        void    (*kl_assert_locked)(void *);
    144160        void    (*kl_assert_unlocked)(void *);
    145         void *kl_lockarg;               /* argument passed to kl_lockf() */
     161        void    *kl_lockarg;            /* argument passed to lock functions */
     162        int     kl_autodestroy;
    146163};
    147164
    148165
    149166#ifdef _KERNEL
    150 
    151 #ifdef MALLOC_DECLARE
    152 MALLOC_DECLARE(M_KQUEUE);
    153 #endif
    154167
    155168/*
     
    217230                struct          file *p_fp;     /* file data pointer */
    218231                struct          proc *p_proc;   /* proc pointer */
    219                 struct          aiocblist *p_aio;       /* AIO job pointer */
    220                 struct          aioliojob *p_lio;       /* LIO job pointer */
     232                struct          kaiocb *p_aio;  /* AIO job pointer */
     233                struct          aioliojob *p_lio;       /* LIO job pointer */
     234                sbintime_t      *p_nexttime;    /* next timer event fires at */
     235                void            *p_v;           /* generic other pointer */
    221236        } kn_ptr;
    222237        struct                  filterops *kn_fop;
     
    241256struct knlist;
    242257struct mtx;
     258struct rwlock;
    243259
    244260extern void     knote(struct knlist *list, long hint, int lockflags);
    245261extern void     knote_fork(struct knlist *list, int pid);
     262extern struct knlist *knlist_alloc(struct mtx *lock);
     263extern void     knlist_detach(struct knlist *knl);
    246264extern void     knlist_add(struct knlist *knl, struct knote *kn, int islocked);
    247265extern void     knlist_remove(struct knlist *knl, struct knote *kn, int islocked);
    248 extern void     knlist_remove_inevent(struct knlist *knl, struct knote *kn);
    249266extern int      knlist_empty(struct knlist *knl);
    250267extern void     knlist_init(struct knlist *knl, void *lock,
     
    252269    void (*kl_assert_locked)(void *), void (*kl_assert_unlocked)(void *));
    253270extern void     knlist_init_mtx(struct knlist *knl, struct mtx *lock);
     271extern void     knlist_init_rw_reader(struct knlist *knl, struct rwlock *lock);
    254272extern void     knlist_destroy(struct knlist *knl);
    255273extern void     knlist_cleardel(struct knlist *knl, struct thread *td,
Note: See TracChangeset for help on using the changeset viewer.