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

Function v_init_counters

freebsd/kern/vfs_subr.c:2876–2886  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2874}
2875
2876static void
2877v_init_counters(struct vnode *vp)
2878{
2879
2880 VNASSERT(vp->v_type == VNON && vp->v_data == NULL && vp->v_iflag == 0,
2881 vp, ("%s called for an initialized vnode", __FUNCTION__));
2882 ASSERT_VI_UNLOCKED(vp, __FUNCTION__);
2883
2884 refcount_init(&vp->v_holdcnt, 1);
2885 refcount_init(&vp->v_usecount, 1);
2886}
2887
2888/*
2889 * Grab a particular vnode from the free list, increment its

Callers 1

vfs_subr.cFile · 0.85

Calls 1

refcount_initFunction · 0.85

Tested by

no test coverage detected