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

Function fail_point_alloc_callout

freebsd/kern/kern_fail.c:498–510  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

496}
497
498void
499fail_point_alloc_callout(struct fail_point *fp)
500{
501
502 /**
503 * This assumes that calls to fail_point_use_timeout_path()
504 * will not race.
505 */
506 if (fp->fp_callout != NULL)
507 return;
508 fp->fp_callout = fp_malloc(sizeof(*fp->fp_callout), M_WAITOK);
509 callout_init(fp->fp_callout, CALLOUT_MPSAFE);
510}
511
512/**
513 * Free the resources held by a fail_point, and wake any paused threads.

Callers 1

Calls 1

callout_initFunction · 0.70

Tested by

no test coverage detected