HomeSort by: relevance | last modified time | path
    Searched refs:kn (Results 1 - 25 of 92) sorted by relevancy

1 2 3 4

  /src/sys/kern/
kern_event.c 153 knote_free(struct knote *kn)
155 struct knote_impl *ki = KNOTE_TO_KIMPL(kn);
162 knote_foplock_enter(struct knote *kn)
164 mutex_enter(&KNOTE_TO_KIMPL(kn)->ki_foplock);
168 knote_foplock_exit(struct knote *kn)
170 mutex_exit(&KNOTE_TO_KIMPL(kn)->ki_foplock);
174 knote_foplock_owned(struct knote *kn)
176 return mutex_owned(&KNOTE_TO_KIMPL(kn)->ki_foplock);
194 filt_nopdetach(struct knote *kn __unused)
199 filt_nopevent(struct knote *kn __unused, long hint __unused
1011 struct knote *kn, *tmpkn; local in function:knote_proc_exec
1206 struct knote *kn; local in function:knote_proc_fork
1257 struct knote *kn; local in function:knote_proc_exit
1398 struct knote *kn = knx; local in function:filt_timerexpire
1894 struct knote *kn, *newkn; local in function:kqueue_register
2165 const struct knote *kn; local in function:kqueue_printit
2201 const struct knote *kn; local in function:kqueue_check
2276 struct knote *kn, *marker; local in function:kqueue_scan
2651 struct knote *kn; local in function:kqueue_doclose
2772 struct knote *kn, *tmpkn; local in function:knote
2796 struct knote *kn; local in function:knote_fdclose
2999 struct knote *kn; local in function:klist_fini
    [all...]
sys_eventfd.c 405 eventfd_filt_read_detach(struct knote * const kn)
407 struct eventfd * const efd = ((file_t *)kn->kn_obj)->f_eventfd;
410 KASSERT(kn->kn_hook == efd);
411 selremove_knote(&efd->efd_read_sel, kn);
416 eventfd_filt_read(struct knote * const kn, long const hint)
418 struct eventfd * const efd = ((file_t *)kn->kn_obj)->f_eventfd;
427 kn->kn_data = (int64_t)efd->efd_val;
428 rv = (eventfd_t)kn->kn_data > 0;
444 eventfd_filt_write_detach(struct knote * const kn)
446 struct eventfd * const efd = ((file_t *)kn->kn_obj)->f_eventfd
    [all...]
sys_timerfd.c 391 timerfd_filt_read_detach(struct knote * const kn)
393 struct timerfd * const tfd = ((file_t *)kn->kn_obj)->f_timerfd;
396 KASSERT(kn->kn_hook == tfd);
397 selremove_knote(&tfd->tfd_read_sel, kn);
402 timerfd_filt_read(struct knote * const kn, long const hint)
404 struct timerfd * const tfd = ((file_t *)kn->kn_obj)->f_timerfd;
413 kn->kn_data = (int64_t)timerfd_fire_count(tfd);
414 rv = kn->kn_data != 0;
430 timerfd_fop_kqfilter(file_t * const fp, struct knote * const kn)
432 struct timerfd * const tfd = ((file_t *)kn->kn_obj)->f_timerfd
    [all...]
subr_log.c 266 filt_logrdetach(struct knote *kn)
270 selremove_knote(&log_selp, kn);
275 filt_logread(struct knote *kn, long hint)
284 kn->kn_data = msgbufp->msg_bufx - msgbufp->msg_bufr;
287 kn->kn_data = (msgbufp->msg_bufs - msgbufp->msg_bufr) +
305 logkqfilter(dev_t dev, struct knote *kn)
308 switch (kn->kn_filter) {
310 kn->kn_fop = &logread_filtops;
312 selrecord_knote(&log_selp, kn);
sys_pipe.c 1033 filt_pipedetach(struct knote *kn)
1038 pipe = ((file_t *)kn->kn_obj)->f_pipe;
1043 switch(kn->kn_filter) {
1060 KASSERT(kn->kn_hook == pipe);
1061 selremove_knote(&pipe->pipe_sel, kn);
1066 filt_piperead(struct knote *kn, long hint)
1068 struct pipe *rpipe = ((file_t *)kn->kn_obj)->f_pipe;
1076 kn->kn_data = rpipe->pipe_buffer.cnt;
1080 knote_set_eof(kn, 0);
1083 rv = kn->kn_data > 0
    [all...]
  /src/sys/nfs/
nfs_kq.c 189 filt_nfsdetach(struct knote *kn)
191 struct vnode *vp = (struct vnode *)kn->kn_hook;
194 vn_knote_detach(vp, kn);
220 filt_nfsread(struct knote *kn, long hint)
222 struct vnode *vp = (struct vnode *)kn->kn_hook;
232 knote_set_eof(kn, EV_ONESHOT);
236 kn->kn_data = vp->v_size - ((file_t *)kn->kn_obj)->f_offset;
237 rv = (kn->kn_data != 0);
242 kn->kn_data = vp->v_size - ((file_t *)kn->kn_obj)->f_offset
299 struct knote *kn; local in function:nfs_kqfilter
    [all...]
  /src/sys/arch/amiga/dev/
event.c 164 filt_evrdetach(struct knote *kn)
166 struct evvar *ev = kn->kn_hook;
170 selremove_knote(&ev->ev_sel, kn);
175 filt_evread(struct knote *kn, long hint)
177 struct evvar *ev = kn->kn_hook;
183 kn->kn_data = ev->ev_put - ev->ev_get;
185 kn->kn_data = (EV_QSIZE - ev->ev_get) +
188 kn->kn_data *= sizeof(struct firm_event);
201 ev_kqfilter(struct evvar *ev, struct knote *kn)
205 switch (kn->kn_filter)
    [all...]
  /src/sys/arch/atari/dev/
event.c 164 filt_evrdetach(struct knote *kn)
166 struct evvar *ev = kn->kn_hook;
170 selremove_knote(&ev->ev_sel, kn);
175 filt_evread(struct knote *kn, long hint)
177 struct evvar *ev = kn->kn_hook;
183 kn->kn_data = ev->ev_put - ev->ev_get;
185 kn->kn_data = (EV_QSIZE - ev->ev_get) +
188 kn->kn_data *= sizeof(struct firm_event);
201 ev_kqfilter(struct evvar *ev, struct knote *kn)
205 switch (kn->kn_filter)
    [all...]
  /src/sys/dev/sun/
event.c 170 filt_evrdetach(struct knote *kn)
172 struct evvar *ev = kn->kn_hook;
176 selremove_knote(&ev->ev_sel, kn);
181 filt_evread(struct knote *kn, long hint)
183 struct evvar *ev = kn->kn_hook;
189 kn->kn_data = ev->ev_put - ev->ev_get;
191 kn->kn_data = (EV_QSIZE - ev->ev_get) +
194 kn->kn_data *= sizeof(struct firm_event);
207 ev_kqfilter(struct evvar *ev, struct knote *kn)
211 switch (kn->kn_filter)
    [all...]
  /src/sys/arch/x68k/dev/
event.c 187 filt_evrdetach(struct knote *kn)
189 struct evvar *ev = kn->kn_hook;
192 selremove_knote(&ev->ev_sel, kn);
197 filt_evread(struct knote *kn, long hint)
199 struct evvar *ev = kn->kn_hook;
207 kn->kn_data = ev->ev_put - ev->ev_get;
209 kn->kn_data = (EV_QSIZE - ev->ev_get) +
212 kn->kn_data *= sizeof(struct firm_event);
227 ev_kqfilter(struct evvar *ev, struct knote *kn)
230 switch (kn->kn_filter)
    [all...]
  /src/sys/crypto/adiantum/
adiantum.h 45 uint32_t kn[268]; /* NH key */ member in struct:adiantum
  /src/sys/external/bsd/drm2/linux/
linux_sync_file.c 134 sync_file_kqfilter(struct file *fp, struct knote *kn)
138 switch (kn->kn_filter) {
140 kn->kn_fop = &sync_file_filtops;
141 kn->kn_hook = sf;
143 klist_insert(&sf->sf_selq.sel_klist, kn);
152 filt_sync_file_detach(struct knote *kn)
154 struct sync_file *sf = kn->kn_hook;
157 klist_remove(&sf->sf_selq.sel_klist, kn);
162 filt_sync_file_event(struct knote *kn, long hint)
164 struct sync_file *sf = kn->kn_hook
    [all...]
  /src/sys/arch/landisk/dev/
button.c 289 filt_btn_rdetach(struct knote *kn)
293 selremove_knote(&btn_event_queue_selinfo, kn);
298 filt_btn_read(struct knote *kn, long hint)
308 kn->kn_data = btn_event_queue_count;
309 rv = kn->kn_data > 0;
326 btnkqfilter(dev_t dev, struct knote *kn)
333 switch (kn->kn_filter) {
335 kn->kn_fop = &btn_read_filtops;
337 selrecord_knote(&btn_event_queue_selinfo, kn);
342 kn->kn_fop = &seltrue_filtops
    [all...]
  /src/sys/dev/wscons/
wsevent.c 300 filt_wseventrdetach(struct knote *kn)
302 struct wseventvar *ev = kn->kn_hook;
306 selremove_knote(&ev->sel, kn);
311 filt_wseventread(struct knote *kn, long hint)
313 struct wseventvar *ev = kn->kn_hook;
319 kn->kn_data = ev->put - ev->get;
321 kn->kn_data = (WSEVENT_QSIZE - ev->get) + ev->put;
323 kn->kn_data *= EVSIZE(ev->version);
336 wsevent_kqfilter(struct wseventvar *ev, struct knote *kn)
340 switch (kn->kn_filter)
    [all...]
  /src/sys/arch/arc/dev/
opms.c 456 filt_opmsrdetach(struct knote *kn)
458 struct opms_softc *sc = kn->kn_hook;
462 selremove_knote(&sc->sc_rsel, kn);
467 filt_opmsread(struct knote *kn, long hint)
469 struct opms_softc *sc = kn->kn_hook;
471 kn->kn_data = sc->sc_q.c_cc;
472 return kn->kn_data > 0;
483 opmskqfilter(dev_t dev, struct knote *kn)
488 switch (kn->kn_filter) {
490 kn->kn_fop = &opmsread_filtops
    [all...]
  /src/sys/arch/macppc/dev/
apm.c 390 filt_apmrdetach(struct knote *kn)
392 struct apm_softc *sc = (struct apm_softc *)kn->kn_hook;
395 selremove_knote(&sc->sc_rsel, kn);
400 filt_apmread(struct knote *kn, long hint)
402 struct apm_softc *sc = kn->kn_hook;
404 kn->kn_data = sc->event_count;
405 return (kn->kn_data > 0);
416 apmkqfilter(dev_t dev, struct knote *kn)
420 switch (kn->kn_filter) {
422 kn->kn_fop = &apmread_filtops
    [all...]
  /src/sys/miscfs/genfs/
genfs_vnops.c 496 filt_genfsdetach(struct knote *kn)
498 struct vnode *vp = (struct vnode *)kn->kn_hook;
500 vn_knote_detach(vp, kn);
504 filt_genfsread(struct knote *kn, long hint)
506 struct vnode *vp = (struct vnode *)kn->kn_hook;
516 knote_set_eof(kn, EV_ONESHOT);
520 kn->kn_data = vp->v_size - ((file_t *)kn->kn_obj)->f_offset;
521 rv = (kn->kn_data != 0);
526 kn->kn_data = vp->v_size - ((file_t *)kn->kn_obj)->f_offset
615 struct knote *kn; local in function:genfs_kqfilter
    [all...]
  /src/sys/dev/
random.c 167 random_kqfilter(dev_t dev, struct knote *kn)
171 switch (kn->kn_filter) {
182 if (kn->kn_filter == EVFILT_READ)
183 return entropy_kqfilter(kn);
186 kn->kn_fop = &seltrue_filtops;
  /src/sys/compat/linux/common/
linux_inotify.c 426 struct knote *kn, *tmpkn; local in function:linux_sys_inotify_add_watch
582 SLIST_FOREACH_SAFE(kn, &wp->f_vnode->v_klist->vk_klist,
584 if (kn->kn_fop == &inotify_filtops
585 && ifd == kn->kn_kevent.udata) {
586 mutex_enter(&kn->kn_kq->kq_lock);
588 kn->kn_sfflags |= kev.fflags;
590 kn->kn_sfflags = kev.fflags;
592 kn->kn_sfflags;
593 mutex_exit(&kn->kn_kq->kq_lock);
699 inotify_filt_attach(struct knote *kn)
    [all...]
  /src/sys/miscfs/fifofs/
fifo_vnops.c 589 filt_fifordetach(struct knote *kn)
593 so = (struct socket *)kn->kn_hook;
595 if (selremove_knote(&so->so_rcv.sb_sel, kn))
601 filt_fiforead(struct knote *kn, long hint)
606 so = (struct socket *)kn->kn_hook;
609 kn->kn_data = so->so_rcv.sb_cc;
611 knote_set_eof(kn, 0);
614 knote_clear_eof(kn);
615 rv = (kn->kn_data >= so->so_rcv.sb_lowat);
623 filt_fifowdetach(struct knote *kn)
    [all...]
  /src/sys/dev/sbus/
bpp.c 506 filt_bpprdetach(struct knote *kn)
508 struct bpp_softc *sc = kn->kn_hook;
512 selremove_knote(&sc->sc_rsel, kn);
517 filt_bppread(struct knote *kn, long hint)
531 filt_bppwdetach(struct knote *kn)
533 struct bpp_softc *sc = kn->kn_hook;
537 selremove_knote(&sc->sc_wsel, kn);
542 filt_bpfwrite(struct knote *kn, long hint)
544 struct bpp_softc *sc = kn->kn_hook;
549 kn->kn_data = 0; /* XXXLUKEM (thorpej): what to put here? *
    [all...]
  /src/sys/dev/pci/
vio9p.c 399 filt_vio9p_detach(struct knote *kn)
401 struct vio9p_softc *sc = kn->kn_hook;
404 selremove_knote(&sc->sc_sel, kn);
409 filt_vio9p_read(struct knote *kn, long hint)
411 struct vio9p_softc *sc = kn->kn_hook;
414 kn->kn_data = sc->sc_buf_rx_len;
416 rv = (kn->kn_data > 0) || sc->sc_state != VIO9P_S_INIT;
429 filt_vio9p_write(struct knote *kn, long hint)
431 struct vio9p_softc *sc = kn->kn_hook;
445 vio9p_kqfilter(struct file *fp, struct knote *kn)
    [all...]
oboe.c 78 static int oboe_kqfilter(void *h, struct knote *kn);
464 filt_oboerdetach(struct knote *kn)
466 struct oboe_softc *sc = kn->kn_hook;
470 selremove_knote(&sc->sc_rsel, kn);
475 filt_oboeread(struct knote *kn, long hint)
477 struct oboe_softc *sc = kn->kn_hook;
479 kn->kn_data = sc->sc_saved;
480 return (kn->kn_data > 0);
491 oboe_kqfilter(void *h, struct knote *kn)
496 switch (kn->kn_filter)
    [all...]
  /src/sys/dev/putter/
putter.c 460 filt_putterdetach(struct knote *kn)
462 struct putter_instance *pi = kn->kn_hook;
466 selremove_knote(&pi->pi_sel, kn);
472 filt_putter(struct knote *kn, long hint)
474 struct putter_instance *pi = kn->kn_hook;
488 kn->kn_data = pi->pi_pop->pop_waitcount(pi->pi_private);
489 rv = kn->kn_data != 0;
502 putter_fop_kqfilter(file_t *fp, struct knote *kn)
508 switch (kn->kn_filter) {
510 kn->kn_fop = &putter_filtops
    [all...]
  /src/sys/dev/usb/
uhid.c 713 filt_uhidrdetach(struct knote *kn)
715 struct uhid_softc *sc = kn->kn_hook;
718 selremove_knote(&sc->sc_rsel, kn);
723 filt_uhidread(struct knote *kn, long hint)
725 struct uhid_softc *sc = kn->kn_hook;
732 kn->kn_data = sc->sc_q.c_cc;
739 return kn->kn_data > 0;
750 uhidkqfilter(dev_t dev, struct knote *kn)
754 switch (kn->kn_filter) {
756 kn->kn_fop = &uhidread_filtops
    [all...]

Completed in 21 milliseconds

1 2 3 4