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

Function vop_stdadvlockasync

freebsd/kern/vfs_default.c:448–467  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

446}
447
448int
449vop_stdadvlockasync(struct vop_advlockasync_args *ap)
450{
451 struct vnode *vp;
452 struct vattr vattr;
453 int error;
454
455 vp = ap->a_vp;
456 if (ap->a_fl->l_whence == SEEK_END) {
457 /* The size argument is only needed for SEEK_END. */
458 vn_lock(vp, LK_SHARED | LK_RETRY);
459 error = VOP_GETATTR(vp, &vattr, curthread->td_ucred);
460 VOP_UNLOCK(vp);
461 if (error)
462 return (error);
463 } else
464 vattr.va_size = 0;
465
466 return (lf_advlockasync(ap, &(vp->v_lockf), vattr.va_size));
467}
468
469int
470vop_stdadvlockpurge(struct vop_advlockpurge_args *ap)

Callers

nothing calls this directly

Calls 3

vn_lockFunction · 0.85
VOP_GETATTRFunction · 0.85
lf_advlockasyncFunction · 0.85

Tested by

no test coverage detected