/freebsd-10.1-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 536 struct knote *kn; local 554 filt_timerattach(struct knote *kn) argument 588 filt_timerdetach(struct knote *kn) argument 602 filt_timer(struct knote *kn, long hint) argument 609 filt_userattach(struct knote *kn) argument 624 filt_userdetach(__unused struct knote *kn) argument 633 filt_user(struct knote *kn, __unused long hint) argument 640 filt_usertouch(struct knote *kn, struct kevent *kev, u_long type) argument 983 struct knote *kn, *tkn; local 1354 struct knote *kn, *marker; local 1682 struct knote *kn; local 1817 struct knote *kn; local 1874 knlist_add(struct knlist *knl, struct knote *kn, int islocked) argument 1892 knlist_remove_kq(struct knlist *knl, struct knote *kn, int knlislocked, int kqislocked) argument 1917 knlist_remove(struct knlist *knl, struct knote *kn, int islocked) argument 1927 knlist_remove_inevent(struct knlist *knl, struct knote *kn) argument 2074 struct knote *kn, *kn2; local 2137 struct knote *kn; local 2174 knote_attach(struct knote *kn, struct kqueue *kq) argument 2202 knote_drop(struct knote *kn, struct thread *td) argument 2235 knote_enqueue(struct knote *kn) argument 2249 knote_dequeue(struct knote *kn) argument 2278 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 | 444 pts_kqops_read_detach(struct knote *kn) argument 446 struct file *fp = kn->kn_fp; 450 knlist_remove(&psc->pts_outpoll.si_note, kn, 0); 454 pts_kqops_read_event(struct knote *kn, long hint) argument 456 struct file *fp = kn->kn_fp; 461 kn->kn_flags |= EV_EOF; 464 kn->kn_data = ttydisc_getc_poll(tp); 465 return (kn->kn_data > 0); 470 pts_kqops_write_detach(struct knote *kn) argument 472 struct file *fp = kn 480 pts_kqops_write_event(struct knote *kn, long hint) argument 507 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); 1712 pipe_kqfilter(struct file *fp, struct knote *kn) argument 1721 if ((kn->kn_filter == EVFILT_READ) && !(fp->f_flag & FREAD)) { 1722 kn->kn_fop = &pipe_nfiltops; 1725 if ((kn->kn_filter == EVFILT_WRITE) && !(fp->f_flag & FWRITE)) { 1726 kn 1756 filt_pipedetach(struct knote *kn) argument 1767 filt_piperead(struct knote *kn, long hint) argument 1792 filt_pipewrite(struct knote *kn, long hint) argument 1815 filt_pipedetach_notsup(struct knote *kn) argument 1821 filt_pipenotsup(struct knote *kn, long hint) argument [all...] |
H A D | tty.c | 633 tty_kqops_read_detach(struct knote *kn) argument 635 struct tty *tp = kn->kn_hook; 637 knlist_remove(&tp->t_inpoll.si_note, kn, 0); 641 tty_kqops_read_event(struct knote *kn, long hint) argument 643 struct tty *tp = kn->kn_hook; 648 kn->kn_flags |= EV_EOF; 651 kn->kn_data = ttydisc_read_poll(tp); 652 return (kn->kn_data > 0); 657 tty_kqops_write_detach(struct knote *kn) argument 659 struct tty *tp = kn 665 tty_kqops_write_event(struct knote *kn, long hint) argument 692 ttydev_kqfilter(struct cdev *dev, struct knote *kn) argument [all...] |
H A D | vfs_aio.c | 361 static int filt_aioattach(struct knote *kn); 362 static void filt_aiodetach(struct knote *kn); 363 static int filt_aio(struct knote *kn, long hint); 364 static int filt_lioattach(struct knote *kn); 365 static void filt_liodetach(struct knote *kn); 366 static int filt_lio(struct knote *kn, long hint); 2586 filt_aioattach(struct knote *kn) argument 2588 struct aiocblist *aiocbe = (struct aiocblist *)kn->kn_sdata; 2595 if ((kn->kn_flags & EV_FLAG1) == 0) 2597 kn 2607 filt_aiodetach(struct knote *kn) argument 2621 filt_aio(struct knote *kn, long hint) argument 2634 filt_lioattach(struct knote *kn) argument 2655 filt_liodetach(struct knote *kn) argument 2669 filt_lio(struct knote *kn, long hint) argument [all...] |
H A D | vfs_subr.c | 4295 static int filt_fsattach(struct knote *kn); 4296 static void filt_fsdetach(struct knote *kn); 4297 static int filt_fsevent(struct knote *kn, long hint); 4307 filt_fsattach(struct knote *kn) argument 4310 kn->kn_flags |= EV_CLEAR; 4311 knlist_add(&fs_knlist, kn, 0); 4316 filt_fsdetach(struct knote *kn) argument 4319 knlist_remove(&fs_knlist, kn, 0); 4323 filt_fsevent(struct knote *kn, long hint) argument 4326 kn 4434 struct knote *kn = ap->a_kn; local 4467 filt_vfsdetach(struct knote *kn) argument 4478 filt_vfsread(struct knote *kn, long hint) argument 4507 filt_vfswrite(struct knote *kn, long hint) argument 4526 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); 2956 soo_kqfilter(struct file *fp, struct knote *kn) argument 2958 struct socket *so = kn->kn_fp->f_data; 2961 switch (kn->kn_filter) { 2964 kn->kn_fop = &solisten_filtops; 2966 kn 3141 filt_sordetach(struct knote *kn) argument 3154 filt_soread(struct knote *kn, long hint) argument 3175 filt_sowdetach(struct knote *kn) argument 3188 filt_sowrite(struct knote *kn, long hint) argument 3212 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...] |
/freebsd-10.1-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.1-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.1-release/sys/arm/ti/ |
H A D | ti_pruss.c | 292 ti_pruss_kq_read_detach(struct knote *kn) argument 294 struct ti_pruss_softc *sc = kn->kn_hook; 296 knlist_remove(&sc->sc_selinfo.si_note, kn, 0); 300 ti_pruss_kq_read_event(struct knote *kn, long hint) argument 302 kn->kn_data = hint; 308 ti_pruss_kqfilter(struct cdev *cdev, struct knote *kn) argument 313 switch (kn->kn_filter) { 315 kn->kn_hook = sc; 316 kn->kn_fop = &ti_pruss_kq_read; 317 knlist_add(&sc->sc_selinfo.si_note, kn, [all...] |
/freebsd-10.1-release/sys/dev/netmap/ |
H A D | netmap_freebsd.c | 651 * netmap_poll(). As a workaround we store priv into kn->kn_hook 672 netmap_knrdetach(struct knote *kn) argument 674 struct netmap_priv_d *priv = (struct netmap_priv_d *)kn->kn_hook; 678 knlist_remove(&si->si_note, kn, 0); 682 netmap_knwdetach(struct knote *kn) argument 684 struct netmap_priv_d *priv = (struct netmap_priv_d *)kn->kn_hook; 688 knlist_remove(&si->si_note, kn, 0); 698 netmap_knrw(struct knote *kn, long hint, int events) argument 707 priv = kn->kn_hook; 722 netmap_knread(struct knote *kn, lon argument 728 netmap_knwrite(struct knote *kn, long hint) argument 752 netmap_kqfilter(struct cdev *dev, struct knote *kn) argument [all...] |
/freebsd-10.1-release/sys/sys/ |
H A D | event.h | 181 int (*f_attach)(struct knote *kn); 182 void (*f_detach)(struct knote *kn); 183 int (*f_event)(struct knote *kn, long hint); 184 void (*f_touch)(struct knote *kn, struct kevent *kev, u_long type); 243 extern void knlist_add(struct knlist *knl, struct knote *kn, int islocked); 244 extern void knlist_remove(struct knlist *knl, struct knote *kn, int islocked); 245 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.1-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.1-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.1-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.1-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.1-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.1-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.1-release/contrib/texinfo/makeinfo/ |
H A D | lang.h | 41 ka, kk, kl, km, kn, ko, ks, ku, ky, enumerator in enum:__anon4602
|
/freebsd-10.1-release/sys/dev/usb/ |
H A D | usb_dev.c | 1139 usb_filter_detach(struct knote *kn) argument 1141 struct usb_fifo *f = kn->kn_hook; 1142 knlist_remove(&f->selinfo.si_note, kn, 0); 1146 usb_filter_write(struct knote *kn, long hint) argument 1154 f = kn->kn_hook; 1187 usb_filter_read(struct knote *kn, long hint) argument 1195 f = kn->kn_hook; 1246 usb_kqfilter(struct cdev* dev, struct knote *kn) argument 1263 switch (kn->kn_filter) { 1267 kn [all...] |
/freebsd-10.1-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);
|