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

Function fail_point_is_off

freebsd/kern/kern_fail.c:220–242  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

218 struct fail_point_setting *fp_setting);
219
220bool
221fail_point_is_off(struct fail_point *fp)
222{
223 bool return_val;
224 struct fail_point_setting *fp_setting;
225 struct fail_point_entry *ent;
226
227 return_val = true;
228
229 fp_setting = fail_point_setting_get_ref(fp);
230 if (fp_setting != NULL) {
231 TAILQ_FOREACH(ent, &fp_setting->fp_entry_queue,
232 fe_entries) {
233 if (!ent->fe_stale) {
234 return_val = false;
235 break;
236 }
237 }
238 }
239 fail_point_setting_release_ref(fp);
240
241 return (return_val);
242}
243
244/* Allocate and initialize a struct fail_point_setting */
245static struct fail_point_setting *

Callers 1

Calls 2

Tested by

no test coverage detected