1 /* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright(c) 2021 Mellanox Technologies, Ltd
15 * Simple threads functionality supplied by EAL.
23 * Set core affinity of the current thread.
24 * Support both EAL and non-EAL thread and update TLS.
27 * Pointer to CPU affinity to set.
29 * On success, return 0; otherwise return -1;
31 int rte_thread_set_affinity(rte_cpuset_t *cpusetp);
34 * Get core affinity of the current thread.
37 * Pointer to CPU affinity of current thread.
38 * It presumes input is not NULL, otherwise it causes panic.
41 void rte_thread_get_affinity(rte_cpuset_t *cpusetp);
47 #endif /* _RTE_THREAD_H_ */