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

Function lockmgr_chain

freebsd/kern/kern_lock.c:1789–1807  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1787
1788#ifdef DDB
1789int
1790lockmgr_chain(struct thread *td, struct thread **ownerp)
1791{
1792 const struct lock *lk;
1793
1794 lk = td->td_wchan;
1795
1796 if (LOCK_CLASS(&lk->lock_object) != &lock_class_lockmgr)
1797 return (0);
1798 db_printf("blocked on lockmgr %s", lk->lock_object.lo_name);
1799 if (lk->lk_lock & LK_SHARE)
1800 db_printf("SHARED (count %ju)\n",
1801 (uintmax_t)LK_SHARERS(lk->lk_lock));
1802 else
1803 db_printf("EXCL\n");
1804 *ownerp = lockmgr_xholder(lk);
1805
1806 return (1);
1807}
1808
1809static void
1810db_show_lockmgr(const struct lock_object *lock)

Callers 1

print_lockchainFunction · 0.85

Calls 2

db_printfFunction · 0.85
lockmgr_xholderFunction · 0.85

Tested by

no test coverage detected