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

Function rte_mbuf_refcnt_read

dpdk/lib/mbuf/rte_mbuf.h:361–365  ·  view source on GitHub ↗

* Reads the value of an mbuf's refcnt. * @param m * Mbuf to read * @return * Reference count number. */

Source from the content-addressed store, hash-verified

359 * Reference count number.
360 */
361static inline uint16_t
362rte_mbuf_refcnt_read(const struct rte_mbuf *m)
363{
364 return rte_atomic_load_explicit(&m->refcnt, rte_memory_order_relaxed);
365}
366
367/**
368 * Sets an mbuf's refcnt to a defined value.

Callers 15

pcapng_vlan_insertFunction · 0.85
rte_vlan_insertFunction · 0.85
mbuf_is_consumedFunction · 0.85
rte_mbuf_refcnt_updateFunction · 0.85
rte_pktmbuf_attachFunction · 0.85
rte_pktmbuf_prefree_segFunction · 0.85
rte_mbuf_checkFunction · 0.85
rte_pktmbuf_dumpFunction · 0.85
virtio_xmit_pkts_packedFunction · 0.85

Calls

no outgoing calls

Tested by 4

verify_mbufs_ref_countFunction · 0.68
testclone_refcnt_readFunction · 0.68