Home
last modified time | relevance | path

Searched refs:nodemask_t (Results 1 – 35 of 35) sorted by relevance

/linux-4.1.27/include/linux/
Dnodemask.h95 typedef struct { DECLARE_BITMAP(bits, MAX_NUMNODES); } nodemask_t; typedef
96 extern nodemask_t _unused_nodemask_arg_;
116 static __always_inline void __node_set(int node, volatile nodemask_t *dstp) in __node_set()
122 static inline void __node_clear(int node, volatile nodemask_t *dstp) in __node_clear()
128 static inline void __nodes_setall(nodemask_t *dstp, unsigned int nbits) in __nodes_setall()
134 static inline void __nodes_clear(nodemask_t *dstp, unsigned int nbits) in __nodes_clear()
144 static inline int __node_test_and_set(int node, nodemask_t *addr) in __node_test_and_set()
151 static inline void __nodes_and(nodemask_t *dstp, const nodemask_t *src1p, in __nodes_and()
152 const nodemask_t *src2p, unsigned int nbits) in __nodes_and()
159 static inline void __nodes_or(nodemask_t *dstp, const nodemask_t *src1p, in __nodes_or()
[all …]
Dmempolicy.h49 nodemask_t nodes; /* interleave/bind */
53 nodemask_t cpuset_mems_allowed; /* relative to these nodes */
54 nodemask_t user_nodemask; /* nodemask passed by user */
144 extern void mpol_rebind_task(struct task_struct *tsk, const nodemask_t *new,
146 extern void mpol_rebind_mm(struct mm_struct *mm, nodemask_t *new);
150 struct mempolicy **mpol, nodemask_t **nodemask);
151 extern bool init_nodemask_of_mempolicy(nodemask_t *mask);
153 const nodemask_t *mask);
164 int do_migrate_pages(struct mm_struct *mm, const nodemask_t *from,
165 const nodemask_t *to, int flags);
[all …]
Doom.h55 struct mem_cgroup *memcg, const nodemask_t *nodemask,
62 struct mem_cgroup *memcg, nodemask_t *nodemask,
69 int order, const nodemask_t *nodemask,
73 unsigned long totalpages, const nodemask_t *nodemask,
77 int order, nodemask_t *mask, bool force_kill);
Dcpuset.h46 extern nodemask_t cpuset_mems_allowed(struct task_struct *p);
49 int cpuset_nodemask_valid_mems_allowed(nodemask_t *nodemask);
121 static inline void set_mems_allowed(nodemask_t nodemask) in set_mems_allowed()
156 static inline nodemask_t cpuset_mems_allowed(struct task_struct *p) in cpuset_mems_allowed()
164 static inline int cpuset_nodemask_valid_mems_allowed(nodemask_t *nodemask) in cpuset_nodemask_valid_mems_allowed()
226 static inline void set_mems_allowed(nodemask_t nodemask) in set_mems_allowed()
Dmmzone.h981 nodemask_t *nodes);
997 nodemask_t *nodes, in first_zones_zonelist()
Dswap.h320 gfp_t gfp_mask, nodemask_t *mask);
Dgfp.h294 struct zonelist *zonelist, nodemask_t *nodemask);
Dsched.h1578 nodemask_t mems_allowed; /* Protected by alloc_lock */
/linux-4.1.27/mm/
Doom_kill.c58 const nodemask_t *mask) in has_intersects_mems_allowed()
89 const nodemask_t *mask) in has_intersects_mems_allowed()
122 struct mem_cgroup *memcg, const nodemask_t *nodemask) in oom_unkillable_task()
150 const nodemask_t *nodemask, unsigned long totalpages) in oom_badness()
199 gfp_t gfp_mask, nodemask_t *nodemask, in constrained_alloc()
249 gfp_t gfp_mask, nodemask_t *nodemask, in constrained_alloc()
258 unsigned long totalpages, const nodemask_t *nodemask, in oom_scan_process_thread()
295 unsigned long totalpages, const nodemask_t *nodemask, in select_bad_process()
349 static void dump_tasks(struct mem_cgroup *memcg, const nodemask_t *nodemask) in dump_tasks()
383 struct mem_cgroup *memcg, const nodemask_t *nodemask) in dump_header()
[all …]
Dmempolicy.c146 int (*create)(struct mempolicy *pol, const nodemask_t *nodes);
161 void (*rebind)(struct mempolicy *pol, const nodemask_t *nodes,
170 static void mpol_relative_nodemask(nodemask_t *ret, const nodemask_t *orig, in mpol_relative_nodemask()
171 const nodemask_t *rel) in mpol_relative_nodemask()
173 nodemask_t tmp; in mpol_relative_nodemask()
178 static int mpol_new_interleave(struct mempolicy *pol, const nodemask_t *nodes) in mpol_new_interleave()
186 static int mpol_new_preferred(struct mempolicy *pol, const nodemask_t *nodes) in mpol_new_preferred()
197 static int mpol_new_bind(struct mempolicy *pol, const nodemask_t *nodes) in mpol_new_bind()
215 const nodemask_t *nodes, struct nodemask_scratch *nsc) in mpol_set_nodemask()
254 nodemask_t *nodes) in mpol_new()
[all …]
Dmmzone.c45 static inline int zref_in_nodemask(struct zoneref *zref, nodemask_t *nodes) in zref_in_nodemask()
57 nodemask_t *nodes) in next_zones_zonelist()
Dpage_isolation.c303 nodemask_t src = nodemask_of_node(page_to_nid(page)); in alloc_migrate_target()
304 nodemask_t dst; in alloc_migrate_target()
Dhugetlb.c633 nodemask_t *nodemask; in dequeue_huge_page_vma()
690 static int next_node_allowed(int nid, nodemask_t *nodes_allowed) in next_node_allowed()
700 static int get_valid_node_allowed(int nid, nodemask_t *nodes_allowed) in get_valid_node_allowed()
714 nodemask_t *nodes_allowed) in hstate_next_node_to_alloc()
732 static int hstate_next_node_to_free(struct hstate *h, nodemask_t *nodes_allowed) in hstate_next_node_to_free()
870 nodemask_t *nodes_allowed) in alloc_fresh_gigantic_page()
891 nodemask_t *nodes_allowed) { return 0; } in alloc_fresh_gigantic_page()
1111 static int alloc_fresh_huge_page(struct hstate *h, nodemask_t *nodes_allowed) in alloc_fresh_huge_page()
1139 static int free_pool_huge_page(struct hstate *h, nodemask_t *nodes_allowed, in free_pool_huge_page()
1665 nodemask_t *nodes_allowed) in try_to_free_low()
[all …]
Dinternal.h127 nodemask_t *nodemask;
Dpage_alloc.c94 nodemask_t node_states[NR_NODE_STATES] __read_mostly = {
1954 static nodemask_t *zlc_setup(struct zonelist *zonelist, int alloc_flags) in zlc_setup()
1957 nodemask_t *allowednodes; /* zonelist_cache approximation */ in zlc_setup()
1997 nodemask_t *allowednodes) in zlc_zone_worth_trying()
2061 static nodemask_t *zlc_setup(struct zonelist *zonelist, int alloc_flags) in zlc_setup()
2067 nodemask_t *allowednodes) in zlc_zone_worth_trying()
2116 nodemask_t *allowednodes = NULL;/* zonelist_cache approximation */ in get_page_from_freelist()
2870 struct zonelist *zonelist, nodemask_t *nodemask) in __alloc_pages_nodemask()
3600 static int find_next_best_node(int node, nodemask_t *used_node_mask) in find_next_best_node()
3748 nodemask_t used_mask; in build_zonelists()
[all …]
Dmigrate.c1295 static int do_pages_move(struct mm_struct *mm, nodemask_t task_nodes, in do_pages_move()
1467 nodemask_t task_nodes; in SYSCALL_DEFINE6()
Dvmscan.c75 nodemask_t *nodemask;
2678 nodemask_t *nodemask) in throttle_direct_reclaim()
2762 gfp_t gfp_mask, nodemask_t *nodemask) in try_to_free_pages()
Dmemcontrol.c344 nodemask_t scan_nodes;
Dslub.c3972 nodemask_t nodes;
/linux-4.1.27/drivers/staging/lustre/include/linux/libcfs/
Dlibcfs_cpu.h97 nodemask_t ctb_nodemask;
141 nodemask_t *cfs_cpt_nodemask(struct cfs_cpt_table *cptab, int cpt);
189 int cpt, nodemask_t *mask);
194 int cpt, nodemask_t *mask);
/linux-4.1.27/drivers/staging/lustre/include/linux/libcfs/linux/
Dlinux-cpu.h58 nodemask_t *cpt_nodemask;
78 nodemask_t *ctb_nodemask;
/linux-4.1.27/kernel/
Dcpuset.c102 nodemask_t mems_allowed;
106 nodemask_t effective_mems;
118 nodemask_t old_mems_allowed;
352 static void guarantee_online_mems(struct cpuset *cs, nodemask_t *pmask) in guarantee_online_mems()
985 static void cpuset_migrate_mm(struct mm_struct *mm, const nodemask_t *from, in cpuset_migrate_mm()
986 const nodemask_t *to) in cpuset_migrate_mm()
1009 nodemask_t *newmems) in cpuset_change_task_nodemask()
1063 static nodemask_t newmems; /* protected by cpuset_mutex */ in update_tasks_nodemask()
1123 static void update_nodemasks_hier(struct cpuset *cs, nodemask_t *new_mems) in update_nodemasks_hier()
1486 static nodemask_t cpuset_attach_nodemask_to; in cpuset_attach()
[all …]
Dcompat.c1114 nodemask_t tmp_mask; in COMPAT_SYSCALL_DEFINE4()
Dkexec.c1968 VMCOREINFO_SIZE(nodemask_t); in crash_save_vmcoreinfo_init()
/linux-4.1.27/drivers/staging/lustre/lustre/libcfs/
Dlibcfs_cpu.c154 cfs_cpt_set_nodemask(struct cfs_cpt_table *cptab, int cpt, nodemask_t *mask) in cfs_cpt_set_nodemask()
161 cfs_cpt_unset_nodemask(struct cfs_cpt_table *cptab, int cpt, nodemask_t *mask) in cfs_cpt_unset_nodemask()
/linux-4.1.27/arch/x86/include/asm/
Dnuma.h31 extern nodemask_t numa_nodes_parsed __initdata;
/linux-4.1.27/arch/x86/mm/
Dnuma.c24 nodemask_t numa_nodes_parsed __initdata;
319 static void __init numa_nodemask_from_meminfo(nodemask_t *nodemask, in numa_nodemask_from_meminfo()
349 nodemask_t nodes_parsed; in numa_alloc_distance()
469 nodemask_t numa_kernel_nodes = NODE_MASK_NONE; in numa_clear_kernel_node_hotplug()
Dnuma_emulation.c84 nodemask_t physnode_mask = NODE_MASK_NONE; in split_nodes_interleave()
209 nodemask_t physnode_mask = NODE_MASK_NONE; in split_nodes_size_interleave()
/linux-4.1.27/drivers/staging/lustre/lustre/libcfs/linux/
Dlinux-cpu.c271 nodemask_t *
462 cfs_cpt_set_nodemask(struct cfs_cpt_table *cptab, int cpt, nodemask_t *mask) in cfs_cpt_set_nodemask()
476 cfs_cpt_unset_nodemask(struct cfs_cpt_table *cptab, int cpt, nodemask_t *mask) in cfs_cpt_unset_nodemask()
508 nodemask_t *mask; in cfs_cpt_spread_node()
570 nodemask_t *nodemask; in cfs_cpt_bind()
/linux-4.1.27/drivers/acpi/
Dnuma.c39 static nodemask_t nodes_found_map = NODE_MASK_NONE;
/linux-4.1.27/arch/tile/kernel/
Dsetup.c117 static nodemask_t __initdata isolnodes;
287 nodemask_t highonlynodes = isolnodes; in setup_pa_va_mapping()
890 nodemask_t default_nodes; in setup_numa_mapping()
/linux-4.1.27/arch/ia64/sn/kernel/sn2/
Dsn2_smp.c173 nodemask_t nodes_flushed; in sn2_global_tlb_purge()
/linux-4.1.27/arch/ia64/mm/
Ddiscontig.c48 static nodemask_t memory_less_mask __initdata;
/linux-4.1.27/drivers/base/
Dnode.c424 NODEMASK_ALLOC(nodemask_t, unlinked_nodes, GFP_KERNEL); in unregister_mem_sect_under_nodes()
/linux-4.1.27/kernel/sched/
Dfair.c879 nodemask_t active_nodes;
1707 nodemask_t nodes; in preferred_group_nid()
1747 nodemask_t max_group = NODE_MASK_NONE; in preferred_group_nid()
1756 nodemask_t this_group; in preferred_group_nid()