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

Function fail_point_setting_new

freebsd/kern/kern_fail.c:245–258  ·  view source on GitHub ↗

Allocate and initialize a struct fail_point_setting */

Source from the content-addressed store, hash-verified

243
244/* Allocate and initialize a struct fail_point_setting */
245static struct fail_point_setting *
246fail_point_setting_new(struct fail_point *fp)
247{
248 struct fail_point_setting *fs_new;
249
250 fs_new = fs_malloc();
251 fs_new->fs_parent = fp;
252 TAILQ_INIT(&fs_new->fp_entry_queue);
253 mtx_init(&fs_new->feq_mtx, "fail point entries", NULL, MTX_SPIN);
254
255 fail_point_setting_garbage_append(fs_new);
256
257 return (fs_new);
258}
259
260/* Free a struct fail_point_setting */
261static void

Callers 1

fail_point_setFunction · 0.85

Calls 2

mtx_initFunction · 0.85

Tested by

no test coverage detected