null_subr.c (22975) | null_subr.c (24987) |
---|---|
1/* 2 * Copyright (c) 1992, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * This code is derived from software donated to Berkeley by 6 * Jan-Simon Pendry. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 21 unchanged lines hidden (view full) --- 30 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 31 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 32 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 33 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 34 * SUCH DAMAGE. 35 * 36 * @(#)null_subr.c 8.7 (Berkeley) 5/14/95 37 * | 1/* 2 * Copyright (c) 1992, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * This code is derived from software donated to Berkeley by 6 * Jan-Simon Pendry. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 21 unchanged lines hidden (view full) --- 30 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 31 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 32 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 33 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 34 * SUCH DAMAGE. 35 * 36 * @(#)null_subr.c 8.7 (Berkeley) 5/14/95 37 * |
38 * $Id$ | 38 * $Id: null_subr.c,v 1.9 1997/02/22 09:40:21 peter Exp $ |
39 */ 40 41#include <sys/param.h> 42#include <sys/systm.h> 43#include <sys/proc.h> 44#include <sys/time.h> 45#include <sys/types.h> 46#include <sys/vnode.h> --- 70 unchanged lines hidden (view full) --- 117 if (vget(vp, 0, p)) { 118 printf ("null_node_find: vget failed.\n"); 119 goto loop; 120 }; 121 return (vp); 122 } 123 } 124 | 39 */ 40 41#include <sys/param.h> 42#include <sys/systm.h> 43#include <sys/proc.h> 44#include <sys/time.h> 45#include <sys/types.h> 46#include <sys/vnode.h> --- 70 unchanged lines hidden (view full) --- 117 if (vget(vp, 0, p)) { 118 printf ("null_node_find: vget failed.\n"); 119 goto loop; 120 }; 121 return (vp); 122 } 123 } 124 |
125 return NULL; | 125 return NULLVP; |
126} 127 128 129/* 130 * Make a new null_node node. 131 * Vp is the alias vnode, lofsvp is the lower vnode. 132 * Maintain a reference to (lowervp). 133 */ --- 124 unchanged lines hidden (view full) --- 258 * with a funny vop vector. 259 */ 260 if (vp->v_op != null_vnodeop_p) { 261 printf ("null_checkvp: on non-null-node\n"); 262 while (null_checkvp_barrier) /*WAIT*/ ; 263 panic("null_checkvp"); 264 }; 265#endif | 126} 127 128 129/* 130 * Make a new null_node node. 131 * Vp is the alias vnode, lofsvp is the lower vnode. 132 * Maintain a reference to (lowervp). 133 */ --- 124 unchanged lines hidden (view full) --- 258 * with a funny vop vector. 259 */ 260 if (vp->v_op != null_vnodeop_p) { 261 printf ("null_checkvp: on non-null-node\n"); 262 while (null_checkvp_barrier) /*WAIT*/ ; 263 panic("null_checkvp"); 264 }; 265#endif |
266 if (a->null_lowervp == NULL) { | 266 if (a->null_lowervp == NULLVP) { |
267 /* Should never happen */ 268 int i; u_long *p; 269 printf("vp = %x, ZERO ptr\n", vp); 270 for (p = (u_long *) a, i = 0; i < 8; i++) 271 printf(" %x", p[i]); 272 printf("\n"); 273 /* wait for debugger */ 274 while (null_checkvp_barrier) /*WAIT*/ ; --- 21 unchanged lines hidden --- | 267 /* Should never happen */ 268 int i; u_long *p; 269 printf("vp = %x, ZERO ptr\n", vp); 270 for (p = (u_long *) a, i = 0; i < 8; i++) 271 printf(" %x", p[i]); 272 printf("\n"); 273 /* wait for debugger */ 274 while (null_checkvp_barrier) /*WAIT*/ ; --- 21 unchanged lines hidden --- |