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

Function lockmgr_note_shared_acquire

freebsd/kern/kern_lock.c:200–212  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

198}
199
200static void
201lockmgr_note_shared_acquire(struct lock *lk, int contested,
202 uint64_t waittime, const char *file, int line, int flags)
203{
204
205 LOCKSTAT_PROFILE_OBTAIN_RWLOCK_SUCCESS(lockmgr__acquire, lk, contested,
206 waittime, file, line, LOCKSTAT_READER);
207 LOCK_LOG_LOCK("SLOCK", &lk->lock_object, 0, 0, file, line);
208 WITNESS_LOCK(&lk->lock_object, LK_TRYWIT(flags), file, line);
209 TD_LOCKS_INC(curthread);
210 TD_SLOCKS_INC(curthread);
211 STACK_SAVE(lk);
212}
213
214static void
215lockmgr_note_shared_release(struct lock *lk, const char *file, int line)

Callers 3

lockmgr_slock_hardFunction · 0.85
lockmgr_lock_flagsFunction · 0.85
lockmgr_slockFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected