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

Function lockmgr_xholder

freebsd/kern/kern_lock.c:250–257  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

248}
249
250static __inline struct thread *
251lockmgr_xholder(const struct lock *lk)
252{
253 uintptr_t x;
254
255 x = lockmgr_read_value(lk);
256 return ((x & LK_SHARE) ? NULL : (struct thread *)LK_HOLDER(x));
257}
258
259/*
260 * It assumes sleepq_lock held and returns with this one unheld.

Callers 3

lockmgr_printinfoFunction · 0.85
lockmgr_chainFunction · 0.85
db_show_lockmgrFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected