scsi_target.c (126076) | scsi_target.c (126080) |
---|---|
1/* 2 * Generic SCSI Target Kernel Mode Driver 3 * 4 * Copyright (c) 2002 Nate Lawson. 5 * Copyright (c) 1998, 1999, 2001, 2002 Justin T. Gibbs. 6 * All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 14 unchanged lines hidden (view full) --- 23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 * SUCH DAMAGE. 28 */ 29 30#include <sys/cdefs.h> | 1/* 2 * Generic SCSI Target Kernel Mode Driver 3 * 4 * Copyright (c) 2002 Nate Lawson. 5 * Copyright (c) 1998, 1999, 2001, 2002 Justin T. Gibbs. 6 * All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 14 unchanged lines hidden (view full) --- 23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 * SUCH DAMAGE. 28 */ 29 30#include <sys/cdefs.h> |
31__FBSDID("$FreeBSD: head/sys/cam/scsi/scsi_target.c 126076 2004-02-21 19:42:58Z phk $"); | 31__FBSDID("$FreeBSD: head/sys/cam/scsi/scsi_target.c 126080 2004-02-21 21:10:55Z phk $"); |
32 33#include <sys/param.h> 34#include <sys/systm.h> 35#include <sys/kernel.h> 36#include <sys/conf.h> 37#include <sys/malloc.h> 38#include <sys/poll.h> 39#include <sys/vnode.h> --- 60 unchanged lines hidden (view full) --- 100static d_poll_t targpoll; 101static d_kqfilter_t targkqfilter; 102static void targreadfiltdetach(struct knote *kn); 103static int targreadfilt(struct knote *kn, long hint); 104static struct filterops targread_filtops = 105 { 1, NULL, targreadfiltdetach, targreadfilt }; 106 107static struct cdevsw targ_cdevsw = { | 32 33#include <sys/param.h> 34#include <sys/systm.h> 35#include <sys/kernel.h> 36#include <sys/conf.h> 37#include <sys/malloc.h> 38#include <sys/poll.h> 39#include <sys/vnode.h> --- 60 unchanged lines hidden (view full) --- 100static d_poll_t targpoll; 101static d_kqfilter_t targkqfilter; 102static void targreadfiltdetach(struct knote *kn); 103static int targreadfilt(struct knote *kn, long hint); 104static struct filterops targread_filtops = 105 { 1, NULL, targreadfiltdetach, targreadfilt }; 106 107static struct cdevsw targ_cdevsw = { |
108 .d_version = D_VERSION, 109 .d_flags = D_NEEDGIANT, |
|
108 .d_open = targopen, 109 .d_close = targclose, 110 .d_read = targread, 111 .d_write = targwrite, 112 .d_ioctl = targioctl, 113 .d_poll = targpoll, 114 .d_name = "targ", 115 .d_kqfilter = targkqfilter --- 1086 unchanged lines hidden --- | 110 .d_open = targopen, 111 .d_close = targclose, 112 .d_read = targread, 113 .d_write = targwrite, 114 .d_ioctl = targioctl, 115 .d_poll = targpoll, 116 .d_name = "targ", 117 .d_kqfilter = targkqfilter --- 1086 unchanged lines hidden --- |