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

Function find_instance

freebsd/kern/subr_witness.c:2233–2247  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2231}
2232
2233static struct lock_instance *
2234find_instance(struct lock_list_entry *list, const struct lock_object *lock)
2235{
2236 struct lock_list_entry *lle;
2237 struct lock_instance *instance;
2238 int i;
2239
2240 for (lle = list; lle != NULL; lle = lle->ll_next)
2241 for (i = lle->ll_count - 1; i >= 0; i--) {
2242 instance = &lle->ll_children[i];
2243 if (instance->li_lock == lock)
2244 return (instance);
2245 }
2246 return (NULL);
2247}
2248
2249static void
2250witness_list_lock(struct lock_instance *instance,

Callers 9

witness_checkorderFunction · 0.85
witness_lockFunction · 0.85
witness_upgradeFunction · 0.85
witness_downgradeFunction · 0.85
witness_display_spinlockFunction · 0.85
witness_saveFunction · 0.85
witness_restoreFunction · 0.85
witness_assertFunction · 0.85
witness_setflagFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected