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

Function alloc_rcu

dpdk/app/test/test_rcu_qsbr.c:65–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63static struct test_rcu_thread_info thread_info[RTE_MAX_LCORE/4];
64
65static int
66alloc_rcu(void)
67{
68 int i;
69 size_t sz;
70
71 sz = rte_rcu_qsbr_get_memsize(RTE_MAX_LCORE);
72
73 for (i = 0; i < RTE_MAX_LCORE; i++)
74 t[i] = (struct rte_rcu_qsbr *)rte_zmalloc(NULL, sz,
75 RTE_CACHE_LINE_SIZE);
76
77 return 0;
78}
79
80static int
81free_rcu(void)

Callers 1

test_rcu_qsbr_mainFunction · 0.85

Calls 2

rte_rcu_qsbr_get_memsizeFunction · 0.85
rte_zmallocFunction · 0.85

Tested by

no test coverage detected