Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/F-Stack/f-stack
/ rte_atomic64_test_and_set
Function
rte_atomic64_test_and_set
dpdk/lib/eal/ppc/include/rte_atomic.h:203–206 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
201
}
202
203
static inline int rte_atomic64_test_and_set(rte_atomic64_t *v)
204
{
205
return rte_atomic64_cmpset((volatile uint64_t *)&v->cnt, 0, 1);
206
}
207
208
static inline void rte_atomic64_clear(rte_atomic64_t *v)
209
{
Callers
1
test_atomic_tas
Function · 0.50
Calls
1
rte_atomic64_cmpset
Function · 0.70
Tested by
1
test_atomic_tas
Function · 0.40