/freebsd-10.2-release/sys/kern/ |
H A D | kern_event.c | 133 static int knote_attach(struct knote *kn, struct kqueue *kq); 134 static void knote_drop(struct knote *kn, struct thread *td); 135 static void knote_enqueue(struct knote *kn); 136 static void knote_dequeue(struct knote *kn); 139 static void knote_free(struct knote *kn); 141 static void filt_kqdetach(struct knote *kn); 142 static int filt_kqueue(struct knote *kn, long hint); 143 static int filt_procattach(struct knote *kn); 144 static void filt_procdetach(struct knote *kn); 145 static int filt_proc(struct knote *kn, lon 256 filt_nullattach(struct knote *kn) argument 299 filt_fileattach(struct knote *kn) argument 307 kqueue_kqfilter(struct file *fp, struct knote *kn) argument 322 filt_kqdetach(struct knote *kn) argument 331 filt_kqueue(struct knote *kn, long hint) argument 341 filt_procattach(struct knote *kn) argument 401 filt_procdetach(struct knote *kn) argument 412 filt_proc(struct knote *kn, long hint) argument 458 struct knote *kn; local 563 struct knote *kn; local 582 filt_timerattach(struct knote *kn) argument 622 filt_timerdetach(struct knote *kn) argument 637 filt_timer(struct knote *kn, long hint) argument 644 filt_userattach(struct knote *kn) argument 659 filt_userdetach(__unused struct knote *kn) argument 668 filt_user(struct knote *kn, __unused long hint) argument 675 filt_usertouch(struct knote *kn, struct kevent *kev, u_long type) argument 1018 struct knote *kn, *tkn; local 1389 struct knote *kn, *marker; local 1717 struct knote *kn; local 1852 struct knote *kn; local 1909 knlist_add(struct knlist *knl, struct knote *kn, int islocked) argument 1927 knlist_remove_kq(struct knlist *knl, struct knote *kn, int knlislocked, int kqislocked) argument 1952 knlist_remove(struct knlist *knl, struct knote *kn, int islocked) argument 1962 knlist_remove_inevent(struct knlist *knl, struct knote *kn) argument 2109 struct knote *kn, *kn2; local 2172 struct knote *kn; local 2209 knote_attach(struct knote *kn, struct kqueue *kq) argument 2237 knote_drop(struct knote *kn, struct thread *td) argument 2270 knote_enqueue(struct knote *kn) argument 2284 knote_dequeue(struct knote *kn) argument 2313 knote_free(struct knote *kn) argument [all...] |
H A D | subr_log.c | 197 logkqfilter(struct cdev *dev, struct knote *kn) argument 200 if (kn->kn_filter != EVFILT_READ) 203 kn->kn_fop = &log_read_filterops; 204 kn->kn_hook = NULL; 207 knlist_add(&logsoftc.sc_selp.si_note, kn, 1); 213 logkqread(struct knote *kn, long hint) argument 217 kn->kn_data = msgbuf_getcount(msgbufp); 218 return (kn->kn_data != 0); 222 logkqdetach(struct knote *kn) argument 226 knlist_remove(&logsoftc.sc_selp.si_note, kn, [all...] |
H A D | tty_pts.c | 447 pts_kqops_read_detach(struct knote *kn) argument 449 struct file *fp = kn->kn_fp; 453 knlist_remove(&psc->pts_outpoll.si_note, kn, 0); 457 pts_kqops_read_event(struct knote *kn, long hint) argument 459 struct file *fp = kn->kn_fp; 464 kn->kn_flags |= EV_EOF; 467 kn->kn_data = ttydisc_getc_poll(tp); 468 return (kn->kn_data > 0); 473 pts_kqops_write_detach(struct knote *kn) argument 475 struct file *fp = kn 483 pts_kqops_write_event(struct knote *kn, long hint) argument 510 ptsdev_kqfilter(struct file *fp, struct knote *kn) argument [all...] |
H A D | sys_pipe.c | 171 static void filt_pipedetach(struct knote *kn); 172 static void filt_pipedetach_notsup(struct knote *kn); 173 static int filt_pipenotsup(struct knote *kn, long hint); 174 static int filt_piperead(struct knote *kn, long hint); 175 static int filt_pipewrite(struct knote *kn, long hint); 1713 pipe_kqfilter(struct file *fp, struct knote *kn) argument 1722 if ((kn->kn_filter == EVFILT_READ) && !(fp->f_flag & FREAD)) { 1723 kn->kn_fop = &pipe_nfiltops; 1726 if ((kn->kn_filter == EVFILT_WRITE) && !(fp->f_flag & FWRITE)) { 1727 kn 1757 filt_pipedetach(struct knote *kn) argument 1768 filt_piperead(struct knote *kn, long hint) argument 1791 filt_pipewrite(struct knote *kn, long hint) argument 1812 filt_pipedetach_notsup(struct knote *kn) argument 1818 filt_pipenotsup(struct knote *kn, long hint) argument [all...] |
H A D | tty.c | 648 tty_kqops_read_detach(struct knote *kn) argument 650 struct tty *tp = kn->kn_hook; 652 knlist_remove(&tp->t_inpoll.si_note, kn, 0); 656 tty_kqops_read_event(struct knote *kn, long hint) argument 658 struct tty *tp = kn->kn_hook; 663 kn->kn_flags |= EV_EOF; 666 kn->kn_data = ttydisc_read_poll(tp); 667 return (kn->kn_data > 0); 672 tty_kqops_write_detach(struct knote *kn) argument 674 struct tty *tp = kn 680 tty_kqops_write_event(struct knote *kn, long hint) argument 707 ttydev_kqfilter(struct cdev *dev, struct knote *kn) argument [all...] |
H A D | vfs_subr.c | 4352 static int filt_fsattach(struct knote *kn); 4353 static void filt_fsdetach(struct knote *kn); 4354 static int filt_fsevent(struct knote *kn, long hint); 4364 filt_fsattach(struct knote *kn) argument 4367 kn->kn_flags |= EV_CLEAR; 4368 knlist_add(&fs_knlist, kn, 0); 4373 filt_fsdetach(struct knote *kn) argument 4376 knlist_remove(&fs_knlist, kn, 0); 4380 filt_fsevent(struct knote *kn, long hint) argument 4383 kn 4491 struct knote *kn = ap->a_kn; local 4524 filt_vfsdetach(struct knote *kn) argument 4535 filt_vfsread(struct knote *kn, long hint) argument 4564 filt_vfswrite(struct knote *kn, long hint) argument 4583 filt_vfsvnode(struct knote *kn, long hint) argument [all...] |
H A D | uipc_socket.c | 155 static void filt_sordetach(struct knote *kn); 156 static int filt_soread(struct knote *kn, long hint); 157 static void filt_sowdetach(struct knote *kn); 158 static int filt_sowrite(struct knote *kn, long hint); 159 static int filt_solisten(struct knote *kn, long hint); 2958 soo_kqfilter(struct file *fp, struct knote *kn) argument 2960 struct socket *so = kn->kn_fp->f_data; 2963 switch (kn->kn_filter) { 2966 kn->kn_fop = &solisten_filtops; 2968 kn 3143 filt_sordetach(struct knote *kn) argument 3156 filt_soread(struct knote *kn, long hint) argument 3177 filt_sowdetach(struct knote *kn) argument 3190 filt_sowrite(struct knote *kn, long hint) argument 3214 filt_solisten(struct knote *kn, long hint) argument [all...] |
H A D | uipc_mqueue.c | 261 static void filt_mqdetach(struct knote *kn); 262 static int filt_mqread(struct knote *kn, long hint); 263 static int filt_mqwrite(struct knote *kn, long hint); 2556 mqf_kqfilter(struct file *fp, struct knote *kn) argument 2561 if (kn->kn_filter == EVFILT_READ) { 2562 kn->kn_fop = &mq_rfiltops; 2563 knlist_add(&mq->mq_rsel.si_note, kn, 0); 2564 } else if (kn->kn_filter == EVFILT_WRITE) { 2565 kn->kn_fop = &mq_wfiltops; 2566 knlist_add(&mq->mq_wsel.si_note, kn, 2573 filt_mqdetach(struct knote *kn) argument 2586 filt_mqread(struct knote *kn, long hint) argument 2595 filt_mqwrite(struct knote *kn, long hint) argument [all...] |
H A D | vfs_aio.c | 362 static int filt_aioattach(struct knote *kn); 363 static void filt_aiodetach(struct knote *kn); 364 static int filt_aio(struct knote *kn, long hint); 365 static int filt_lioattach(struct knote *kn); 366 static void filt_liodetach(struct knote *kn); 367 static int filt_lio(struct knote *kn, long hint); 2590 filt_aioattach(struct knote *kn) argument 2592 struct aiocblist *aiocbe = (struct aiocblist *)kn->kn_sdata; 2599 if ((kn->kn_flags & EV_FLAG1) == 0) 2601 kn 2611 filt_aiodetach(struct knote *kn) argument 2625 filt_aio(struct knote *kn, long hint) argument 2638 filt_lioattach(struct knote *kn) argument 2659 filt_liodetach(struct knote *kn) argument 2673 filt_lio(struct knote *kn, long hint) argument [all...] |
/freebsd-10.2-release/tools/diag/dumpvfscache/ |
H A D | dumpvfscache.c | 69 int nchash, i, j, k, kn; local 101 for (j=k=kn=0;nc->nc_name[j];j++) { 103 kn <<= 1; 104 kn+= nc->nc_name[j]; 107 kn = k; 109 kn = wlpsacrc(nc->nc_name,nc->nc_nlen); 111 /* kn += (u_long)vn.v_data >> 8; */ 112 /* kn += (u_long)nc->nc_dvp >> 7; */ 113 kn += vn.v_id; 114 kn [all...] |
/freebsd-10.2-release/contrib/sendmail/libsm/ |
H A D | memstat.c | 107 kstat_named_t *kn; 160 kstat_named_t *kn; 166 kn = kstat_data_lookup(kst, 168 if (kn == NULL) 170 *pvalue = kn->value.ul;
|
/freebsd-10.2-release/sys/arm/ti/ |
H A D | ti_pruss.c | 274 ti_pruss_kq_read_detach(struct knote *kn) argument 276 struct ti_pruss_softc *sc = kn->kn_hook; 278 knlist_remove(&sc->sc_selinfo.si_note, kn, 0); 282 ti_pruss_kq_read_event(struct knote *kn, long hint) argument 284 kn->kn_data = hint; 290 ti_pruss_kqfilter(struct cdev *cdev, struct knote *kn) argument 295 switch (kn->kn_filter) { 297 kn->kn_hook = sc; 298 kn->kn_fop = &ti_pruss_kq_read; 299 knlist_add(&sc->sc_selinfo.si_note, kn, [all...] |
/freebsd-10.2-release/sys/dev/netmap/ |
H A D | netmap_freebsd.c | 653 * netmap_poll(). As a workaround we store priv into kn->kn_hook 673 netmap_knrdetach(struct knote *kn) argument 675 struct netmap_priv_d *priv = (struct netmap_priv_d *)kn->kn_hook; 679 knlist_remove(&si->si_note, kn, 0); 683 netmap_knwdetach(struct knote *kn) argument 685 struct netmap_priv_d *priv = (struct netmap_priv_d *)kn->kn_hook; 689 knlist_remove(&si->si_note, kn, 0); 699 netmap_knrw(struct knote *kn, long hint, int events) argument 708 priv = kn->kn_hook; 723 netmap_knread(struct knote *kn, lon argument 729 netmap_knwrite(struct knote *kn, long hint) argument 753 netmap_kqfilter(struct cdev *dev, struct knote *kn) argument [all...] |
/freebsd-10.2-release/sys/sys/ |
H A D | event.h | 187 int (*f_attach)(struct knote *kn); 188 void (*f_detach)(struct knote *kn); 189 int (*f_event)(struct knote *kn, long hint); 190 void (*f_touch)(struct knote *kn, struct kevent *kev, u_long type); 250 extern void knlist_add(struct knlist *knl, struct knote *kn, int islocked); 251 extern void knlist_remove(struct knlist *knl, struct knote *kn, int islocked); 252 extern void knlist_remove_inevent(struct knlist *knl, struct knote *kn);
|
H A D | file.h | 100 typedef int fo_kqfilter_t(struct file *fp, struct knote *kn); 347 fo_kqfilter(struct file *fp, struct knote *kn) argument 350 return ((*fp->f_ops->fo_kqfilter)(fp, kn));
|
/freebsd-10.2-release/crypto/openssl/crypto/evp/ |
H A D | evp_test.c | 132 static void test1(const EVP_CIPHER *c, const unsigned char *key, int kn, argument 145 hexdump(stdout, "Key", key, kn); 151 if (kn != c->key_len) { 152 fprintf(stderr, "Key length doesn't match, got %d expected %lu\n", kn, 228 static int test_cipher(const char *cipher, const unsigned char *key, int kn, argument 239 test1(c, key, kn, iv, in, plaintext, pn, ciphertext, cn, encdec); 351 int kn, in, pn, cn; local 370 kn = convert(key); 376 (cipher, key, kn, iv, in, plaintext, pn, ciphertext, cn, encdec)
|
/freebsd-10.2-release/sys/x86/acpica/ |
H A D | acpi_apm.c | 62 static void apmreadfiltdetach(struct knote *kn); 63 static int apmreadfilt(struct knote *kn, long hint); 405 apmkqfilter(struct cdev *dev, struct knote *kn) argument 411 kn->kn_hook = clone; 412 kn->kn_fop = &apm_readfiltops; 413 knlist_add(&clone->sel_read.si_note, kn, 0); 419 apmreadfiltdetach(struct knote *kn) argument 424 clone = kn->kn_hook; 425 knlist_remove(&clone->sel_read.si_note, kn, 0); 430 apmreadfilt(struct knote *kn, lon argument [all...] |
/freebsd-10.2-release/sys/net/ |
H A D | if_tap.c | 1032 tapkqfilter(struct cdev *dev, struct knote *kn) argument 1037 switch (kn->kn_filter) { 1041 kn->kn_fop = &tap_read_filterops; 1047 kn->kn_fop = &tap_write_filterops; 1057 kn->kn_hook = tp; 1058 knlist_add(&tp->tap_rsel.si_note, kn, 0); 1070 tapkqread(struct knote *kn, long hint) argument 1073 struct tap_softc *tp = kn->kn_hook; 1077 if ((kn->kn_data = ifp->if_snd.ifq_len) > 0) { 1094 * Always can write. Return the MTU in kn 1097 tapkqwrite(struct knote *kn, long hint) argument 1109 tapkqdetach(struct knote *kn) argument [all...] |
H A D | if_tun.c | 968 tunkqfilter(struct cdev *dev, struct knote *kn) argument 973 switch(kn->kn_filter) { 977 kn->kn_fop = &tun_read_filterops; 983 kn->kn_fop = &tun_write_filterops; 992 kn->kn_hook = tp; 993 knlist_add(&tp->tun_rsel.si_note, kn, 0); 1002 tunkqread(struct knote *kn, long hint) argument 1005 struct tun_softc *tp = kn->kn_hook; 1009 if ((kn->kn_data = ifp->if_snd.ifq_len) > 0) { 1025 * Always can write, always return MTU in kn 1028 tunkqwrite(struct knote *kn, long hint) argument 1039 tunkqdetach(struct knote *kn) argument [all...] |
/freebsd-10.2-release/sys/security/audit/ |
H A D | audit_pipe.c | 1050 audit_pipe_kqfilter(struct cdev *dev, struct knote *kn) argument 1057 if (kn->kn_filter != EVFILT_READ) 1060 kn->kn_fop = &audit_pipe_read_filterops; 1061 kn->kn_hook = ap; 1064 knlist_add(&ap->ap_selinfo.si_note, kn, 1); 1073 audit_pipe_kqread(struct knote *kn, long hint) argument 1077 ap = (struct audit_pipe *)kn->kn_hook; 1082 kn->kn_data = ap->ap_qbyteslen - ap->ap_qoffset; 1085 kn->kn_data = 0; 1094 audit_pipe_kqdetach(struct knote *kn) argument [all...] |
/freebsd-10.2-release/sys/cam/scsi/ |
H A D | scsi_target.c | 107 static void targreadfiltdetach(struct knote *kn); 108 static int targreadfilt(struct knote *kn, long hint); 322 targkqfilter(struct cdev *dev, struct knote *kn) argument 327 kn->kn_hook = (caddr_t)softc; 328 kn->kn_fop = &targread_filtops; 329 knlist_add(&softc->read_select.si_note, kn, 0); 334 targreadfiltdetach(struct knote *kn) argument 338 softc = (struct targ_softc *)kn->kn_hook; 339 knlist_remove(&softc->read_select.si_note, kn, 0); 344 targreadfilt(struct knote *kn, lon argument [all...] |
/freebsd-10.2-release/contrib/wpa/src/crypto/ |
H A D | des-internal.c | 275 u32 i, j, l, m, n, kn[32]; local 291 kn[m] = kn[n] = 0L; 308 kn[m] |= bigbyte[j]; 310 kn[n] |= bigbyte[j]; 314 cookey(kn, keyout);
|
/freebsd-10.2-release/contrib/texinfo/makeinfo/ |
H A D | lang.h | 41 ka, kk, kl, km, kn, ko, ks, ku, ky, enumerator in enum:__anon4807
|
/freebsd-10.2-release/sys/dev/usb/ |
H A D | usb_dev.c | 1140 usb_filter_detach(struct knote *kn) argument 1142 struct usb_fifo *f = kn->kn_hook; 1143 knlist_remove(&f->selinfo.si_note, kn, 0); 1147 usb_filter_write(struct knote *kn, long hint) argument 1155 f = kn->kn_hook; 1188 usb_filter_read(struct knote *kn, long hint) argument 1196 f = kn->kn_hook; 1247 usb_kqfilter(struct cdev* dev, struct knote *kn) argument 1264 switch (kn->kn_filter) { 1268 kn [all...] |
/freebsd-10.2-release/crypto/heimdal/lib/hx509/ |
H A D | print.c | 418 KRB5PrincipalName kn; local 423 ret = decode_KRB5PrincipalName(a->data, a->length, &kn, &size); 437 for (i = 0; i < kn.principalName.name_string.len; i++) { 439 kn.principalName.name_string.val[i]); 440 if (i + 1 < kn.principalName.name_string.len) 444 validate_print(ctx, HX509_VALIDATE_F_VERBOSE, "%s", kn.realm); 446 free_KRB5PrincipalName(&kn);
|