// SPDX-License-Identifier: BSD-2-Clause /* Copyright (C) 2019 - 2020 Intel Corporation. */ #pragma once #ifdef __cplusplus extern "C" { #endif #include #include #include struct vec_cpu_node; typedef int (*get_node_bitmask)(struct bitmask *); typedef int (*fill_bandwidth_values)(int *); int bandwidth_fill(int *bandwidth, get_node_bitmask get_bitmask); int set_closest_numanode(fill_bandwidth_values fill, const char *env, struct vec_cpu_node **closest_numanode, int num_cpu, bool is_single_node); void set_bitmask_for_all_closest_numanodes(unsigned long *nodemask, unsigned long maxnode, const struct vec_cpu_node *closest_numanode, int num_cpu); int set_bitmask_for_current_closest_numanode(unsigned long *nodemask, unsigned long maxnode, const struct vec_cpu_node *closest_numanode, int num_cpu); #ifdef __cplusplus } #endif