Deleted Added
full compact
vfs_init.c (12623) vfs_init.c (12913)
1/*
2 * Copyright (c) 1989, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * This code is derived from software contributed
6 * to Berkeley by John Heidemann of the UCLA Ficus project.
7 *
8 * Source: * @(#)i405_init.c 2.10 92/04/27 UCLA Ficus project

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

31 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
32 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
33 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
34 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
35 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
36 * SUCH DAMAGE.
37 *
38 * @(#)vfs_init.c 8.3 (Berkeley) 1/4/94
1/*
2 * Copyright (c) 1989, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * This code is derived from software contributed
6 * to Berkeley by John Heidemann of the UCLA Ficus project.
7 *
8 * Source: * @(#)i405_init.c 2.10 92/04/27 UCLA Ficus project

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

31 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
32 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
33 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
34 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
35 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
36 * SUCH DAMAGE.
37 *
38 * @(#)vfs_init.c 8.3 (Berkeley) 1/4/94
39 * $Id: vfs_init.c,v 1.17 1995/12/03 18:00:35 bde Exp $
39 * $Id: vfs_init.c,v 1.18 1995/12/04 16:48:34 phk Exp $
40 */
41
42
43#include <sys/param.h>
44#include <sys/systm.h>
45#include <sys/kernel.h>
46#include <sys/mount.h>
47#include <sys/time.h>
48#include <sys/vnode.h>
49#include <sys/stat.h>
50#include <sys/namei.h>
51#include <sys/ucred.h>
52#include <sys/buf.h>
53#include <sys/errno.h>
54#include <sys/malloc.h>
55#include <sys/proc.h>
56#include <vm/vm.h>
57#include <sys/sysctl.h>
58
40 */
41
42
43#include <sys/param.h>
44#include <sys/systm.h>
45#include <sys/kernel.h>
46#include <sys/mount.h>
47#include <sys/time.h>
48#include <sys/vnode.h>
49#include <sys/stat.h>
50#include <sys/namei.h>
51#include <sys/ucred.h>
52#include <sys/buf.h>
53#include <sys/errno.h>
54#include <sys/malloc.h>
55#include <sys/proc.h>
56#include <vm/vm.h>
57#include <sys/sysctl.h>
58
59extern void vfs_op_init __P((void));
59static void vfs_op_init __P((void));
60
61static void vfsinit __P((void *));
62SYSINIT(vfs, SI_SUB_VFS, SI_ORDER_FIRST, vfsinit, NULL)
63
64/*
65 * Sigh, such primitive tools are these...
66 */
67#if 0

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

82extern struct vnodeop_desc *vfs_op_descs[];
83 /* and the operations they perform */
84/*
85 * This code doesn't work if the defn is **vnodop_defns with cc.
86 * The problem is because of the compiler sometimes putting in an
87 * extra level of indirection for arrays. It's an interesting
88 * "feature" of C.
89 */
60
61static void vfsinit __P((void *));
62SYSINIT(vfs, SI_SUB_VFS, SI_ORDER_FIRST, vfsinit, NULL)
63
64/*
65 * Sigh, such primitive tools are these...
66 */
67#if 0

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

82extern struct vnodeop_desc *vfs_op_descs[];
83 /* and the operations they perform */
84/*
85 * This code doesn't work if the defn is **vnodop_defns with cc.
86 * The problem is because of the compiler sometimes putting in an
87 * extra level of indirection for arrays. It's an interesting
88 * "feature" of C.
89 */
90int vfs_opv_numops;
90static int vfs_opv_numops;
91
92/*
93 * A miscellaneous routine.
94 * A generic "default" routine that just returns an error.
95 */
96int
97vn_default_error()
98{

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

197 opv_desc_vector[k] =
198 opv_desc_vector[VOFFSET(vop_default)];
199 }
200}
201
202/*
203 * Initialize known vnode operations vectors.
204 */
91
92/*
93 * A miscellaneous routine.
94 * A generic "default" routine that just returns an error.
95 */
96int
97vn_default_error()
98{

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

197 opv_desc_vector[k] =
198 opv_desc_vector[VOFFSET(vop_default)];
199 }
200}
201
202/*
203 * Initialize known vnode operations vectors.
204 */
205void
205static void
206vfs_op_init()
207{
208 int i;
209
210 DODEBUG(printf("Vnode_interface_init.\n"));
211 /*
212 * Set all vnode vectors to a well known value.
213 */

--- 101 unchanged lines hidden ---
206vfs_op_init()
207{
208 int i;
209
210 DODEBUG(printf("Vnode_interface_init.\n"));
211 /*
212 * Set all vnode vectors to a well known value.
213 */

--- 101 unchanged lines hidden ---