iodev.c (133036) | iodev.c (179990) |
---|---|
1/*- 2 * Copyright (c) 2004 Mark R V Murray 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 --- 12 unchanged lines hidden (view full) --- 21 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 22 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 24 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25 * 26 */ 27 28#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2004 Mark R V Murray 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 --- 12 unchanged lines hidden (view full) --- 21 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 22 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 24 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25 * 26 */ 27 28#include <sys/cdefs.h> |
29__FBSDID("$FreeBSD: head/sys/dev/io/iodev.c 133036 2004-08-02 20:42:28Z markm $"); | 29__FBSDID("$FreeBSD: head/sys/dev/io/iodev.c 179990 2008-06-25 07:45:31Z ed $"); |
30 31#include <sys/param.h> 32#include <sys/conf.h> 33#include <sys/fcntl.h> 34#include <sys/kernel.h> 35#include <sys/lock.h> 36#include <sys/malloc.h> 37#include <sys/module.h> --- 23 unchanged lines hidden (view full) --- 61/* ARGSUSED */ 62static int 63io_modevent(module_t mod __unused, int type, void *data __unused) 64{ 65 switch(type) { 66 case MOD_LOAD: 67 if (bootverbose) 68 printf("io: <I/O>\n"); | 30 31#include <sys/param.h> 32#include <sys/conf.h> 33#include <sys/fcntl.h> 34#include <sys/kernel.h> 35#include <sys/lock.h> 36#include <sys/malloc.h> 37#include <sys/module.h> --- 23 unchanged lines hidden (view full) --- 61/* ARGSUSED */ 62static int 63io_modevent(module_t mod __unused, int type, void *data __unused) 64{ 65 switch(type) { 66 case MOD_LOAD: 67 if (bootverbose) 68 printf("io: <I/O>\n"); |
69 iodev = make_dev(&io_cdevsw, CDEV_MINOR_IO, | 69 iodev = make_dev(&io_cdevsw, 0, |
70 UID_ROOT, GID_WHEEL, 0600, "io"); 71 break; 72 73 case MOD_UNLOAD: 74 destroy_dev(iodev); 75 break; 76 77 case MOD_SHUTDOWN: --- 13 unchanged lines hidden --- | 70 UID_ROOT, GID_WHEEL, 0600, "io"); 71 break; 72 73 case MOD_UNLOAD: 74 destroy_dev(iodev); 75 break; 76 77 case MOD_SHUTDOWN: --- 13 unchanged lines hidden --- |