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

Function rte_atomic16_read

dpdk/lib/eal/include/generic/rte_atomic.h:252–256  ·  view source on GitHub ↗

* Atomically read a 16-bit value from a counter. * * @param v * A pointer to the atomic counter. * @return * The value of the counter. */

Source from the content-addressed store, hash-verified

250 * The value of the counter.
251 */
252static inline int16_t
253rte_atomic16_read(const rte_atomic16_t *v)
254{
255 return v->cnt;
256}
257
258/**
259 * Atomically set a counter to a 16-bit value.

Callers 4

nitrox_qp_free_countFunction · 0.85
nitrox_qp_is_emptyFunction · 0.85
nitrox_qp_used_countFunction · 0.85
test_atomicFunction · 0.85

Calls

no outgoing calls

Tested by 1

test_atomicFunction · 0.68