* Standard lock, unlock and islocked functions. */
(ap)
| 517 | * Standard lock, unlock and islocked functions. |
| 518 | */ |
| 519 | int |
| 520 | vop_stdlock(ap) |
| 521 | struct vop_lock1_args /* { |
| 522 | struct vnode *a_vp; |
| 523 | int a_flags; |
| 524 | char *file; |
| 525 | int line; |
| 526 | } */ *ap; |
| 527 | { |
| 528 | struct vnode *vp = ap->a_vp; |
| 529 | struct mtx *ilk; |
| 530 | |
| 531 | ilk = VI_MTX(vp); |
| 532 | return (lockmgr_lock_flags(vp->v_vnlock, ap->a_flags, |
| 533 | &ilk->lock_object, ap->a_file, ap->a_line)); |
| 534 | } |
| 535 | |
| 536 | /* See above. */ |
| 537 | int |
nothing calls this directly
no test coverage detected