numa.h 521 B

1234567891011121314151617181920212223
  1. #ifndef _numa_h
  2. #define _numa_h
  3. #include "lub/list.h"
  4. #include "cpumask.h"
  5. struct numa_s {
  6. unsigned int id; /* NUMA ID */
  7. cpumask_t cpumap;
  8. };
  9. typedef struct numa_s numa_t;
  10. #define NR_NUMA_NODES 256
  11. /* System NUMA info */
  12. #define SYSFS_NUMA_PATH "/sys/devices/system/node"
  13. int numa_list_compare(const void *first, const void *second);
  14. int numa_list_free(lub_list_t *numas);
  15. int scan_numas(lub_list_t *numas);
  16. int show_numas(lub_list_t *numas);
  17. numa_t * numa_list_search(lub_list_t *numas, unsigned int id);
  18. #endif