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

Function rte_atomic32_set

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

* Atomically set a counter to a 32-bit value. * * @param v * A pointer to the atomic counter. * @param new_value * The new value for the counter. */

Source from the content-addressed store, hash-verified

549 * The new value for the counter.
550 */
551static inline void
552rte_atomic32_set(rte_atomic32_t *v, int32_t new_value)
553{
554 v->cnt = new_value;
555}
556
557/**
558 * Atomically add a 32-bit value to an atomic counter.

Callers 15

dma_pool_createFunction · 0.85
hinic_osdep_initFunction · 0.85
bnx2x_sp_postFunction · 0.85
bnx2x_handle_fp_tqFunction · 0.85
ecore_state_waitFunction · 0.85
eth_vhost_rxFunction · 0.85
eth_vhost_txFunction · 0.85
update_queuing_statusFunction · 0.85
new_deviceFunction · 0.85
destroy_deviceFunction · 0.85
eth_dev_startFunction · 0.85
eth_dev_stopFunction · 0.85

Calls

no outgoing calls

Tested by 3

launch_workers_and_waitFunction · 0.68
launch_workers_and_waitFunction · 0.68
test_atomicFunction · 0.68