vfs_default.c (0c974a1f1684e3f0baf7b2c974a66853e0f6838b) | vfs_default.c (6bdfe06ad9337a33a402bc933006265c30980780) |
---|---|
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 --- 241 unchanged lines hidden (view full) --- 250 return (lockmgr(l, ap->a_flags | LK_RELEASE, &ap->a_vp->v_interlock, 251 ap->a_p)); 252} 253 254int 255vop_stdislocked(ap) 256 struct vop_islocked_args /* { 257 struct vnode *a_vp; | 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 --- 241 unchanged lines hidden (view full) --- 250 return (lockmgr(l, ap->a_flags | LK_RELEASE, &ap->a_vp->v_interlock, 251 ap->a_p)); 252} 253 254int 255vop_stdislocked(ap) 256 struct vop_islocked_args /* { 257 struct vnode *a_vp; |
258 struct proc *a_p; |
|
258 } */ *ap; 259{ 260 struct lock *l; 261 262 if ((l = (struct lock *)ap->a_vp->v_data) == NULL) 263 return 0; 264 | 259 } */ *ap; 260{ 261 struct lock *l; 262 263 if ((l = (struct lock *)ap->a_vp->v_data) == NULL) 264 return 0; 265 |
265 return (lockstatus(l)); | 266 return (lockstatus(l, ap->a_p)); |
266} 267 268/* 269 * Return true for select/poll. 270 */ 271int 272vop_nopoll(ap) 273 struct vop_poll_args /* { --- 205 unchanged lines hidden (view full) --- 479 480/* 481 * Return whether or not the node is in use. 482 */ 483int 484vop_noislocked(ap) 485 struct vop_islocked_args /* { 486 struct vnode *a_vp; | 267} 268 269/* 270 * Return true for select/poll. 271 */ 272int 273vop_nopoll(ap) 274 struct vop_poll_args /* { --- 205 unchanged lines hidden (view full) --- 480 481/* 482 * Return whether or not the node is in use. 483 */ 484int 485vop_noislocked(ap) 486 struct vop_islocked_args /* { 487 struct vnode *a_vp; |
488 struct proc *a_p; |
|
487 } */ *ap; 488{ 489 struct vnode *vp = ap->a_vp; 490 491 if (vp->v_vnlock == NULL) 492 return (0); | 489 } */ *ap; 490{ 491 struct vnode *vp = ap->a_vp; 492 493 if (vp->v_vnlock == NULL) 494 return (0); |
493 return (lockstatus(vp->v_vnlock)); | 495 return (lockstatus(vp->v_vnlock, ap->a_p)); |
494} 495 496/* 497 * vfs default ops 498 * used to fill the vfs fucntion table to get reasonable default return values. 499 */ 500int 501vfs_stdmount (mp, path, data, ndp, p) --- 116 unchanged lines hidden --- | 496} 497 498/* 499 * vfs default ops 500 * used to fill the vfs fucntion table to get reasonable default return values. 501 */ 502int 503vfs_stdmount (mp, path, data, ndp, p) --- 116 unchanged lines hidden --- |