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

Function unregister_all

dpdk/app/test/test_service_cores.c:107–125  ·  view source on GitHub ↗

unregister all services */

Source from the content-addressed store, hash-verified

105
106/* unregister all services */
107static int
108unregister_all(void)
109{
110 uint32_t i;
111
112 TEST_ASSERT_EQUAL(-EINVAL, rte_service_component_unregister(1000),
113 "Unregistered invalid service id");
114
115 uint32_t c = rte_service_get_count();
116 for (i = 0; i < c; i++) {
117 TEST_ASSERT_EQUAL(0, rte_service_component_unregister(i),
118 "Error unregistering a valid service");
119 }
120
121 rte_service_lcore_reset_all();
122 rte_eal_mp_wait_lcore();
123
124 return TEST_SUCCESS;
125}
126
127/* Wait until service lcore not active, or for TIMEOUT_MS */
128static void

Callers 15

dummy_registerFunction · 0.85
service_get_by_nameFunction · 0.85
service_probe_capabilityFunction · 0.85
service_nameFunction · 0.85
service_attr_getFunction · 0.85
service_lcore_attr_getFunction · 0.85
service_dumpFunction · 0.85
service_start_stopFunction · 0.85
service_lcore_add_delFunction · 0.85
service_threaded_testFunction · 0.85

Calls 4

rte_service_get_countFunction · 0.85
rte_eal_mp_wait_lcoreFunction · 0.85

Tested by

no test coverage detected