MCPcopy Create free account
hub / github.com/F-Stack/f-stack / vop_stdlock

Function vop_stdlock

freebsd/kern/vfs_default.c:519–534  ·  view source on GitHub ↗

* Standard lock, unlock and islocked functions. */

(ap)

Source from the content-addressed store, hash-verified

517 * Standard lock, unlock and islocked functions.
518 */
519int
520vop_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. */
537int

Callers

nothing calls this directly

Calls 1

lockmgr_lock_flagsFunction · 0.85

Tested by

no test coverage detected