Lines Matching refs:sc_async
103 struct proc *sc_async; /* process that wants SIGIO */ member
374 sc->sc_async = 0; in hidraw_open()
396 sc->sc_async = 0; in hidraw_dtor()
618 if (sc->sc_async == NULL) { in hidraw_ioctl()
619 sc->sc_async = td->td_proc; in hidraw_ioctl()
620 DPRINTF("FIOASYNC %p\n", sc->sc_async); in hidraw_ioctl()
624 sc->sc_async = NULL; in hidraw_ioctl()
631 if (sc->sc_async == NULL) in hidraw_ioctl()
633 else if (*(int *)addr != sc->sc_async->p_pgid) in hidraw_ioctl()
990 if (sc->sc_async != NULL) { in hidraw_notify()
991 DPRINTFN(3, "sending SIGIO %p\n", sc->sc_async); in hidraw_notify()
992 PROC_LOCK(sc->sc_async); in hidraw_notify()
993 kern_psignal(sc->sc_async, SIGIO); in hidraw_notify()
994 PROC_UNLOCK(sc->sc_async); in hidraw_notify()