Home
last modified time | relevance | path

Searched refs:nodemask (Results 1 – 25 of 31) sorted by relevance

12

/openbmc/linux/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()
[all …]
H A Doom_kill.c96 const nodemask_t *mask = oc->nodemask; in oom_cpuset_eligible()
287 if (oc->nodemask && in constrained_alloc()
288 !nodes_subset(node_states[N_MEMORY], *oc->nodemask)) { in constrained_alloc()
290 for_each_node_mask(nid, *oc->nodemask) in constrained_alloc()
297 highest_zoneidx, oc->nodemask) in constrained_alloc()
452 nodemask_pr_args(oc->nodemask)); in dump_oom_summary()
471 __show_mem(SHOW_MEM_FILTER_NODES, oc->nodemask, gfp_zone(oc->gfp_mask)); in dump_header()
1152 oc->nodemask = NULL; in out_of_memory()
H A Dpage_alloc.c36 #include <linux/nodemask.h>
1952 ac->nodemask) { in unreserve_highatomic_pageblock()
3087 ac->nodemask) { in get_page_from_freelist()
3228 static void warn_alloc_show_mem(gfp_t gfp_mask, nodemask_t *nodemask) in warn_alloc_show_mem() argument
3244 __show_mem(filter, nodemask, gfp_zone(gfp_mask)); in warn_alloc_show_mem()
3247 void warn_alloc(gfp_t gfp_mask, nodemask_t *nodemask, const char *fmt, ...) in warn_alloc() argument
3261 pr_warn("%s: %pV, mode:%#x(%pGg), nodemask=%*pbl", in warn_alloc()
3263 nodemask_pr_args(nodemask)); in warn_alloc()
3269 warn_alloc_show_mem(gfp_mask, nodemask); in warn_alloc()
3298 .nodemask in __alloc_pages_may_oom()
4198 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
4261 __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
4414 __alloc_pages(gfp_t gfp,unsigned int order,int preferred_nid,nodemask_t * nodemask) __alloc_pages() argument
4479 __folio_alloc(gfp_t gfp,unsigned int order,int preferred_nid,nodemask_t * nodemask) __folio_alloc() argument
6316 alloc_contig_pages(unsigned long nr_pages,gfp_t gfp_mask,int nid,nodemask_t * nodemask) alloc_contig_pages() argument
[all...]
H A Dhugetlb.c13 #include <linux/nodemask.h>
1404 nodemask_t *nodemask; in dequeue_hugetlb_folio_vma() local
1420 nid = huge_node(vma, address, gfp_mask, &mpol, &nodemask); in dequeue_hugetlb_folio_vma()
1424 nid, nodemask); in dequeue_hugetlb_folio_vma()
1427 nodemask = NULL; in dequeue_hugetlb_folio_vma()
1432 nid, nodemask); in dequeue_hugetlb_folio_vma()
1572 int nid, nodemask_t *nodemask) in alloc_gigantic_folio() argument
1591 for_each_node_mask(node, *nodemask) { in alloc_gigantic_folio()
1604 page = alloc_contig_pages(nr_pages, gfp_mask, nid, nodemask); in alloc_gigantic_folio()
1610 int nid, nodemask_t *nodemask) in alloc_gigantic_folio() argument
1618 alloc_gigantic_folio(struct hstate * h,gfp_t gfp_mask,int nid,nodemask_t * nodemask) alloc_gigantic_folio() argument
2465 nodemask_t *nodemask; alloc_buddy_hugetlb_folio_with_mpol() local
2509 nodemask_t *nodemask; alloc_hugetlb_folio_vma() local
[all...]
H A Dmempolicy.c1957 nodemask_t nodemask = pol->nodes; in offset_il_node() local
1970 nnodes = nodes_weight(nodemask); in offset_il_node()
1974 nid = first_node(nodemask); in offset_il_node()
1976 nid = next_node(nid, nodemask); in offset_il_node()
2019 struct mempolicy **mpol, nodemask_t **nodemask) in huge_node() argument
2025 *nodemask = NULL; in huge_node()
2034 *nodemask = &(*mpol)->nodes; in huge_node()
H A Dvmscan.c82 nodemask_t *nodemask; member
6743 sc->reclaim_idx, sc->nodemask) { in shrink_zones()
6880 sc->nodemask) { in do_try_to_free_pages()
6983 nodemask_t *nodemask) in throttle_direct_reclaim() argument
7021 gfp_zone(gfp_mask), nodemask) { in throttle_direct_reclaim()
7063 gfp_t gfp_mask, nodemask_t *nodemask) in try_to_free_pages() argument
7071 .nodemask = nodemask, in try_to_free_pages()
7091 if (throttle_direct_reclaim(sc.gfp_mask, zonelist, nodemask)) in try_to_free_pages()
H A Dinternal.h289 nodemask_t *nodemask; member
H A Dcompaction.c2361 ac->highest_zoneidx, ac->nodemask) { in compaction_zonelist_suitable()
2698 ac->highest_zoneidx, ac->nodemask) { in try_to_compact_pages()
/openbmc/linux/Documentation/translations/zh_CN/core-api/
H A Dmemory-hotplug.rst73 - status_change_nid_normal是当nodemask的N_NORMAL_MEMORY被设置/清除时设置节
74 点id,如果是-1,则nodemask状态不改变。
76 - status_change_nid是当nodemask的N_MEMORY被(将)设置/清除时设置的节点id。这
78 存。如果这个值为-1,那么nodemask的状态就不会改变。
H A Dprintk-formats.rst533 位图及其衍生物,如cpumask和nodemask
541 对于打印位图(bitmap)及其派生的cpumask和nodemask,%*pb输出以字段宽度为位数的位图,
545 nodemask_pr_args()来方便打印cpumask和nodemask
/openbmc/linux/include/linux/
H A Dcpuset.h83 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 Dnodemask.h153 #define node_isset(node, nodemask) test_bit((node), (nodemask).bits) argument
155 #define node_test_and_set(node, nodemask) \ argument
156 __node_test_and_set((node), &(nodemask))
232 #define nodes_full(nodemask) __nodes_full(&(nodemask), MAX_NUMNODES) argument
238 #define nodes_weight(nodemask) __nodes_weight(&(nodemask), MAX_NUMNODES) argument
H A Dmempolicy.h148 struct mempolicy **mpol, nodemask_t **nodemask);
252 struct mempolicy **mpol, nodemask_t **nodemask) in huge_node() argument
255 *nodemask = NULL; in huge_node()
H A Dgfp.h178 nodemask_t *nodemask);
180 nodemask_t *nodemask);
183 nodemask_t *nodemask, int nr_pages,
362 int nid, nodemask_t *nodemask);
H A Doom.h34 nodemask_t *nodemask; member
H A Dmmzone.h1673 #define for_each_zone_zonelist_nodemask(zone, z, zlist, highidx, nodemask) \ argument
1674 for (z = first_zones_zonelist(zlist, highidx, nodemask), zone = zonelist_zone(z); \
1676 z = next_zones_zonelist(++z, highidx, nodemask), \
1679 #define for_next_zone_zonelist_nodemask(zone, z, highidx, nodemask) \ argument
1682 z = next_zones_zonelist(++z, highidx, nodemask), \
/openbmc/linux/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()
/openbmc/linux/Documentation/admin-guide/mm/
H A Dnuma_memory_policy.rst215 is always preferred by passing an empty nodemask with this
216 mode. If an empty nodemask is passed, the policy cannot use
248 satisfied from the nodemask specified in the policy. If there is
249 a memory pressure on all nodes in the nodemask, the allocation
256 This flag specifies that the nodemask passed by
261 change in the set of allowed nodes, the preferred nodemask (Preferred
262 Many), preferred node (Preferred) or nodemask (Bind, Interleave) is
275 3 is allowed from the user's nodemask, the "interleave" only
276 occurs over that node. If no nodes from the user's nodemask are
281 MPOL_PREFERRED policies that were created with an empty nodemask
[all …]
/openbmc/linux/Documentation/core-api/
H A Dmemory-hotplug.rst65 - status_change_nid_normal is set node id when N_NORMAL_MEMORY of nodemask
66 is (will be) set/clear, if this is -1, then nodemask status is not changed.
67 - status_change_nid is set node id when N_MEMORY of nodemask is (will be)
69 node loses all memory. If this is -1, then nodemask status is not changed.
H A Dprintk-formats.rst563 bitmap and its derivatives such as cpumask and nodemask
571 For printing bitmap and its derivatives such as cpumask and nodemask,
577 printing cpumask and nodemask.
/openbmc/linux/kernel/
H A Dsmp.c722 const struct cpumask *nodemask; in smp_call_function_any() local
731 nodemask = cpumask_of_node(cpu_to_node(cpu)); in smp_call_function_any()
732 for (cpu = cpumask_first_and(nodemask, mask); cpu < nr_cpu_ids; in smp_call_function_any()
733 cpu = cpumask_next_and(cpu, nodemask, mask)) { in smp_call_function_any()
/openbmc/linux/arch/x86/mm/
H A Dnuma.c336 static void __init numa_nodemask_from_meminfo(nodemask_t *nodemask, in numa_nodemask_from_meminfo() argument
344 node_set(mi->blk[i].nid, *nodemask); in numa_nodemask_from_meminfo()
/openbmc/linux/kernel/irq/
H A Dmanage.c624 const struct cpumask *nodemask = cpumask_of_node(node); in irq_setup_affinity() local
627 if (cpumask_intersects(&mask, nodemask)) in irq_setup_affinity()
628 cpumask_and(&mask, &mask, nodemask); in irq_setup_affinity()
/openbmc/linux/drivers/tty/
H A Dsysrq.c390 .nodemask = NULL, in moom_callback()
/openbmc/linux/Documentation/mm/
H A Dphysical_memory.rst188 ``include/linux/nodemask.h``.

12