| 960 | } |
| 961 | |
| 962 | static void |
| 963 | kqueue_init(struct kqueue *kq) |
| 964 | { |
| 965 | |
| 966 | mtx_init(&kq->kq_lock, "kqueue", NULL, MTX_DEF | MTX_DUPOK); |
| 967 | TAILQ_INIT(&kq->kq_head); |
| 968 | knlist_init_mtx(&kq->kq_sel.si_note, &kq->kq_lock); |
| 969 | TASK_INIT(&kq->kq_task, 0, kqueue_task, kq); |
| 970 | } |
| 971 | |
| 972 | int |
| 973 | kern_kqueue(struct thread *td, int flags, struct filecaps *fcaps) |
no test coverage detected