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

Function vunref

freebsd/kern/vfs_subr.c:3290–3299  ·  view source on GitHub ↗

* in: locked * out: locked */

Source from the content-addressed store, hash-verified

3288 * out: locked
3289 */
3290void
3291vunref(struct vnode *vp)
3292{
3293
3294 ASSERT_VOP_LOCKED(vp, __func__);
3295 ASSERT_VI_UNLOCKED(vp, __func__);
3296 if (!refcount_release(&vp->v_usecount))
3297 return;
3298 vput_final(vp, VUNREF);
3299}
3300
3301void
3302vhold(struct vnode *vp)

Callers 4

vn_vget_ino_genFunction · 0.85
vop_stdunset_textFunction · 0.85
vfs_unp_reclaimFunction · 0.85
vnode_pager_deallocFunction · 0.85

Calls 2

refcount_releaseFunction · 0.85
vput_finalFunction · 0.85

Tested by

no test coverage detected