| 132 | } |
| 133 | |
| 134 | static int |
| 135 | eventfd_close(struct file *fp, struct thread *td) |
| 136 | { |
| 137 | struct eventfd *efd; |
| 138 | |
| 139 | efd = fp->f_data; |
| 140 | seldrain(&efd->efd_sel); |
| 141 | knlist_destroy(&efd->efd_sel.si_note); |
| 142 | mtx_destroy(&efd->efd_lock); |
| 143 | free(efd, M_EVENTFD); |
| 144 | return (0); |
| 145 | } |
| 146 | |
| 147 | static int |
| 148 | eventfd_read(struct file *fp, struct uio *uio, struct ucred *active_cred, |
nothing calls this directly
no test coverage detected