Allocate and initialize a struct fail_point_setting */
| 243 | |
| 244 | /* Allocate and initialize a struct fail_point_setting */ |
| 245 | static struct fail_point_setting * |
| 246 | fail_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 */ |
| 261 | static void |
no test coverage detected