Home
last modified time | relevance | path

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

/linux/mm/
H A Dshow_mem.c121 const nodemask_t *nodemask) in show_mem_node_skip() argument
131 if (!nodemask) in show_mem_node_skip()
132 nodemask = &cpuset_current_mems_allowed; in show_mem_node_skip()
134 return !node_isset(nid, *nodemask); in show_mem_node_skip()
182 static void show_free_areas(unsigned int filter, const nodemask_t *nodemask, in show_free_areas() argument
193 if (show_mem_node_skip(filter, zone_to_nid(zone), nodemask)) in show_free_areas()
230 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()
368 if (show_mem_node_skip(filter, zone_to_nid(zone), nodemask)) in show_free_areas()
398 if (show_mem_node_skip(filter, nid, nodemask)) in show_free_areas()
[all …]
H A Dhugetlb_cma.h10 int nid, nodemask_t *nodemask);
22 gfp_t gfp_mask, int nid, nodemask_t *nodemask) in hugetlb_cma_alloc_frozen_folio() argument
H A Dmempolicy.c1451 nodemask_t *nodemask; in alloc_migration_target_by_mpol() local
1456 nodemask = policy_nodemask(gfp, pol, ilx, &nid); in alloc_migration_target_by_mpol()
1457 return alloc_hugetlb_folio_nodemask(h, nid, nodemask, gfp, in alloc_migration_target_by_mpol()
2200 nodemask_t nodemask; in weighted_interleave_nid() local
2207 nr_nodes = read_once_policy_nodemask(pol, &nodemask); in weighted_interleave_nid()
2219 for_each_node_mask(nid, nodemask) in weighted_interleave_nid()
2224 nid = first_node(nodemask); in weighted_interleave_nid()
2231 nid = next_node_in(nid, nodemask); in weighted_interleave_nid()
2244 nodemask_t nodemask; in interleave_nid() local
2249 nnodes = read_once_policy_nodemask(pol, &nodemask); in interleave_nid()
[all …]
H A Dhugetlb_cma.c54 int nid, nodemask_t *nodemask) in hugetlb_cma_alloc_frozen_folio() argument
66 if (!nodemask) { in hugetlb_cma_alloc_frozen_folio()
70 nmask = nodemask; in hugetlb_cma_alloc_frozen_folio()
88 if (!nodemask && in hugetlb_cma_alloc_frozen_folio()
H A Dpage_alloc.c3507 ac->nodemask) { in unreserve_highatomic_pageblock()
3819 ac->nodemask) { in get_page_from_freelist()
3979 static void warn_alloc_show_mem(gfp_t gfp_mask, const nodemask_t *nodemask) in warn_alloc_show_mem() argument
3995 __show_mem(filter, nodemask, gfp_zone(gfp_mask)); in warn_alloc_show_mem()
3999 void warn_alloc(gfp_t gfp_mask, const nodemask_t *nodemask, const char *fmt, ...) in warn_alloc() argument
4015 nodemask_pr_args(nodemask)); in warn_alloc()
4021 warn_alloc_show_mem(gfp_mask, nodemask); in warn_alloc()
4049 .nodemask = ac->nodemask, in __alloc_pages_may_oom()
4344 ac->highest_zoneidx, ac->nodemask) { in should_compact_retry()
4452 ac->nodemask); in __perform_reclaim()
[all …]
H A Dhugetlb.c1328 nodemask_t *nodemask = mpoli->nodemask; in dequeue_hugetlb_folio() local
1334 nodemask); in dequeue_hugetlb_folio()
1337 nodemask = NULL; in dequeue_hugetlb_folio()
1343 nodemask); in dequeue_hugetlb_folio()
1350 int nid, nodemask_t *nodemask) in alloc_gigantic_frozen_folio() argument
1354 folio = hugetlb_cma_alloc_frozen_folio(order, gfp_mask, nid, nodemask); in alloc_gigantic_frozen_folio()
1362 nid, nodemask); in alloc_gigantic_frozen_folio()
1367 nodemask_t *nodemask) in alloc_gigantic_frozen_folio() argument
2157 nodemask_t *nodemask = mpoli->nodemask; in alloc_buddy_hugetlb_folio() local
2163 nodemask); in alloc_buddy_hugetlb_folio()
[all …]
H A Dvmscan.c84 const nodemask_t *nodemask; member
6446 sc->reclaim_idx, sc->nodemask) { in shrink_zones()
6576 sc->nodemask) { in do_try_to_free_pages()
6690 const nodemask_t *nodemask) in throttle_direct_reclaim() argument
6728 gfp_zone(gfp_mask), nodemask) { in throttle_direct_reclaim()
6770 gfp_t gfp_mask, const nodemask_t *nodemask) in try_to_free_pages() argument
6778 .nodemask = nodemask, in try_to_free_pages()
6798 if (throttle_direct_reclaim(sc.gfp_mask, zonelist, nodemask)) in try_to_free_pages()
H A Dmemcontrol.c1935 .nodemask = NULL, in mem_cgroup_out_of_memory()
/linux/tools/testing/selftests/kvm/x86/
H A Dxapic_ipi_test.c235 unsigned long nodemask = 0; in cancel_join_vcpu_thread()
236 unsigned long nodemasks[sizeof(nodemask) * 8]; in cancel_join_vcpu_thread()
251 kvm_get_mempolicy(NULL, &nodemask, sizeof(nodemask) * 8, in do_migrations()
256 sizeof(nodemask) * 8, nodemask); in do_migrations()
262 for (i = 0, bit = 1; i < sizeof(nodemask) * 8; i++, bit <<= 1) { in do_migrations()
263 if (nodemask & bit) { in do_migrations()
264 nodemasks[nodes] = nodemask & bit; in do_migrations()
254 unsigned long nodemask = 0; do_migrations() local
/linux/tools/testing/selftests/kvm/
H A Dguest_memfd_test.c82 unsigned long nodemask = 0; in test_mbind() local
83 unsigned long maxnode = BITS_PER_TYPE(nodemask); in test_mbind()
95 kvm_get_mempolicy(&policy, &nodemask, maxnode, mem, MPOL_F_ADDR); in test_mbind()
96 TEST_ASSERT(policy == MPOL_INTERLEAVE && nodemask == nodemask_0, in test_mbind()
97 "Wanted MPOL_INTERLEAVE (%u) and nodemask 0x%lx, got %u and 0x%lx", in test_mbind()
98 MPOL_INTERLEAVE, nodemask_0, policy, nodemask); in test_mbind()
102 kvm_get_mempolicy(&policy, &nodemask, maxnode, mem + page_size * 2, MPOL_F_ADDR); in test_mbind()
103 TEST_ASSERT(policy == MPOL_BIND && nodemask == nodemask_0, in test_mbind()
104 "Wanted MPOL_BIND (%u) and nodemask 0x%lx, got %u and 0x%lx", in test_mbind()
105 MPOL_BIND, nodemask_0, policy, nodemask); in test_mbind()
[all...]
/linux/tools/testing/selftests/futex/functional/
H A Dfutex_numa_mpol.c190 unsigned long nodemask; in TEST()
193 nodemask = 1 << i; in TEST()
194 ret = mbind(futex_ptr, mem_size, MPOL_BIND, &nodemask, in TEST()
195 sizeof(nodemask) * 8, 0); in TEST()
183 unsigned long nodemask; TEST() local
/linux/include/linux/
H A Dnodemask.h157 #define node_isset(node, nodemask) test_bit((node), (nodemask).bits) argument
159 #define node_test_and_set(node, nodemask) \ argument
160 __node_test_and_set((node), &(nodemask))
243 #define nodes_full(nodemask) __nodes_full(&(nodemask), MAX_NUMNODES) argument
249 #define nodes_weight(nodemask) __nodes_weight(&(nodemask), MAX_NUMNODES) argument
H A Dmempolicy.h145 struct mempolicy **mpol, nodemask_t **nodemask);
261 struct mempolicy **mpol, nodemask_t **nodemask) in huge_node() argument
264 *nodemask = NULL; in huge_node()
H A Dmmzone.h1893 #define for_each_zone_zonelist_nodemask(zone, z, zlist, highidx, nodemask) \ argument
1894 for (z = first_zones_zonelist(zlist, highidx, nodemask), zone = zonelist_zone(z); \
1896 z = next_zones_zonelist(++z, highidx, nodemask), \
1899 #define for_next_zone_zonelist_nodemask(zone, z, highidx, nodemask) \ argument
1902 z = next_zones_zonelist(++z, highidx, nodemask), \
H A Dmm.h4158 extern void __show_mem(unsigned int flags, const nodemask_t *nodemask, int max_zone_idx);
4168 void warn_alloc(gfp_t gfp_mask, const nodemask_t *nodemask, const char *fmt, ...);
/linux/tools/testing/selftests/kvm/include/
H A Dnumaif.h30 const unsigned long *, nodemask, unsigned long, maxnode,
/linux/Documentation/translations/zh_CN/core-api/
H A Dprintk-formats.rst532 位图及其衍生物,如cpumask和nodemask
540 对于打印位图(bitmap)及其派生的cpumask和nodemask,%*pb输出以字段宽度为位数的位图,
544 nodemask_pr_args()来方便打印cpumask和nodemask。
/linux/tools/workqueue/
H A Dwq_dump.py58 from drgn.helpers.linux.nodemask import for_each_node
/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()
/linux/drivers/tty/
H A Dsysrq.c390 .nodemask = NULL, in moom_callback()
/linux/kernel/cgroup/
H A Dcpuset.c1166 * compute_effective_nodemask - Compute the effective nodemask of the cpuset
1171 * For v2, the parent's effective_mems is inherited if nodemask is empty.
2791 * When configured nodemask is changed, the effective nodemasks of this cpuset in update_nodemasks_hier()
2809 /* Skip the whole subtree if the nodemask remains the same. */ in update_nodemasks_hier()
4377 * cpuset_nodemask_valid_mems_allowed - check nodemask vs. current mems_allowed
4378 * @nodemask: the nodemask to be checked
4380 * Are any of the nodes in the nodemask allowed in current->mems_allowed?
4382 int cpuset_nodemask_valid_mems_allowed(const nodemask_t *nodemask)
4384 return nodes_intersects(*nodemask, curren
4357 cpuset_nodemask_valid_mems_allowed(const nodemask_t * nodemask) cpuset_nodemask_valid_mems_allowed() argument
[all...]
/linux/kernel/sched/
H A Dcore.c3565 const struct cpumask *nodemask = NULL; in select_fallback_rq() local
3575 nodemask = cpumask_of_node(nid); in select_fallback_rq()
3578 for_each_cpu(dest_cpu, nodemask) { in select_fallback_rq()
/linux/
H A DMAINTAINERS4649 F: include/linux/nodemask.h