| /Linux-v5.15/include/linux/ |
| D | nodemask.h | 98 typedef struct { DECLARE_BITMAP(bits, MAX_NUMNODES); } nodemask_t; typedef 99 extern nodemask_t _unused_nodemask_arg_; 109 static inline unsigned int __nodemask_pr_numnodes(const nodemask_t *m) in __nodemask_pr_numnodes() 113 static inline const unsigned long *__nodemask_pr_bits(const nodemask_t *m) in __nodemask_pr_bits() 128 static __always_inline void __node_set(int node, volatile nodemask_t *dstp) in __node_set() 134 static inline void __node_clear(int node, volatile nodemask_t *dstp) in __node_clear() 140 static inline void __nodes_setall(nodemask_t *dstp, unsigned int nbits) in __nodes_setall() 146 static inline void __nodes_clear(nodemask_t *dstp, unsigned int nbits) in __nodes_clear() 156 static inline int __node_test_and_set(int node, nodemask_t *addr) in __node_test_and_set() 163 static inline void __nodes_and(nodemask_t *dstp, const nodemask_t *src1p, in __nodes_and() [all …]
|
| D | mempolicy.h | 49 nodemask_t nodes; /* interleave/bind/perfer */ 52 nodemask_t cpuset_mems_allowed; /* relative to these nodes */ 53 nodemask_t user_nodemask; /* nodemask passed by user */ 143 extern void mpol_rebind_task(struct task_struct *tsk, const nodemask_t *new); 144 extern void mpol_rebind_mm(struct mm_struct *mm, nodemask_t *new); 148 struct mempolicy **mpol, nodemask_t **nodemask); 149 extern bool init_nodemask_of_mempolicy(nodemask_t *mask); 151 const nodemask_t *mask); 152 extern nodemask_t *policy_nodemask(gfp_t gfp, struct mempolicy *policy); 154 static inline nodemask_t *policy_nodemask_current(gfp_t gfp) in policy_nodemask_current() [all …]
|
| D | cpuset.h | 63 extern nodemask_t cpuset_mems_allowed(struct task_struct *p); 66 int cpuset_nodemask_valid_mems_allowed(nodemask_t *nodemask); 153 static inline void set_mems_allowed(nodemask_t nodemask) in set_mems_allowed() 196 static inline nodemask_t cpuset_mems_allowed(struct task_struct *p) in cpuset_mems_allowed() 204 static inline int cpuset_nodemask_valid_mems_allowed(nodemask_t *nodemask) in cpuset_nodemask_valid_mems_allowed() 271 static inline void set_mems_allowed(nodemask_t nodemask) in set_mems_allowed()
|
| D | gfp.h | 531 nodemask_t *nodemask); 534 nodemask_t *nodemask, int nr_pages, 679 int nid, nodemask_t *nodemask);
|
| D | oom.h | 34 nodemask_t *nodemask;
|
| D | mmzone.h | 1136 nodemask_t *nodes); 1155 nodemask_t *nodes) in next_zones_zonelist() 1181 nodemask_t *nodes) in first_zones_zonelist()
|
| D | hugetlb.h | 631 nodemask_t *nmask, gfp_t gfp_mask); 926 nodemask_t *nmask, gfp_t gfp_mask)
|
| /Linux-v5.15/mm/ |
| D | mempolicy.c | 178 int (*create)(struct mempolicy *pol, const nodemask_t *nodes); 179 void (*rebind)(struct mempolicy *pol, const nodemask_t *nodes); 187 static void mpol_relative_nodemask(nodemask_t *ret, const nodemask_t *orig, in mpol_relative_nodemask() 188 const nodemask_t *rel) in mpol_relative_nodemask() 190 nodemask_t tmp; in mpol_relative_nodemask() 195 static int mpol_new_nodemask(struct mempolicy *pol, const nodemask_t *nodes) in mpol_new_nodemask() 203 static int mpol_new_preferred(struct mempolicy *pol, const nodemask_t *nodes) in mpol_new_preferred() 222 const nodemask_t *nodes, struct nodemask_scratch *nsc) in mpol_set_nodemask() 259 nodemask_t *nodes) in mpol_new() 311 static void mpol_rebind_default(struct mempolicy *pol, const nodemask_t *nodes) in mpol_rebind_default() [all …]
|
| D | mmzone.c | 46 static inline int zref_in_nodemask(struct zoneref *zref, nodemask_t *nodes) in zref_in_nodemask() 58 nodemask_t *nodes) in __next_zones_zonelist()
|
| D | internal.h | 142 nodemask_t *nodemask; 546 extern int find_next_best_node(int node, nodemask_t *used_node_mask); 553 static inline int find_next_best_node(int node, nodemask_t *used_node_mask) in find_next_best_node() 650 nodemask_t *nmask;
|
| D | hugetlb.c | 1108 nodemask_t *nmask) in dequeue_huge_page_nodemask() 1151 nodemask_t *nodemask; in dequeue_huge_page_vma() 1199 static int next_node_allowed(int nid, nodemask_t *nodes_allowed) in next_node_allowed() 1207 static int get_valid_node_allowed(int nid, nodemask_t *nodes_allowed) in get_valid_node_allowed() 1221 nodemask_t *nodes_allowed) in hstate_next_node_to_alloc() 1239 static int hstate_next_node_to_free(struct hstate *h, nodemask_t *nodes_allowed) in hstate_next_node_to_free() 1300 int nid, nodemask_t *nodemask) in alloc_gigantic_page() 1337 int nid, nodemask_t *nodemask) in alloc_gigantic_page() 1345 int nid, nodemask_t *nodemask) in alloc_gigantic_page() 1795 gfp_t gfp_mask, int nid, nodemask_t *nmask, in alloc_buddy_huge_page() [all …]
|
| D | migrate.c | 1781 static int do_pages_move(struct mm_struct *mm, nodemask_t task_nodes, in do_pages_move() 1961 static struct mm_struct *find_mm_struct(pid_t pid, nodemask_t *mem_nodes) in find_mm_struct() 2019 nodemask_t task_nodes; in kernel_move_pages() 3103 static int establish_migrate_target(int node, nodemask_t *used) in establish_migrate_target() 3147 nodemask_t next_pass = NODE_MASK_NONE; in __set_migration_target_nodes() 3148 nodemask_t this_pass = NODE_MASK_NONE; in __set_migration_target_nodes() 3149 nodemask_t used_targets = NODE_MASK_NONE; in __set_migration_target_nodes()
|
| D | page_alloc.c | 166 nodemask_t node_states[NR_NODE_STATES] __read_mostly = { 4188 static void warn_alloc_show_mem(gfp_t gfp_mask, nodemask_t *nodemask) in warn_alloc_show_mem() 4207 void warn_alloc(gfp_t gfp_mask, nodemask_t *nodemask, const char *fmt, ...) in warn_alloc() 5132 int preferred_nid, nodemask_t *nodemask, in prepare_alloc_pages() 5198 nodemask_t *nodemask, int nr_pages, in __alloc_pages_bulk() 5344 nodemask_t *nodemask) in __alloc_pages() 5823 static bool show_mem_node_skip(unsigned int flags, int nid, nodemask_t *nodemask) in show_mem_node_skip() 5877 void show_free_areas(unsigned int filter, nodemask_t *nodemask) in show_free_areas() 6151 int find_next_best_node(int node, nodemask_t *used_node_mask) in find_next_best_node() 6247 nodemask_t used_mask = NODE_MASK_NONE; in build_zonelists() [all …]
|
| /Linux-v5.15/lib/ |
| D | nodemask.c | 6 int __next_node_in(int node, const nodemask_t *srcp) in __next_node_in() 21 int node_random(const nodemask_t *maskp) in node_random()
|
| D | show_mem.c | 11 void show_mem(unsigned int filter, nodemask_t *nodemask) in show_mem()
|
| /Linux-v5.15/kernel/cgroup/ |
| D | cpuset.c | 108 nodemask_t mems_allowed; 112 nodemask_t effective_mems; 134 nodemask_t old_mems_allowed; 442 static void guarantee_online_mems(struct cpuset *cs, nodemask_t *pmask) in guarantee_online_mems() 1632 nodemask_t from; 1633 nodemask_t to; 1647 static void cpuset_migrate_mm(struct mm_struct *mm, const nodemask_t *from, in cpuset_migrate_mm() 1648 const nodemask_t *to) in cpuset_migrate_mm() 1685 nodemask_t *newmems) in cpuset_change_task_nodemask() 1714 static nodemask_t newmems; /* protected by cpuset_rwsem */ in update_tasks_nodemask() [all …]
|
| /Linux-v5.15/kernel/irq/ |
| D | affinity.c | 84 const struct cpumask *mask, nodemask_t *nodemsk) in get_nodes_in_cpumask() 131 const nodemask_t nodemsk, in alloc_nodes_vectors() 258 nodemask_t nodemsk = NODE_MASK_NONE; in __irq_build_affinity_masks()
|
| /Linux-v5.15/include/asm-generic/ |
| D | numa.h | 12 extern nodemask_t numa_nodes_parsed __initdata;
|
| /Linux-v5.15/arch/x86/include/asm/ |
| D | numa.h | 33 extern nodemask_t numa_nodes_parsed __initdata;
|
| /Linux-v5.15/arch/x86/mm/ |
| D | numa.c | 23 nodemask_t numa_nodes_parsed __initdata; 335 static void __init numa_nodemask_from_meminfo(nodemask_t *nodemask, in numa_nodemask_from_meminfo() 365 nodemask_t nodes_parsed; in numa_alloc_distance() 487 nodemask_t reserved_nodemask = NODE_MASK_NONE; in numa_clear_kernel_node_hotplug()
|
| D | numa_emulation.c | 87 nodemask_t physnode_mask = numa_nodes_parsed; in split_nodes_interleave() 222 nodemask_t physnode_mask = numa_nodes_parsed; in split_nodes_size_interleave_uniform() 396 nodemask_t physnode_mask = numa_nodes_parsed; in numa_emulation()
|
| /Linux-v5.15/arch/mips/sgi-ip27/ |
| D | ip27-klnuma.c | 23 static nodemask_t ktext_repmask;
|
| /Linux-v5.15/drivers/base/ |
| D | arch_numa.c | 20 nodemask_t numa_nodes_parsed __initdata;
|
| /Linux-v5.15/drivers/acpi/numa/ |
| D | srat.c | 21 static nodemask_t nodes_found_map = NODE_MASK_NONE;
|
| /Linux-v5.15/kernel/ |
| D | crash_core.c | 429 VMCOREINFO_SIZE(nodemask_t); in crash_save_vmcoreinfo_init()
|