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

Function rte_service_component_unregister

dpdk/lib/eal/common/rte_service.c:286–304  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

284}
285
286int32_t
287rte_service_component_unregister(uint32_t id)
288{
289 uint32_t i;
290 struct rte_service_spec_impl *s;
291 SERVICE_VALID_GET_OR_ERR_RET(id, s, -EINVAL);
292
293 rte_service_count--;
294
295 s->internal_flags &= ~(SERVICE_F_REGISTERED);
296
297 /* clear the run-bit in all cores */
298 for (i = 0; i < RTE_MAX_LCORE; i++)
299 lcore_states[i].service_mask &= ~(UINT64_C(1) << id);
300
301 memset(&rte_services[id], 0, sizeof(struct rte_service_spec_impl));
302
303 return 0;
304}
305
306int32_t
307rte_service_component_runstate_set(uint32_t id, uint32_t runstate)

Callers 12

evd_service_unregisterFunction · 0.85
rxa_init_serviceFunction · 0.85
swtim_uninitFunction · 0.85
txa_service_unregisterFunction · 0.85
thread_sc_service_upFunction · 0.85
thread_sc_service_downFunction · 0.85
sfc_repr_proxy_attachFunction · 0.85
sfc_repr_proxy_detachFunction · 0.85
unregister_allFunction · 0.85

Calls 1

memsetFunction · 0.85

Tested by 1

unregister_allFunction · 0.68