Deleted Added
full compact
coda_fbsd.c (43311) coda_fbsd.c (47625)
1/*
2 *
3 * Coda: an Experimental Distributed File System
4 * Release 3.1
5 *
6 * Copyright (c) 1987-1998 Carnegie Mellon University
7 * All Rights Reserved
8 *

--- 13 unchanged lines hidden (view full) ---

22 * RESULTING DIRECTLY OR INDIRECTLY FROM THE USE OF THIS SOFTWARE OR OF
23 * ANY DERIVATIVE WORK.
24 *
25 * Carnegie Mellon encourages users of this software to return any
26 * improvements or extensions that they make, and to grant Carnegie
27 * Mellon the rights to redistribute these changes without encumbrance.
28 *
29 * @(#) src/sys/coda/coda_fbsd.cr,v 1.1.1.1 1998/08/29 21:14:52 rvb Exp $
1/*
2 *
3 * Coda: an Experimental Distributed File System
4 * Release 3.1
5 *
6 * Copyright (c) 1987-1998 Carnegie Mellon University
7 * All Rights Reserved
8 *

--- 13 unchanged lines hidden (view full) ---

22 * RESULTING DIRECTLY OR INDIRECTLY FROM THE USE OF THIS SOFTWARE OR OF
23 * ANY DERIVATIVE WORK.
24 *
25 * Carnegie Mellon encourages users of this software to return any
26 * improvements or extensions that they make, and to grant Carnegie
27 * Mellon the rights to redistribute these changes without encumbrance.
28 *
29 * @(#) src/sys/coda/coda_fbsd.cr,v 1.1.1.1 1998/08/29 21:14:52 rvb Exp $
30 * $Id: coda_fbsd.c,v 1.12 1999/01/27 20:09:17 dillon Exp $
30 * $Id: coda_fbsd.c,v 1.13 1999/01/28 00:57:46 dillon Exp $
31 *
32 */
33
34#include "vcoda.h"
35#include "opt_devfs.h"
36
37#include <sys/param.h>
38#include <sys/systm.h>

--- 29 unchanged lines hidden (view full) ---

68 > Also I need a character device major number. (and might want to reserve
69 > a block of 10 syscalls.)
70
71 Just one char device number? No block devices? Very well, cdev 93 is yours!
72*/
73
74#define VC_DEV_NO 93
75
31 *
32 */
33
34#include "vcoda.h"
35#include "opt_devfs.h"
36
37#include <sys/param.h>
38#include <sys/systm.h>

--- 29 unchanged lines hidden (view full) ---

68 > Also I need a character device major number. (and might want to reserve
69 > a block of 10 syscalls.)
70
71 Just one char device number? No block devices? Very well, cdev 93 is yours!
72*/
73
74#define VC_DEV_NO 93
75
76static struct cdevsw codadevsw =
77{
78 vc_nb_open, vc_nb_close, vc_nb_read, vc_nb_write, /*93*/
79 vc_nb_ioctl, nostop, nullreset, nodevtotty,
80 vc_nb_poll, nommap, NULL, "Coda", NULL, -1
76static struct cdevsw codadevsw = {
77 /* open */ vc_nb_open,
78 /* close */ vc_nb_close,
79 /* read */ vc_nb_read,
80 /* write */ vc_nb_write,
81 /* ioctl */ vc_nb_ioctl,
82 /* stop */ nostop,
83 /* reset */ noreset,
84 /* devtotty */ nodevtotty,
85 /* poll */ vc_nb_poll,
86 /* mmap */ nommap,
87 /* strategy */ nostrategy,
88 /* name */ "Coda",
89 /* parms */ noparms,
90 /* maj */ VC_DEV_NO,
91 /* dump */ nodump,
92 /* psize */ nopsize,
93 /* flags */ 0,
94 /* maxio */ 0,
95 /* bmaj */ -1
81};
82
83int vcdebug = 1;
84#define VCDEBUG if (vcdebug) printf
85
86static int
87codadev_modevent(module_t mod, int type, void *data)
88{

--- 128 unchanged lines hidden ---
96};
97
98int vcdebug = 1;
99#define VCDEBUG if (vcdebug) printf
100
101static int
102codadev_modevent(module_t mod, int type, void *data)
103{

--- 128 unchanged lines hidden ---