1 /* Copyright (c) 2015 Google Inc
2 * Barret Rhoden <brho@cs.berkeley.edu>
3 * See LICENSE for details.
5 * FD taps. Allows the user to receive events when certain things happen to an
6 * FD's underlying disk/device file. */
10 #include <ros/fdtap.h>
11 #include <sys/queue.h>
19 SLIST_HEAD(fdtap_slist, fd_tap);
22 SLIST_ENTRY(fd_tap) link; /* for device use */
28 struct event_queue *ev_q;
33 int add_fd_tap(struct proc *p, struct fd_tap_req *tap_req);
34 int remove_fd_tap(struct proc *p, int fd);
35 int fire_tap(struct fd_tap *tap, int filter);