1 /* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright (c) 2020 Dmitry Kozlyuk
5 #ifndef _EAL_WINDOWS_H_
6 #define _EAL_WINDOWS_H_
9 * @file Facilities private to Windows EAL
12 #include <rte_errno.h>
13 #include <rte_windows.h>
16 * Create a map of processors and cores on the system.
19 * 0 on success, (-1) on failure and rte_errno is set.
21 int eal_create_cpu_map(void);
27 * The location to store the thread id if successful.
29 * 0 for success, -1 if the thread is not created.
31 int eal_thread_create(pthread_t *thread);
34 * Get system NUMA node number for a socket ID.
37 * Valid EAL socket ID.
39 * NUMA node number to use with Win32 API.
41 unsigned int eal_socket_numa_node(unsigned int socket_id);
43 #endif /* _EAL_WINDOWS_H_ */