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

Function rte_thread_set_affinity

dpdk/lib/eal/common/eal_common_thread.c:85–95  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

83}
84
85int
86rte_thread_set_affinity(rte_cpuset_t *cpusetp)
87{
88 if (rte_thread_set_affinity_by_id(rte_thread_self(), cpusetp) != 0) {
89 RTE_LOG(ERR, EAL, "rte_thread_set_affinity_by_id failed\n");
90 return -1;
91 }
92
93 thread_update_affinity(cpusetp);
94 return 0;
95}
96
97void
98rte_thread_get_affinity(rte_cpuset_t *cpusetp)

Callers

nothing calls this directly

Calls 3

thread_update_affinityFunction · 0.85
rte_thread_selfFunction · 0.50

Tested by

no test coverage detected