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 111815 2003-03-03 12:15:54Z phk $
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 .d_open = nsmb_dev_open,
89 .d_close = nsmb_dev_close,
90 .d_ioctl = nsmb_dev_ioctl,
91 .d_name = NSMB_NAME,
92 .d_maj = NSMB_MAJOR,
93#ifndef FB_CURRENT
94 /* bmaj */ -1
95#endif
96};
97
98static eventhandler_tag nsmb_dev_tag;
99
100static 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 111815 2003-03-03 12:15:54Z phk $
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 .d_open = nsmb_dev_open,
89 .d_close = nsmb_dev_close,
90 .d_ioctl = nsmb_dev_ioctl,
91 .d_name = NSMB_NAME,
92 .d_maj = NSMB_MAJOR,
93#ifndef FB_CURRENT
94 /* bmaj */ -1
95#endif
96};
97
98static eventhandler_tag nsmb_dev_tag;
99
100static void
--- 315 unchanged lines hidden ---