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

Function test_ring_mem_init

dpdk/app/test/test_ring.c:441–453  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

439}
440
441static void
442test_ring_mem_init(void *obj, unsigned int count, int esize)
443{
444 unsigned int i;
445
446 /* Legacy queue APIs? */
447 if (esize == -1)
448 for (i = 0; i < count; i++)
449 ((void **)obj)[i] = (void *)(uintptr_t)i;
450 else
451 for (i = 0; i < (count * esize / sizeof(uint32_t)); i++)
452 ((uint32_t *)obj)[i] = i;
453}
454
455static int
456test_ring_mem_cmp(void *src, void *dst, unsigned int size)

Callers 6

test_ring_basic_exFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected