subr_log.c (62d6ce3af2982b9b9e5fd7098abfeff5e681f5f7) subr_log.c (f1d19042b082d95f07a0027e596ba2405aa8a9a5)
1/*
2 * Copyright (c) 1982, 1986, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 17 unchanged lines hidden (view full) ---

26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31 * SUCH DAMAGE.
32 *
33 * @(#)subr_log.c 8.1 (Berkeley) 6/10/93
1/*
2 * Copyright (c) 1982, 1986, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 17 unchanged lines hidden (view full) ---

26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31 * SUCH DAMAGE.
32 *
33 * @(#)subr_log.c 8.1 (Berkeley) 6/10/93
34 * $Id: subr_log.c,v 1.31 1998/11/11 10:03:55 truckman Exp $
34 * $Id: subr_log.c,v 1.32 1998/11/11 10:55:56 truckman Exp $
35 */
36
37/*
38 * Error log buffer for kernel printf's.
39 */
40
41#include "opt_devfs.h"
42

--- 132 unchanged lines hidden (view full) ---

175
176 splx(s);
177 return (revents);
178}
179
180void
181logwakeup()
182{
35 */
36
37/*
38 * Error log buffer for kernel printf's.
39 */
40
41#include "opt_devfs.h"
42

--- 132 unchanged lines hidden (view full) ---

175
176 splx(s);
177 return (revents);
178}
179
180void
181logwakeup()
182{
183 struct proc *p;
184
185 if (!log_open)
186 return;
187 selwakeup(&logsoftc.sc_selp);
188 if ((logsoftc.sc_state & LOG_ASYNC) && logsoftc.sc_sigio != NULL)
189 pgsigio(logsoftc.sc_sigio, SIGIO, 0);
190 if (logsoftc.sc_state & LOG_RDWAIT) {
191 wakeup((caddr_t)msgbufp);
192 logsoftc.sc_state &= ~LOG_RDWAIT;

--- 84 unchanged lines hidden ---
183 if (!log_open)
184 return;
185 selwakeup(&logsoftc.sc_selp);
186 if ((logsoftc.sc_state & LOG_ASYNC) && logsoftc.sc_sigio != NULL)
187 pgsigio(logsoftc.sc_sigio, SIGIO, 0);
188 if (logsoftc.sc_state & LOG_RDWAIT) {
189 wakeup((caddr_t)msgbufp);
190 logsoftc.sc_state &= ~LOG_RDWAIT;

--- 84 unchanged lines hidden ---