Home
last modified time | relevance | path

Searched refs:nodemask (Results 1 - 25 of 143) sorted by relevance

123456

/kernel/linux/linux-5.10/include/linux/
H A Dcpuset.h16 #include <linux/nodemask.h>
67 int cpuset_nodemask_valid_mems_allowed(nodemask_t *nodemask);
154 static inline void set_mems_allowed(nodemask_t nodemask) in set_mems_allowed() argument
161 current->mems_allowed = nodemask; in set_mems_allowed()
206 static inline int cpuset_nodemask_valid_mems_allowed(nodemask_t *nodemask) in cpuset_nodemask_valid_mems_allowed() argument
273 static inline void set_mems_allowed(nodemask_t nodemask) in set_mems_allowed() argument
H A Dnodemask.h20 * The available nodemask operations are:
52 * nodemask_t nodemask_of_node(node) Return nodemask with bit 'node' set
57 * int nodemask_parse_user(ubuf, ulen, mask) Parse ascii string as nodemask
102 * nodemask_pr_args - printf args to output a nodemask
103 * @maskp: nodemask to be printed
105 * Can be used to provide arguments for '%*pb[l]' when printing a nodemask.
152 #define node_isset(node, nodemask) test_bit((node), (nodemask).bits)
154 #define node_test_and_set(node, nodemask) \
155 __node_test_and_set((node), &(nodemask))
[all...]
H A Dmempolicy.h15 #include <linux/nodemask.h>
56 nodemask_t user_nodemask; /* nodemask passed by user */
151 struct mempolicy **mpol, nodemask_t **nodemask);
255 struct mempolicy **mpol, nodemask_t **nodemask) in huge_node()
258 *nodemask = NULL; in huge_node()
253 huge_node(struct vm_area_struct *vma, unsigned long addr, gfp_t gfp_flags, struct mempolicy **mpol, nodemask_t **nodemask) huge_node() argument
H A Doom.h8 #include <linux/nodemask.h>
34 nodemask_t *nodemask; member
H A Dmmzone.h17 #include <linux/nodemask.h>
1100 * next_zones_zonelist - Returns the next zone at or below highest_zoneidx within the allowed nodemask using a cursor within a zonelist as a starting point
1103 * @nodes - An optional nodemask to filter the zonelist with
1106 * within the allowed nodemask using a cursor as the starting point for the
1121 * first_zones_zonelist - Returns the first zone at or below highest_zoneidx within the allowed nodemask in a zonelist
1124 * @nodes - An optional nodemask to filter the zonelist with
1128 * within the allowed nodemask. The zoneref returned is a cursor that can be
1133 * never NULL). This may happen either genuinely, or due to concurrent nodemask
1145 * for_each_zone_zonelist_nodemask - helper macro to iterate over valid zones in a zonelist at or below a given zone index and within a nodemask
1150 * @nodemask
[all...]
/kernel/linux/linux-6.6/include/linux/
H A Dcpuset.h16 #include <linux/nodemask.h>
83 int cpuset_nodemask_valid_mems_allowed(nodemask_t *nodemask);
163 static inline void set_mems_allowed(nodemask_t nodemask) in set_mems_allowed() argument
170 current->mems_allowed = nodemask; in set_mems_allowed()
218 static inline int cpuset_nodemask_valid_mems_allowed(nodemask_t *nodemask) in cpuset_nodemask_valid_mems_allowed() argument
280 static inline void set_mems_allowed(nodemask_t nodemask) in set_mems_allowed() argument
H A Dmempolicy.h14 #include <linux/nodemask.h>
53 nodemask_t user_nodemask; /* nodemask passed by user */
148 struct mempolicy **mpol, nodemask_t **nodemask);
252 struct mempolicy **mpol, nodemask_t **nodemask) in huge_node()
255 *nodemask = NULL; in huge_node()
250 huge_node(struct vm_area_struct *vma, unsigned long addr, gfp_t gfp_flags, struct mempolicy **mpol, nodemask_t **nodemask) huge_node() argument
H A Dnodemask.h20 * The available nodemask operations are:
52 * nodemask_t nodemask_of_node(node) Return nodemask with bit 'node' set
57 * int nodemask_parse_user(ubuf, ulen, mask) Parse ascii string as nodemask
103 * nodemask_pr_args - printf args to output a nodemask
104 * @maskp: nodemask to be printed
106 * Can be used to provide arguments for '%*pb[l]' when printing a nodemask.
153 #define node_isset(node, nodemask) test_bit((node), (nodemask).bits)
155 #define node_test_and_set(node, nodemask) \
156 __node_test_and_set((node), &(nodemask))
[all...]
H A Doom.h8 #include <linux/nodemask.h>
34 nodemask_t *nodemask; member
H A Dgfp.h184 nodemask_t *nodemask);
186 nodemask_t *nodemask);
189 nodemask_t *nodemask, int nr_pages,
359 int nid, nodemask_t *nodemask);
H A Dmmzone.h18 #include <linux/nodemask.h>
1661 * next_zones_zonelist - Returns the next zone at or below highest_zoneidx within the allowed nodemask using a cursor within a zonelist as a starting point
1664 * @nodes: An optional nodemask to filter the zonelist with
1667 * within the allowed nodemask using a cursor as the starting point for the
1673 * nodemask using a cursor within a zonelist as a starting point
1685 * first_zones_zonelist - Returns the first zone at or below highest_zoneidx within the allowed nodemask in a zonelist
1688 * @nodes: An optional nodemask to filter the zonelist with
1691 * within the allowed nodemask. The zoneref returned is a cursor that can be
1696 * never NULL). This may happen either genuinely, or due to concurrent nodemask
1710 * for_each_zone_zonelist_nodemask - helper macro to iterate over valid zones in a zonelist at or below a given zone index and within a nodemask
[all...]
/kernel/linux/linux-6.6/tools/testing/selftests/kvm/x86_64/
H A Dxapic_ipi_test.c255 unsigned long nodemask = 0; in do_migrations() local
256 unsigned long nodemasks[sizeof(nodemask) * 8]; in do_migrations()
271 r = get_mempolicy(NULL, &nodemask, sizeof(nodemask) * 8, in do_migrations()
277 sizeof(nodemask) * 8, nodemask); in do_migrations()
283 for (i = 0, bit = 1; i < sizeof(nodemask) * 8; i++, bit <<= 1) { in do_migrations()
284 if (nodemask & bit) { in do_migrations()
285 nodemasks[nodes] = nodemask & bit; in do_migrations()
/kernel/linux/linux-6.6/mm/
H A Dshow_mem.c128 static bool show_mem_node_skip(unsigned int flags, int nid, nodemask_t *nodemask) in show_mem_node_skip() argument
138 if (!nodemask) in show_mem_node_skip()
139 nodemask = &cpuset_current_mems_allowed; in show_mem_node_skip()
141 return !node_isset(nid, *nodemask); in show_mem_node_skip()
189 static void show_free_areas(unsigned int filter, nodemask_t *nodemask, int max_zone_idx) in show_free_areas() argument
199 if (show_mem_node_skip(filter, zone_to_nid(zone), nodemask)) in show_free_areas()
236 if (show_mem_node_skip(filter, pgdat->node_id, nodemask)) in show_free_areas()
300 if (show_mem_node_skip(filter, zone_to_nid(zone), nodemask)) in show_free_areas()
363 if (show_mem_node_skip(filter, zone_to_nid(zone), nodemask)) in show_free_areas()
393 if (show_mem_node_skip(filter, nid, nodemask)) in show_free_areas()
403 __show_mem(unsigned int filter, nodemask_t *nodemask, int max_zone_idx) __show_mem() argument
[all...]
H A Doom_kill.c94 const nodemask_t *mask = oc->nodemask; in oom_cpuset_eligible()
281 * This is not a __GFP_THISNODE allocation, so a truncated nodemask in in constrained_alloc()
285 if (oc->nodemask && in constrained_alloc()
286 !nodes_subset(node_states[N_MEMORY], *oc->nodemask)) { in constrained_alloc()
288 for_each_node_mask(nid, *oc->nodemask) in constrained_alloc()
295 highest_zoneidx, oc->nodemask) in constrained_alloc()
316 /* p may not have freeable memory in nodemask */ in oom_evaluate_task()
389 /* p may not have freeable memory in nodemask */ in dump_task()
443 pr_info("oom-kill:constraint=%s,nodemask=%*pbl", in dump_oom_summary()
445 nodemask_pr_args(oc->nodemask)); in dump_oom_summary()
[all...]
H A Dpage_alloc.c36 #include <linux/nodemask.h>
1940 ac->nodemask) { in unreserve_highatomic_pageblock()
3099 ac->nodemask) { in get_page_from_freelist()
3242 static void warn_alloc_show_mem(gfp_t gfp_mask, nodemask_t *nodemask) in warn_alloc_show_mem() argument
3258 __show_mem(filter, nodemask, gfp_zone(gfp_mask)); in warn_alloc_show_mem()
3261 void warn_alloc(gfp_t gfp_mask, nodemask_t *nodemask, const char *fmt, ...) in warn_alloc() argument
3275 pr_warn("%s: %pV, mode:%#x(%pGg), nodemask=%*pbl", in warn_alloc()
3277 nodemask_pr_args(nodemask)); in warn_alloc()
3283 warn_alloc_show_mem(gfp_mask, nodemask); in warn_alloc()
3312 .nodemask in __alloc_pages_may_oom()
4209 prepare_alloc_pages(gfp_t gfp_mask, unsigned int order, int preferred_nid, nodemask_t *nodemask, struct alloc_context *ac, gfp_t *alloc_gfp, unsigned int *alloc_flags) prepare_alloc_pages() argument
4277 __alloc_pages_bulk(gfp_t gfp, int preferred_nid, nodemask_t *nodemask, int nr_pages, struct list_head *page_list, struct page **page_array) __alloc_pages_bulk() argument
4429 __alloc_pages(gfp_t gfp, unsigned int order, int preferred_nid, nodemask_t *nodemask) __alloc_pages() argument
4494 __folio_alloc(gfp_t gfp, unsigned int order, int preferred_nid, nodemask_t *nodemask) __folio_alloc() argument
6335 alloc_contig_pages(unsigned long nr_pages, gfp_t gfp_mask, int nid, nodemask_t *nodemask) alloc_contig_pages() argument
[all...]
/kernel/linux/linux-5.10/lib/
H A Dshow_mem.c11 void show_mem(unsigned int filter, nodemask_t *nodemask) in show_mem() argument
17 show_free_areas(filter, nodemask); in show_mem()
H A Dnodemask.c2 #include <linux/nodemask.h>
18 * Return the bit number of a random bit set in the nodemask.
19 * (returns NUMA_NO_NODE if nodemask is empty)
/kernel/linux/linux-5.10/mm/
H A Doom_kill.c93 const nodemask_t *mask = oc->nodemask; in oom_cpuset_eligible()
281 * This is not a __GFP_THISNODE allocation, so a truncated nodemask in in constrained_alloc()
285 if (oc->nodemask && in constrained_alloc()
286 !nodes_subset(node_states[N_MEMORY], *oc->nodemask)) { in constrained_alloc()
288 for_each_node_mask(nid, *oc->nodemask) in constrained_alloc()
295 highest_zoneidx, oc->nodemask) in constrained_alloc()
316 /* p may not have freeable memory in nodemask */ in oom_evaluate_task()
389 /* p may not have freeable memory in nodemask */ in dump_task()
444 pr_info("oom-kill:constraint=%s,nodemask=%*pbl", in dump_oom_summary()
446 nodemask_pr_args(oc->nodemask)); in dump_oom_summary()
[all...]
H A Dpage_alloc.c41 #include <linux/nodemask.h>
2696 ac->nodemask) { in unreserve_highatomic_pageblock()
3845 ac->nodemask) { in get_page_from_freelist()
3978 static void warn_alloc_show_mem(gfp_t gfp_mask, nodemask_t *nodemask) in warn_alloc_show_mem() argument
3994 show_mem(filter, nodemask); in warn_alloc_show_mem()
3997 void warn_alloc(gfp_t gfp_mask, nodemask_t *nodemask, const char *fmt, ...) in warn_alloc() argument
4011 pr_warn("%s: %pV, mode:%#x(%pGg), nodemask=%*pbl", in warn_alloc()
4013 nodemask_pr_args(nodemask)); in warn_alloc()
4019 warn_alloc_show_mem(gfp_mask, nodemask); in warn_alloc()
4048 .nodemask in __alloc_pages_may_oom()
4959 prepare_alloc_pages(gfp_t gfp_mask, unsigned int order, int preferred_nid, nodemask_t *nodemask, struct alloc_context *ac, gfp_t *alloc_mask, unsigned int *alloc_flags) prepare_alloc_pages() argument
5014 __alloc_pages_nodemask(gfp_t gfp_mask, unsigned int order, int preferred_nid, nodemask_t *nodemask) __alloc_pages_nodemask() argument
5525 show_mem_node_skip(unsigned int flags, int nid, nodemask_t *nodemask) show_mem_node_skip() argument
5579 show_free_areas(unsigned int filter, nodemask_t *nodemask) show_free_areas() argument
8855 alloc_contig_pages(unsigned long nr_pages, gfp_t gfp_mask, int nid, nodemask_t *nodemask) alloc_contig_pages() argument
[all...]
/kernel/linux/linux-5.10/arch/mips/kernel/
H A Dtopology.c6 #include <linux/nodemask.h>
/kernel/linux/linux-6.6/arch/mips/kernel/
H A Dtopology.c6 #include <linux/nodemask.h>
/kernel/linux/linux-5.10/arch/loongarch/include/asm/
H A Dnuma.h14 #include <linux/nodemask.h>
/kernel/linux/linux-5.10/arch/x86/include/asm/
H A Dcpu.h8 #include <linux/nodemask.h>
/kernel/linux/linux-6.6/arch/loongarch/include/asm/
H A Dnuma.h12 #include <linux/nodemask.h>
/kernel/linux/linux-6.6/arch/x86/kernel/
H A Dtopology.c29 #include <linux/nodemask.h>

Completed in 29 milliseconds

123456