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

Function test_ring_inc_ptr

dpdk/app/test/test_ring.h:45–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43}
44
45static inline void*
46test_ring_inc_ptr(void *obj, int esize, unsigned int n)
47{
48 size_t sz;
49
50 sz = sizeof(void *);
51 /* Legacy queue APIs? */
52 if (esize != -1)
53 sz = esize;
54
55 return (void *)((uint32_t *)obj + (n * sz / sizeof(uint32_t)));
56}
57
58static inline void
59test_ring_mem_copy(void *dst, void * const *src, int esize, unsigned int num)

Callers 6

test_ring_copy_fromFunction · 0.85
test_ring_basic_exFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected