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

Function fail_point_setting_destroy

freebsd/kern/kern_fail.c:261–273  ·  view source on GitHub ↗

Free a struct fail_point_setting */

Source from the content-addressed store, hash-verified

259
260/* Free a struct fail_point_setting */
261static void
262fail_point_setting_destroy(struct fail_point_setting *fp_setting)
263{
264 struct fail_point_entry *ent;
265
266 while (!TAILQ_EMPTY(&fp_setting->fp_entry_queue)) {
267 ent = TAILQ_FIRST(&fp_setting->fp_entry_queue);
268 TAILQ_REMOVE(&fp_setting->fp_entry_queue, ent, fe_entries);
269 fail_point_entry_destroy(ent);
270 }
271
272 fs_free(fp_setting);
273}
274
275/* Allocate and initialize a struct fail_point_entry */
276static struct fail_point_entry *

Callers 2

fail_point_setFunction · 0.85

Calls 1

fail_point_entry_destroyFunction · 0.85

Tested by

no test coverage detected