Lines Matching refs:logsoftc
87 static struct logsoftc {
92 } logsoftc;
120 callout_reset_sbt(&logsoftc.sc_callout,
124 fsetown(td->td_proc->p_pid, &logsoftc.sc_sigio); /* signal process only */
133 funsetown(&logsoftc.sc_sigio);
136 callout_stop(&logsoftc.sc_callout);
137 logsoftc.sc_state = 0;
190 selrecord(td, &logsoftc.sc_selp);
207 knlist_add(&logsoftc.sc_selp.si_note, kn, 1);
226 knlist_remove(&logsoftc.sc_selp.si_note, kn, 1);
239 selwakeuppri(&logsoftc.sc_selp, LOG_RDPRI);
240 KNOTE_LOCKED(&logsoftc.sc_selp.si_note, 0);
241 if ((logsoftc.sc_state & LOG_ASYNC) && logsoftc.sc_sigio != NULL)
242 pgsigio(&logsoftc.sc_sigio, SIGIO, 0);
249 callout_reset_sbt(&logsoftc.sc_callout,
271 logsoftc.sc_state |= LOG_ASYNC;
273 logsoftc.sc_state &= ~LOG_ASYNC;
278 return (fsetown(*(int *)data, &logsoftc.sc_sigio));
281 *(int *)data = fgetown(&logsoftc.sc_sigio);
286 return (fsetown(-(*(int *)data), &logsoftc.sc_sigio));
290 *(int *)data = -fgetown(&logsoftc.sc_sigio);
304 callout_init_mtx(&logsoftc.sc_callout, &msgbuf_lock, 0);
305 knlist_init_mtx(&logsoftc.sc_selp.si_note, &msgbuf_lock);