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

Function lockmgr_note_exclusive_acquire

freebsd/kern/kern_lock.c:224–236  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

222}
223
224static void
225lockmgr_note_exclusive_acquire(struct lock *lk, int contested,
226 uint64_t waittime, const char *file, int line, int flags)
227{
228
229 LOCKSTAT_PROFILE_OBTAIN_RWLOCK_SUCCESS(lockmgr__acquire, lk, contested,
230 waittime, file, line, LOCKSTAT_WRITER);
231 LOCK_LOG_LOCK("XLOCK", &lk->lock_object, 0, lk->lk_recurse, file, line);
232 WITNESS_LOCK(&lk->lock_object, LOP_EXCLUSIVE | LK_TRYWIT(flags), file,
233 line);
234 TD_LOCKS_INC(curthread);
235 STACK_SAVE(lk);
236}
237
238static void
239lockmgr_note_exclusive_release(struct lock *lk, const char *file, int line)

Callers 3

lockmgr_xlock_hardFunction · 0.85
lockmgr_lock_flagsFunction · 0.85
lockmgr_xlockFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected