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

Function fail_point_setting_get_ref

freebsd/kern/kern_fail.c:302–312  ·  view source on GitHub ↗

Get a ref on an fp's fp_setting */

Source from the content-addressed store, hash-verified

300
301/* Get a ref on an fp's fp_setting */
302static inline struct fail_point_setting *
303fail_point_setting_get_ref(struct fail_point *fp)
304{
305 struct fail_point_setting *fp_setting;
306
307 /* Invariant: if we have a ref, our pointer to fp_setting is safe */
308 atomic_add_acq_32(&fp->fp_ref_cnt, 1);
309 fp_setting = fp->fp_setting;
310
311 return (fp_setting);
312}
313
314/* Release a ref on an fp_setting */
315static inline void

Callers 4

fail_point_is_offFunction · 0.85
fail_point_getFunction · 0.85
fail_point_setFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected