Submit #2804 » fionbio_master.patch
sys/dev/misc/snp/snp.c | ||
---|---|---|
snp->snp_flags &= ~SNOOP_ASYNC;
|
||
break;
|
||
case FIONBIO:
|
||
break;
|
||
case FIONREAD:
|
||
crit_enter();
|
||
if (snp->snp_tty != NULL)
|
sys/kern/kern_descrip.c | ||
---|---|---|
error = fo_ioctl(fp, FIOASYNC, (caddr_t)&tmp,
|
||
cred, NULL);
|
||
}
|
||
if (error == 0 && ((nflags ^ oflags) & FNONBLOCK)) {
|
||
tmp = nflags & FNONBLOCK;
|
||
error = fo_ioctl(fp, FIONBIO, (caddr_t)&tmp,
|
||
cred, NULL);
|
||
}
|
||
if (error == 0)
|
||
fp->f_flag = nflags;
|
||
break;
|
sys/kern/kern_event.c | ||
---|---|---|
lwkt_gettoken(tok);
|
||
switch(com) {
|
||
case FIONBIO:
|
||
error = 0;
|
||
break;
|
||
case FIOASYNC:
|
||
if (*(int *)data)
|
||
kq->kq_state |= KQ_ASYNC;
|
sys/kern/kern_memio.c | ||
---|---|---|
/* Really handled in upper layer */
|
||
case FIOASYNC:
|
||
break;
|
||
case FIONBIO:
|
||
break;
|
||
case MEM_SETIRQ:
|
||
intr = *(int16_t *)data;
|
||
if ((error = priv_check_cred(cred, PRIV_ROOT, 0)) != 0)
|
sys/kern/subr_log.c | ||
---|---|---|
*(int *)ap->a_data = n;
|
||
break;
|
||
case FIONBIO:
|
||
break;
|
||
case FIOASYNC:
|
||
if (*(int *)ap->a_data)
|
||
atomic_set_int(&logsoftc.sc_state, LOG_ASYNC);
|
sys/kern/sys_pipe.c | ||
---|---|---|
lwkt_gettoken(&mpipe->pipe_wlock);
|
||
switch (cmd) {
|
||
case FIONBIO:
|
||
error = 0;
|
||
break;
|
||
case FIOASYNC:
|
||
if (*(int *)data) {
|
||
mpipe->pipe_state |= PIPE_ASYNC;
|
sys/kern/sys_socket.c | ||
---|---|---|
so = (struct socket *)fp->f_data;
|
||
switch (cmd) {
|
||
case FIONBIO:
|
||
error = 0;
|
||
break;
|
||
case FIOASYNC:
|
||
if (*(int *)data) {
|
||
sosetstate(so, SS_ASYNC);
|
sys/kern/tty.c | ||
---|---|---|
CLR(tp->t_state, TS_ASYNC);
|
||
crit_exit();
|
||
break;
|
||
case FIONBIO:
|
||
break;
|
||
case FIONREAD: /* get # bytes to read */
|
||
crit_enter();
|
||
*(int *)data = ttnread(tp);
|
sys/kern/vfs_vnops.c | ||
---|---|---|
error = 0;
|
||
break;
|
||
}
|
||
if (com == FIOASYNC) { /* XXX */
|
||
if (com == FIOASYNC || com == FIONBIO) { /* XXX */
|
||
error = 0; /* XXX */
|
||
break;
|
||
}
|
sys/net/bpf.c | ||
---|---|---|
d->bd_async = *(int *)ap->a_data;
|
||
break;
|
||
case FIONBIO:
|
||
break;
|
||
case FIOSETOWN:
|
||
error = fsetown(*(int *)ap->a_data, &d->bd_sigio);
|
||
break;
|
sys/net/tap/if_tap.c | ||
---|---|---|
tp->tap_flags &= ~TAP_ASYNC;
|
||
break;
|
||
case FIONBIO:
|
||
break;
|
||
case FIONREAD:
|
||
/* Take a look at devq first */
|
||
IF_POLL(&tp->tap_devq, mb);
|
sys/net/tun/if_tun.c | ||
---|---|---|
else
|
||
tp->tun_flags &= ~TUN_ASYNC;
|
||
break;
|
||
case FIONBIO:
|
||
break;
|
||
case FIONREAD:
|
||
*(int *)ap->a_data = ifsq_poll_pktlen(
|
||
ifq_get_subq_default(&tp->tun_if.if_snd));
|