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

Function rw_enter

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

Source from the content-addressed store, hash-verified

252}
253
254void
255rw_enter(krwlock_t *rwlp, krw_t rw)
256{
257 if (rw == RW_READER) {
258 VERIFY0(pthread_rwlock_rdlock(&rwlp->rw_lock));
259 atomic_inc_uint(&rwlp->rw_readers);
260 } else {
261 VERIFY0(pthread_rwlock_wrlock(&rwlp->rw_lock));
262 rwlp->rw_owner = pthread_self();
263 }
264}
265
266void
267rw_exit(krwlock_t *rwlp)

Callers 15

zvol_geom_openFunction · 0.85
zvol_geom_closeFunction · 0.85
zvol_geom_bio_strategyFunction · 0.85
zvol_cdev_writeFunction · 0.85
zvol_cdev_openFunction · 0.85
zvol_cdev_closeFunction · 0.85
zvol_cdev_ioctlFunction · 0.85
zvol_ensure_zilogFunction · 0.85
zvol_create_minor_implFunction · 0.85
zio_crypt_key_get_saltFunction · 0.85
zio_do_crypt_dataFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected