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

Function zrl_init

freebsd/contrib/openzfs/module/zfs/zrlock.c:51–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49#define ZRL_DESTROYED -2
50
51void
52zrl_init(zrlock_t *zrl)
53{
54 mutex_init(&zrl->zr_mtx, NULL, MUTEX_DEFAULT, NULL);
55 zrl->zr_refcount = 0;
56 cv_init(&zrl->zr_cv, NULL, CV_DEFAULT, NULL);
57#ifdef ZFS_DEBUG
58 zrl->zr_owner = NULL;
59 zrl->zr_caller = NULL;
60#endif
61}
62
63void
64zrl_destroy(zrlock_t *zrl)

Callers 2

dnode_special_openFunction · 0.85
dnode_hold_implFunction · 0.85

Calls 2

mutex_initFunction · 0.50
cv_initFunction · 0.50

Tested by

no test coverage detected