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

Function vrefact

freebsd/kern/vfs_subr.c:3025–3036  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3023}
3024
3025void
3026vrefact(struct vnode *vp)
3027{
3028
3029 CTR2(KTR_VFS, "%s: vp %p", __func__, vp);
3030#ifdef INVARIANTS
3031 int old = atomic_fetchadd_int(&vp->v_usecount, 1);
3032 VNASSERT(old > 0, vp, ("%s: wrong use count %d", __func__, old));
3033#else
3034 refcount_acquire(&vp->v_usecount);
3035#endif
3036}
3037
3038void
3039vlazy(struct vnode *vp)

Callers 15

do_forkFunction · 0.70
_fgetvpFunction · 0.70
fgetvp_rightsFunction · 0.70
pwd_fillFunction · 0.70
pwd_chrootFunction · 0.70
pwd_chroot_chdirFunction · 0.70
pwd_ensure_dirsFunction · 0.70
pwd_set_rootvnodeFunction · 0.70
mountcheckdirsFunction · 0.70
kern_proc_filedesc_outFunction · 0.70
export_vnode_for_osysctlFunction · 0.70
kern_proc_cwd_outFunction · 0.70

Calls 2

refcount_acquireFunction · 0.85
atomic_fetchadd_intFunction · 0.50

Tested by

no test coverage detected