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

Function lockmgr_exit

freebsd/kern/kern_lock.c:186–198  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

184static bool __always_inline lockmgr_sunlock_try(struct lock *lk, uintptr_t *xp);
185
186static void
187lockmgr_exit(u_int flags, struct lock_object *ilk, int wakeup_swapper)
188{
189 struct lock_class *class;
190
191 if (flags & LK_INTERLOCK) {
192 class = LOCK_CLASS(ilk);
193 class->lc_unlock(ilk);
194 }
195
196 if (__predict_false(wakeup_swapper))
197 kick_proc0();
198}
199
200static void
201lockmgr_note_shared_acquire(struct lock *lk, int contested,

Callers 5

lockmgr_slock_hardFunction · 0.85
lockmgr_xlock_hardFunction · 0.85
lockmgr_upgradeFunction · 0.85
lockmgr_sunlock_hardFunction · 0.85
lockmgr_xunlock_hardFunction · 0.85

Calls 1

kick_proc0Function · 0.85

Tested by

no test coverage detected