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

Function cv_wait

freebsd/contrib/openzfs/lib/libzpool/kernel.c:335–341  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

333}
334
335void
336cv_wait(kcondvar_t *cv, kmutex_t *mp)
337{
338 memset(&mp->m_owner, 0, sizeof (pthread_t));
339 VERIFY0(pthread_cond_wait(cv, &mp->m_lock));
340 mp->m_owner = pthread_self();
341}
342
343int
344cv_wait_sig(kcondvar_t *cv, kmutex_t *mp)

Callers 15

callb_add_commonFunction · 0.85
callb_deleteFunction · 0.85
callb_execute_classFunction · 0.85
zfs_dirent_lockFunction · 0.85
dmu_tx_waitFunction · 0.85
vdev_rebuild_rangeFunction · 0.85
vdev_rebuild_threadFunction · 0.85
vdev_rebuild_stop_waitFunction · 0.85
mmp_thread_stopFunction · 0.85
vdev_initialize_writeFunction · 0.85
vdev_initialize_threadFunction · 0.85

Calls 1

memsetFunction · 0.85

Tested by 2

run_sweepFunction · 0.68
ztest_rll_lockFunction · 0.68