1 /*
2  * Copyright (c) 2006-2023, RT-Thread Development Team
3  *
4  * SPDX-License-Identifier: Apache-2.0
5  *
6  * Change Logs:
7  * Date           Author       Notes
8  * 2023-09-24     GuEe-GUI     the first version
9  */
10 
11 #ifndef __RT_DM_NUMA_H__
12 #define __RT_DM_NUMA_H__
13 
14 #include <rthw.h>
15 #include <rtthread.h>
16 
17 #include <bitmap.h>
18 
19 /* NUMA: Non-Uniform Memory Access */
20 
21 int rt_numa_cpu_id(int cpuid);
22 int rt_numa_device_id(struct rt_device *dev);
23 rt_err_t rt_numa_memory_affinity(rt_uint64_t phy_addr, rt_bitmap_t *out_affinity);
24 
25 #endif /* __RT_DM_NUMA_H__ */
26