2 // Copyright (c) 2017 Intel Corporation
4 // Licensed under the Apache License, Version 2.0 (the "License");
5 // you may not use this file except in compliance with the License.
6 // You may obtain a copy of the License at
8 // http://www.apache.org/licenses/LICENSE-2.0
10 // Unless required by applicable law or agreed to in writing, software
11 // distributed under the License is distributed on an "AS IS" BASIS,
12 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 // See the License for the specific language governing permissions and
14 // limitations under the License.
17 #ifndef __INCLUDE_CPU_CORE_MAP_H__
18 #define __INCLUDE_CPU_CORE_MAP_H__
22 #include <rte_lcore.h>
27 cpu_core_map_init(uint32_t n_max_sockets,
28 uint32_t n_max_cores_per_socket,
29 uint32_t n_max_ht_per_core,
30 uint32_t eal_initialized);
33 cpu_core_map_get_n_sockets(struct cpu_core_map *map);
36 cpu_core_map_get_n_cores_per_socket(struct cpu_core_map *map);
39 cpu_core_map_get_n_ht_per_core(struct cpu_core_map *map);
42 cpu_core_map_get_lcore_id(struct cpu_core_map *map,
47 void cpu_core_map_print(struct cpu_core_map *map);
50 cpu_core_map_free(struct cpu_core_map *map);