1/*
2 * Copyright (c) 2000-2001 Boris Popov
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
--- 15 unchanged lines hidden (view full) ---
24 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30 * SUCH DAMAGE.
31 *
32 * $FreeBSD: head/sys/netsmb/smb_dev.c 111621 2003-02-27 14:35:21Z tjr $
33 */
34#include <sys/param.h>
35#include <sys/kernel.h>
36#include <sys/systm.h>
37#include <sys/conf.h>
38#include <sys/fcntl.h>
39#include <sys/ioccom.h>
40#include <sys/lock.h>
--- 39 unchanged lines hidden (view full) ---
80static MALLOC_DEFINE(M_NSMBDEV, "NETSMBDEV", "NET/SMB device");
81
82
83/*
84int smb_dev_queue(struct smb_dev *ndp, struct smb_rq *rqp, int prio);
85*/
86
87static struct cdevsw nsmb_cdevsw = {
88 /* open */ nsmb_dev_open,
89 /* close */ nsmb_dev_close,
90 /* read */ noread,
91 /* write */ nowrite,
92 /* ioctl */ nsmb_dev_ioctl,
93 /* poll */ nopoll,
94 /* mmap */ nommap,
95 /* strategy */ nostrategy,
96 /* name */ NSMB_NAME,
97 /* maj */ NSMB_MAJOR,
98 /* dump */ nodump,
99 /* psize */ nopsize,
100 /* flags */ 0,
101#ifndef FB_CURRENT
102 /* bmaj */ -1
103#endif
104};
105
106static eventhandler_tag nsmb_dev_tag;
107
108static void
--- 315 unchanged lines hidden ---
2 * Copyright (c) 2000-2001 Boris Popov
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
--- 15 unchanged lines hidden (view full) ---
24 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30 * SUCH DAMAGE.
31 *
32 * $FreeBSD: head/sys/netsmb/smb_dev.c 111621 2003-02-27 14:35:21Z tjr $
33 */
34#include <sys/param.h>
35#include <sys/kernel.h>
36#include <sys/systm.h>
37#include <sys/conf.h>
38#include <sys/fcntl.h>
39#include <sys/ioccom.h>
40#include <sys/lock.h>
--- 39 unchanged lines hidden (view full) ---
80static MALLOC_DEFINE(M_NSMBDEV, "NETSMBDEV", "NET/SMB device");
81
82
83/*
84int smb_dev_queue(struct smb_dev *ndp, struct smb_rq *rqp, int prio);
85*/
86
87static struct cdevsw nsmb_cdevsw = {
88 /* open */ nsmb_dev_open,
89 /* close */ nsmb_dev_close,
90 /* read */ noread,
91 /* write */ nowrite,
92 /* ioctl */ nsmb_dev_ioctl,
93 /* poll */ nopoll,
94 /* mmap */ nommap,
95 /* strategy */ nostrategy,
96 /* name */ NSMB_NAME,
97 /* maj */ NSMB_MAJOR,
98 /* dump */ nodump,
99 /* psize */ nopsize,
100 /* flags */ 0,
101#ifndef FB_CURRENT
102 /* bmaj */ -1
103#endif
104};
105
106static eventhandler_tag nsmb_dev_tag;
107
108static void
--- 315 unchanged lines hidden ---