kernel - Add EVFILT_USER
authorMatthew Dillon <dillon@apollo.backplane.com>
Mon, 18 Aug 2014 21:04:44 +0000 (14:04 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Mon, 18 Aug 2014 21:04:44 +0000 (14:04 -0700)
commit13d2f99beae0359393aecfc1eece839cea651547
tree0e715dc364cb35615bc0802c8573b25ad924147e
parent7cc2698dbb58c2016b718fc1e8a6fe19bacf1db0
kernel - Add EVFILT_USER

* Bring in EVFILT_USER support from FreeBSD.  Document the hacked use of
  EV_CLEAR.

* Implemented a bit differently.  Currently not implemented as another
  filter callback.  Instead we explicitly test for user_filtops, which
  isn't as messy (at least until some other kqueue feature needs the 'touch'
  interface).

Taken-From: FreeBSD
sys/kern/kern_event.c
sys/sys/event.h
test/debug/evfilt_user.c [new file with mode: 0644]