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

Function rte_mbuf_ext_refcnt_read

dpdk/lib/mbuf/rte_mbuf.h:463–467  ·  view source on GitHub ↗

* Reads the refcnt of an external buffer. * * @param shinfo * Shared data of the external buffer. * @return * Reference count number. */

Source from the content-addressed store, hash-verified

461 * Reference count number.
462 */
463static inline uint16_t
464rte_mbuf_ext_refcnt_read(const struct rte_mbuf_ext_shared_info *shinfo)
465{
466 return rte_atomic_load_explicit(&shinfo->refcnt, rte_memory_order_relaxed);
467}
468
469/**
470 * Set refcnt of an external buffer.

Calls

no outgoing calls

Tested by 2

testclone_refcnt_readFunction · 0.68