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

Function ipsec_kmod_drain

freebsd/netipsec/subr_ipsec.c:154–165  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

152}
153
154static void
155ipsec_kmod_drain(volatile u_int *cntr)
156{
157 u_int old, new;
158
159 do {
160 old = *cntr;
161 new = old & ~IPSEC_MODULE_ENABLED;
162 } while (atomic_cmpset_acq_int(cntr, old, new) == 0);
163 while (atomic_cmpset_int(cntr, 0, 0) == 0)
164 pause("ipsecd", hz/2);
165}
166
167static LIST_HEAD(xforms_list, xformsw) xforms = LIST_HEAD_INITIALIZER();
168static struct mtx xforms_lock;

Callers 3

xform_detachFunction · 0.85
tcpmd5_support_disableFunction · 0.85
ipsec_support_disableFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected