subr_bus.c (113808) | subr_bus.c (114293) |
---|---|
1/*- 2 * Copyright (c) 1997,1998 Doug Rabson 3 * 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 --- 9 unchanged lines hidden (view full) --- 18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 * | 1/*- 2 * Copyright (c) 1997,1998 Doug Rabson 3 * 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 --- 9 unchanged lines hidden (view full) --- 18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 * |
26 * $FreeBSD: head/sys/kern/subr_bus.c 113808 2003-04-21 18:19:08Z imp $ | 26 * $FreeBSD: head/sys/kern/subr_bus.c 114293 2003-04-30 12:57:40Z markm $ |
27 */ 28 29#include "opt_bus.h" 30 31#include <sys/param.h> 32#include <sys/conf.h> 33#include <sys/filio.h> 34#include <sys/lock.h> --- 194 unchanged lines hidden (view full) --- 229struct dev_event_info 230{ 231 char *dei_data; 232 TAILQ_ENTRY(dev_event_info) dei_link; 233}; 234 235TAILQ_HEAD(devq, dev_event_info); 236 | 27 */ 28 29#include "opt_bus.h" 30 31#include <sys/param.h> 32#include <sys/conf.h> 33#include <sys/filio.h> 34#include <sys/lock.h> --- 194 unchanged lines hidden (view full) --- 229struct dev_event_info 230{ 231 char *dei_data; 232 TAILQ_ENTRY(dev_event_info) dei_link; 233}; 234 235TAILQ_HEAD(devq, dev_event_info); 236 |
237struct dev_softc | 237static struct dev_softc |
238{ 239 int inuse; 240 int nonblock; 241 struct mtx mtx; 242 struct cv cv; 243 struct selinfo sel; 244 struct devq devq; 245 struct proc *async_proc; 246} devsoftc; 247 | 238{ 239 int inuse; 240 int nonblock; 241 struct mtx mtx; 242 struct cv cv; 243 struct selinfo sel; 244 struct devq devq; 245 struct proc *async_proc; 246} devsoftc; 247 |
248dev_t devctl_dev; | 248static dev_t devctl_dev; |
249 250static void 251devinit(void) 252{ 253 devctl_dev = make_dev(&dev_cdevsw, 0, UID_ROOT, GID_WHEEL, 0600, 254 "devctl"); 255 mtx_init(&devsoftc.mtx, "dev mtx", "devd", MTX_DEF); 256 cv_init(&devsoftc.cv, "dev cv"); --- 2389 unchanged lines hidden --- | 249 250static void 251devinit(void) 252{ 253 devctl_dev = make_dev(&dev_cdevsw, 0, UID_ROOT, GID_WHEEL, 0600, 254 "devctl"); 255 mtx_init(&devsoftc.mtx, "dev mtx", "devd", MTX_DEF); 256 cv_init(&devsoftc.cv, "dev cv"); --- 2389 unchanged lines hidden --- |