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

Function pf_release_state

freebsd/net/pfvar.h:1460–1469  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1458}
1459
1460static __inline int
1461pf_release_state(struct pf_state *s)
1462{
1463
1464 if (refcount_release(&s->refs)) {
1465 pf_free_state(s);
1466 return (1);
1467 } else
1468 return (0);
1469}
1470
1471extern struct pf_state *pf_find_state_byid(uint64_t, uint32_t);
1472extern struct pf_state *pf_find_state_all(struct pf_state_key_cmp *,

Callers 7

pfsync_clone_destroyFunction · 0.85
pfsync_dropFunction · 0.85
pfsync_sendoutFunction · 0.85
pfsync_undeferFunction · 0.85
pfsync_defer_tmoFunction · 0.85
pfsync_q_delFunction · 0.85
pf_unlink_stateFunction · 0.85

Calls 2

refcount_releaseFunction · 0.85
pf_free_stateFunction · 0.85

Tested by

no test coverage detected