| 2231 | } |
| 2232 | |
| 2233 | static struct lock_instance * |
| 2234 | find_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 | |
| 2249 | static void |
| 2250 | witness_list_lock(struct lock_instance *instance, |
no outgoing calls
no test coverage detected