Lines Matching refs:sc_async
102 struct proc *sc_async; /* process that wants SIGIO */ member
348 sc->sc_async = 0; in hidraw_open()
370 sc->sc_async = 0; in hidraw_dtor()
539 if (sc->sc_async == NULL) { in hidraw_ioctl()
540 sc->sc_async = td->td_proc; in hidraw_ioctl()
541 DPRINTF("FIOASYNC %p\n", sc->sc_async); in hidraw_ioctl()
545 sc->sc_async = NULL; in hidraw_ioctl()
552 if (sc->sc_async == NULL) in hidraw_ioctl()
554 else if (*(int *)addr != sc->sc_async->p_pgid) in hidraw_ioctl()
876 if (sc->sc_async != NULL) { in hidraw_notify()
877 DPRINTFN(3, "sending SIGIO %p\n", sc->sc_async); in hidraw_notify()
878 PROC_LOCK(sc->sc_async); in hidraw_notify()
879 kern_psignal(sc->sc_async, SIGIO); in hidraw_notify()
880 PROC_UNLOCK(sc->sc_async); in hidraw_notify()