Home
last modified time | relevance | path

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

12

/linux/mm/
H A Dshow_mem.c125 static bool show_mem_node_skip(unsigned int flags, int nid, nodemask_t *nodemask) in show_mem_node_skip() argument
135 if (!nodemask) in show_mem_node_skip()
136 nodemask = &cpuset_current_mems_allowed; in show_mem_node_skip()
138 return !node_isset(nid, *nodemask); in show_mem_node_skip()
196 if (show_mem_node_skip(filter, zone_to_nid(zone), nodemask)) in show_free_areas()
233 if (show_mem_node_skip(filter, pgdat->node_id, nodemask)) in show_free_areas()
297 if (show_mem_node_skip(filter, zone_to_nid(zone), nodemask)) in show_free_areas()
360 if (show_mem_node_skip(filter, zone_to_nid(zone), nodemask)) in show_free_areas()
390 if (show_mem_node_skip(filter, nid, nodemask)) in show_free_areas()
400 void __show_mem(unsigned int filter, nodemask_t *nodemask, int max_zone_idx) in __show_mem() argument
[all …]
H A Dmempolicy.c1224 nodemask_t *nodemask; in alloc_migration_target_by_mpol() local
1981 nodemask_t nodemask; in weighted_interleave_nid() local
2004 nid = first_node(nodemask); in weighted_interleave_nid()
2025 nodemask_t nodemask; in interleave_nid() local
2034 nid = first_node(nodemask); in interleave_nid()
2055 nodemask = &pol->nodes; in policy_nodemask()
2063 nodemask = &pol->nodes; in policy_nodemask()
2085 return nodemask; in policy_nodemask()
2223 nodemask_t *nodemask; in alloc_pages_mpol() local
2246 (!nodemask || node_isset(nid, *nodemask))) { in alloc_pages_mpol()
[all …]
H A Doom_kill.c95 const nodemask_t *mask = oc->nodemask; in oom_cpuset_eligible()
286 if (oc->nodemask && in constrained_alloc()
287 !nodes_subset(node_states[N_MEMORY], *oc->nodemask)) { in constrained_alloc()
289 for_each_node_mask(nid, *oc->nodemask) in constrained_alloc()
296 highest_zoneidx, oc->nodemask) in constrained_alloc()
447 nodemask_pr_args(oc->nodemask)); in dump_oom_victim()
466 __show_mem(SHOW_MEM_FILTER_NODES, oc->nodemask, gfp_zone(oc->gfp_mask)); in dump_header()
1147 oc->nodemask = NULL; in out_of_memory()
H A Dpage_alloc.c1935 ac->nodemask) { in unreserve_highatomic_pageblock()
3193 ac->nodemask) { in get_page_from_freelist()
3425 .nodemask = ac->nodemask, in __alloc_pages_may_oom()
3775 ac->nodemask); in __perform_reclaim()
3829 ac->nodemask) { in wake_all_kswapds()
4028 ac->nodemask = NULL; in check_retry_cpuset()
4183 ac->nodemask = NULL; in __alloc_pages_slowpath()
4331 ac->nodemask = nodemask; in prepare_alloc_pages()
4540 nodemask_t *nodemask) in __alloc_pages() argument
4586 ac.nodemask = nodemask; in __alloc_pages()
[all …]
H A Dhugetlb.c1398 nodemask_t *nodemask; in dequeue_hugetlb_folio_vma() local
1418 nid, nodemask); in dequeue_hugetlb_folio_vma()
1421 nodemask = NULL; in dequeue_hugetlb_folio_vma()
1426 nid, nodemask); in dequeue_hugetlb_folio_vma()
1566 int nid, nodemask_t *nodemask) in alloc_gigantic_folio() argument
1585 for_each_node_mask(node, *nodemask) { in alloc_gigantic_folio()
1604 int nid, nodemask_t *nodemask) in alloc_gigantic_folio() argument
1612 int nid, nodemask_t *nodemask) in alloc_gigantic_folio() argument
2587 nodemask_t *nodemask; in alloc_buddy_hugetlb_folio_with_mpol() local
2597 nodemask = NULL; in alloc_buddy_hugetlb_folio_with_mpol()
[all …]
H A Dvmscan.c81 nodemask_t *nodemask; member
6095 sc->reclaim_idx, sc->nodemask) { in shrink_zones()
6232 sc->nodemask) { in do_try_to_free_pages()
6335 nodemask_t *nodemask) in throttle_direct_reclaim() argument
6373 gfp_zone(gfp_mask), nodemask) { in throttle_direct_reclaim()
6415 gfp_t gfp_mask, nodemask_t *nodemask) in try_to_free_pages() argument
6423 .nodemask = nodemask, in try_to_free_pages()
6443 if (throttle_direct_reclaim(sc.gfp_mask, zonelist, nodemask)) in try_to_free_pages()
H A Dinternal.h338 nodemask_t *nodemask; member
/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
/linux/include/linux/
H A Dcpuset.h16 #include <linux/nodemask.h>
83 int cpuset_nodemask_valid_mems_allowed(nodemask_t *nodemask);
158 static inline void set_mems_allowed(nodemask_t nodemask)
165 current->mems_allowed = nodemask; in set_mems_allowed()
216 static inline int cpuset_nodemask_valid_mems_allowed(nodemask_t *nodemask)
273 static inline void set_mems_allowed(nodemask_t nodemask) in cpuset_print_current_mems_allowed()
159 set_mems_allowed(nodemask_t nodemask) set_mems_allowed() argument
219 cpuset_nodemask_valid_mems_allowed(nodemask_t * nodemask) cpuset_nodemask_valid_mems_allowed() argument
276 set_mems_allowed(nodemask_t nodemask) 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.h143 struct mempolicy **mpol, nodemask_t **nodemask);
255 struct mempolicy **mpol, nodemask_t **nodemask) in huge_node() argument
258 *nodemask = NULL; in huge_node()
H A Dgfp.h179 nodemask_t *nodemask);
181 nodemask_t *nodemask);
184 nodemask_t *nodemask, int nr_pages,
380 int nid, nodemask_t *nodemask);
H A Doom.h34 nodemask_t *nodemask; member
H A Dmmzone.h1682 #define for_each_zone_zonelist_nodemask(zone, z, zlist, highidx, nodemask) \ argument
1683 for (z = first_zones_zonelist(zlist, highidx, nodemask), zone = zonelist_zone(z); \
1685 z = next_zones_zonelist(++z, highidx, nodemask), \
1688 #define for_next_zone_zonelist_nodemask(zone, z, highidx, nodemask) \ argument
1691 z = next_zones_zonelist(++z, highidx, nodemask), \
/linux/tools/testing/selftests/kvm/x86_64/
H A Dxapic_ipi_test.c253 unsigned long nodemask = 0; in do_migrations()
254 unsigned long nodemasks[sizeof(nodemask) * 8]; in do_migrations()
269 r = get_mempolicy(NULL, &nodemask, sizeof(nodemask) * 8, in do_migrations()
275 sizeof(nodemask) * 8, nodemask); in do_migrations()
281 for (i = 0, bit = 1; i < sizeof(nodemask) * 8; i++, bit <<= 1) { in do_migrations()
282 if (nodemask & bit) { in do_migrations()
283 nodemasks[nodes] = nodemask & bit; in do_migrations()
255 unsigned long nodemask = 0; do_migrations() local
/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
249 a memory pressure on all nodes in the nodemask, the allocation
265 This flag specifies that the nodemask passed by
284 3 is allowed from the user's nodemask, the "interleave" only
294 This flag specifies that the nodemask passed
302 nodes, the node (Preferred) or nodemask (Bind, Interleave) is
305 set of allowed nodes upon successive rebinds: a nodemask of
310 the user's passed nodemask are relative to the set of allowed
321 if not already set, sets the node in the mempolicy nodemask.
[all …]
/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.
/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()
/linux/tools/workqueue/
H A Dwq_dump.py53 from drgn.helpers.linux.nodemask import for_each_node
/linux/arch/x86/mm/
H A Dnuma.c337 static void __init numa_nodemask_from_meminfo(nodemask_t *nodemask, in numa_nodemask_from_meminfo() argument
345 node_set(mi->blk[i].nid, *nodemask); in numa_nodemask_from_meminfo()
/linux/kernel/irq/
H A Dmanage.c628 const struct cpumask *nodemask = cpumask_of_node(node); in irq_setup_affinity() local
631 if (cpumask_intersects(&mask, nodemask)) in irq_setup_affinity()
632 cpumask_and(&mask, &mask, nodemask); in irq_setup_affinity()
/linux/drivers/tty/
H A Dsysrq.c390 .nodemask = NULL, in moom_callback()
/linux/Documentation/mm/
H A Dphysical_memory.rst188 ``include/linux/nodemask.h``.

12