Lines Matching refs:epfp

85 static int	epoll_register_kevent(struct thread *td, struct file *epfp,
87 static int epoll_fd_registered(struct thread *td, struct file *epfp,
89 static int epoll_delete_all_events(struct thread *td, struct file *epfp,
285 struct file *epfp, *fp; in linux_epoll_ctl() local
303 cap_rights_init_one(&rights, CAP_KQUEUE_CHANGE), &epfp); in linux_epoll_ctl()
306 if (epfp->f_type != DTYPE_KQUEUE) { in linux_epoll_ctl()
318 if (epfp == fp) { in linux_epoll_ctl()
333 error = epoll_delete_all_events(td, epfp, args->fd); in linux_epoll_ctl()
339 if (epoll_fd_registered(td, epfp, args->fd)) { in linux_epoll_ctl()
347 error = epoll_delete_all_events(td, epfp, args->fd); in linux_epoll_ctl()
355 error = kern_kevent_fp(td, epfp, nchanges, 0, &k_ops, NULL); in linux_epoll_ctl()
361 fdrop(epfp, td); in linux_epoll_ctl()
378 struct file *epfp; in linux_epoll_wait_ts() local
386 cap_rights_init_one(&rights, CAP_KQUEUE_EVENT), &epfp); in linux_epoll_wait_ts()
389 if (epfp->f_type != DTYPE_KQUEUE) { in linux_epoll_wait_ts()
412 error = kern_kevent_fp(td, epfp, 0, maxevents, &k_ops, tsp); in linux_epoll_wait_ts()
427 fdrop(epfp, td); in linux_epoll_wait_ts()
530 epoll_register_kevent(struct thread *td, struct file *epfp, int fd, int filter, in epoll_register_kevent() argument
542 return (kern_kevent_fp(td, epfp, 1, 0, &k_ops, NULL)); in epoll_register_kevent()
546 epoll_fd_registered(struct thread *td, struct file *epfp, int fd) in epoll_fd_registered() argument
556 if (epoll_register_kevent(td, epfp, fd, EVFILT_READ, 0) != ENOENT || in epoll_fd_registered()
557 epoll_register_kevent(td, epfp, fd, EVFILT_WRITE, 0) != ENOENT) in epoll_fd_registered()
564 epoll_delete_all_events(struct thread *td, struct file *epfp, int fd) in epoll_delete_all_events() argument
568 error1 = epoll_register_kevent(td, epfp, fd, EVFILT_READ, EV_DELETE); in epoll_delete_all_events()
569 error2 = epoll_register_kevent(td, epfp, fd, EVFILT_WRITE, EV_DELETE); in epoll_delete_all_events()