Deleted Added
sdiff udiff text old ( 46792 ) new ( 47028 )
full compact
1/*-
2 * Parts Copyright (c) 1995 Terrence R. Lambert
3 * Copyright (c) 1995 Julian R. Elischer
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

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

25 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31 * SUCH DAMAGE.
32 *
33 * $Id: kern_conf.c,v 1.35 1999/05/09 08:18:12 phk Exp $
34 */
35
36#include <sys/param.h>
37#include <sys/systm.h>
38#include <sys/module.h>
39#include <sys/conf.h>
40#include <sys/vnode.h>
41

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

65 return(NODEV);
66}
67
68int
69cdevsw_add(dev_t *descrip,
70 struct cdevsw *newentry,
71 struct cdevsw **oldentry)
72{
73 int i ;
74
75 if ( *descrip == NODEV) { /* auto (0 is valid) */
76 /*
77 * Search the table looking for a slot...
78 */
79 for (i = cdevsw_ALLOCSTART; i < nchrdev; i++)
80 if (cdevsw[i] == NULL)
81 break; /* found one! */
82 /* out of allocable slots? */

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

156 return error;
157 }
158
159 if (data->chainevh)
160 return data->chainevh(mod, what, data->chainarg);
161 else
162 return 0;
163}