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

Function rte_atomic32_test_and_set

dpdk/lib/eal/ppc/include/rte_atomic.h:97–100  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

95}
96
97static inline int rte_atomic32_test_and_set(rte_atomic32_t *v)
98{
99 return rte_atomic32_cmpset((volatile uint32_t *)&v->cnt, 0, 1);
100}
101
102static inline void
103rte_atomic32_inc(rte_atomic32_t *v)

Callers 2

sfc_schedule_restartFunction · 0.50
test_atomic_tasFunction · 0.50

Calls 1

rte_atomic32_cmpsetFunction · 0.70

Tested by 1

test_atomic_tasFunction · 0.40