kern_conf.c (111760) | kern_conf.c (111815) |
---|---|
1/*- 2 * Copyright (c) 1999-2002 Poul-Henning Kamp 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) 1999-2002 Poul-Henning Kamp 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/kern_conf.c 111760 2003-03-02 19:46:45Z phk $ | 26 * $FreeBSD: head/sys/kern/kern_conf.c 111815 2003-03-03 12:15:54Z phk $ |
27 */ 28 29#include <sys/param.h> 30#include <sys/kernel.h> 31#include <sys/systm.h> 32#include <sys/bio.h> 33#include <sys/lock.h> 34#include <sys/mutex.h> --- 55 unchanged lines hidden (view full) --- 90 biofinish(bp, NULL, ENXIO); 91} 92 93#define dead_dump (dumper_t *)enxio 94 95#define dead_kqfilter (d_kqfilter_t *)enxio 96 97static struct cdevsw dead_cdevsw = { | 27 */ 28 29#include <sys/param.h> 30#include <sys/kernel.h> 31#include <sys/systm.h> 32#include <sys/bio.h> 33#include <sys/lock.h> 34#include <sys/mutex.h> --- 55 unchanged lines hidden (view full) --- 90 biofinish(bp, NULL, ENXIO); 91} 92 93#define dead_dump (dumper_t *)enxio 94 95#define dead_kqfilter (d_kqfilter_t *)enxio 96 97static struct cdevsw dead_cdevsw = { |
98 /* open */ dead_open, 99 /* close */ dead_close, 100 /* read */ dead_read, 101 /* write */ dead_write, 102 /* ioctl */ dead_ioctl, 103 /* poll */ dead_poll, 104 /* mmap */ dead_mmap, 105 /* strategy */ dead_strategy, 106 /* name */ "dead", 107 /* maj */ 255, 108 /* dump */ dead_dump, 109 /* psize */ nopsize, 110 /* flags */ 0, 111 /* kqfilter */ dead_kqfilter | 98 .d_open = dead_open, 99 .d_close = dead_close, 100 .d_read = dead_read, 101 .d_write = dead_write, 102 .d_ioctl = dead_ioctl, 103 .d_poll = dead_poll, 104 .d_mmap = dead_mmap, 105 .d_strategy = dead_strategy, 106 .d_name = "dead", 107 .d_maj = 255, 108 .d_dump = dead_dump, 109 .d_kqfilter = dead_kqfilter |
112}; 113 114 115struct cdevsw * 116devsw(dev_t dev) 117{ 118 if (dev->si_devsw) 119 return (dev->si_devsw); --- 392 unchanged lines hidden --- | 110}; 111 112 113struct cdevsw * 114devsw(dev_t dev) 115{ 116 if (dev->si_devsw) 117 return (dev->si_devsw); --- 392 unchanged lines hidden --- |