1 /* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright(c) 2010-2014 Intel Corporation
11 * basic loop of thread, called for each thread by eal_init().
16 __attribute__((noreturn)) void *eal_thread_loop(void *arg);
19 * Init per-lcore info for master thread
22 * identifier of master lcore
24 void eal_thread_init_master(unsigned lcore_id);
27 * Get the NUMA socket id from cpu id.
28 * This function is private to EAL.
31 * The logical process id.
33 * socket_id or SOCKET_ID_ANY
35 unsigned eal_cpu_socket_id(unsigned cpu_id);
38 * Default buffer size to use with eal_thread_dump_affinity()
40 #define RTE_CPU_AFFINITY_STR_LEN 256
43 * Dump the current pthread cpuset.
44 * This function is private to EAL.
47 * If the dump size is greater than the size of given buffer,
48 * the string will be truncated and with '\0' at the end.
51 * The string buffer the cpuset will dump to.
53 * The string buffer size.
55 * 0 for success, -1 if truncation happens.
58 eal_thread_dump_affinity(char *str, unsigned size);
60 #endif /* EAL_THREAD_H */