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

Function refcount_acquire

freebsd/sys/refcount.h:75–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73}
74
75static __inline u_int
76refcount_acquire(volatile u_int *count)
77{
78 u_int old;
79
80 old = atomic_fetchadd_int(count, 1);
81 if (__predict_false(REFCOUNT_SATURATED(old)))
82 _refcount_update_saturated(count);
83
84 return (old);
85}
86
87static __inline u_int
88refcount_acquiren(volatile u_int *count, u_int n)

Callers 15

m_snd_tag_refFunction · 0.85
taskq_lookupFunction · 0.85
dtaudit_enableFunction · 0.85
in_pcbrefFunction · 0.85
find_and_ref_tcp_fbFunction · 0.85
tcp_newtcpcbFunction · 0.85
m_snd_tag_refFunction · 0.85
sglist_holdFunction · 0.85
ktls_holdFunction · 0.85
nd6_dad_findFunction · 0.85

Calls 2

atomic_fetchadd_intFunction · 0.50

Tested by

no test coverage detected