sys/bus/cam/scsi/scsi_target.c
/* Notify the user's kqueue when the user queue or abort queue gets a CCB */
Notify the user's kqueue when the user queue or abort queue gets a CCB
Notify the user ' s kqueue when the user queue or abort queue gets a CCB
static int
targreadfilt(struct knote *kn, long hint)
{
	struct targ_softc *softc;
	int	retval;
	softc = (struct targ_softc *)kn->kn_hook;
	cam_periph_lock(softc->periph);
	retval = !TAILQ_EMPTY(&softc->user_ccb_queue) ||
		 !TAILQ_EMPTY(&softc->abort_queue);
	cam_periph_unlock(softc->periph);
	return (retval);
}
static int targreadfilt ( struct knote * kn , long hint ) { struct targ_softc * softc ; int retval ; softc = ( struct targ_softc * ) kn -> kn_hook ; cam_periph_lock ( softc -> periph ) ; retval = ! TAILQ_EMPTY ( & softc -> user_ccb_queue ) || ! TAILQ_EMPTY ( & softc -> abort_queue ) ; cam_periph_unlock ( softc -> periph ) ; return ( retval ) ; }
Notify the user's kqueue when the user queue or abort queue gets a CCB
Notify the user ' s kqueue when the user queue or abort queue gets a CCB