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

Function fail_point_entry_new

freebsd/kern/kern_fail.c:276–291  ·  view source on GitHub ↗

Allocate and initialize a struct fail_point_entry */

Source from the content-addressed store, hash-verified

274
275/* Allocate and initialize a struct fail_point_entry */
276static struct fail_point_entry *
277fail_point_entry_new(struct fail_point_setting *fp_setting)
278{
279 struct fail_point_entry *fp_entry;
280
281 fp_entry = fp_malloc(sizeof(struct fail_point_entry),
282 M_WAITOK | M_ZERO);
283 fp_entry->fe_parent = fp_setting->fs_parent;
284 fp_entry->fe_prob = PROB_MAX;
285 fp_entry->fe_pid = NO_PID;
286 fp_entry->fe_count = FE_COUNT_UNTRACKED;
287 TAILQ_INSERT_TAIL(&fp_setting->fp_entry_queue, fp_entry,
288 fe_entries);
289
290 return (fp_entry);
291}
292
293/* Free a struct fail_point_entry */
294static void

Callers 1

parse_termFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected