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

Function test_ring_copy_from

dpdk/app/test/test_ring.h:88–98  ·  view source on GitHub ↗

Copy from the ring memory */

Source from the content-addressed store, hash-verified

86
87/* Copy from the ring memory */
88static inline void
89test_ring_copy_from(struct rte_ring_zc_data *zcd, void *dst, int esize,
90 unsigned int num)
91{
92 test_ring_mem_copy(dst, zcd->ptr1, esize, zcd->n1);
93
94 if (zcd->n1 != num) {
95 dst = test_ring_inc_ptr(dst, esize, zcd->n1);
96 test_ring_mem_copy(dst, zcd->ptr2, esize, num - zcd->n1);
97 }
98}
99
100static inline unsigned int
101test_ring_enqueue(struct rte_ring *r, void **obj, int esize, unsigned int n,

Callers 6

_st_ring_dequeue_bulkFunction · 0.85
_st_ring_dequeue_bulkFunction · 0.85

Calls 2

test_ring_mem_copyFunction · 0.85
test_ring_inc_ptrFunction · 0.85

Tested by

no test coverage detected