| /linux/tools/testing/selftests/kvm/x86/ |
| H A D | xapic_ipi_test.c | 254 unsigned long nodemask = 0; in do_migrations() local 255 unsigned long nodemasks[sizeof(nodemask) * 8]; in do_migrations() 270 kvm_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()
|
| /linux/include/linux/ |
| H A D | cpuset.h | 86 int cpuset_nodemask_valid_mems_allowed(nodemask_t *nodemask); 166 static inline void set_mems_allowed(nodemask_t nodemask) in set_mems_allowed() argument 173 current->mems_allowed = nodemask; in set_mems_allowed() 227 static inline int cpuset_nodemask_valid_mems_allowed(nodemask_t *nodemask) in cpuset_nodemask_valid_mems_allowed() argument 288 static inline void set_mems_allowed(nodemask_t nodemask) in set_mems_allowed() argument
|
| H A D | gfp.h | 230 nodemask_t *nodemask); 234 nodemask_t *nodemask); 238 nodemask_t *nodemask, int nr_pages, 459 gfp_t gfp_mask, int nid, nodemask_t *nodemask); 464 int nid, nodemask_t *nodemask);
|
| H A D | mempolicy.h | 145 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 D | oom.h | 33 nodemask_t *nodemask; member
|
| H A D | mm.h | 4045 extern void __show_mem(unsigned int flags, nodemask_t *nodemask, int max_zone_idx); 4055 void warn_alloc(gfp_t gfp_mask, nodemask_t *nodemask, const char *fmt, ...);
|
| /linux/tools/testing/selftests/kvm/ |
| H A D | guest_memfd_test.c | 82 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 D | futex_numa_mpol.c | 185 unsigned long nodemask; in TEST() 188 nodemask = 1 << i; in TEST() 189 ret = mbind(futex_ptr, mem_size, MPOL_BIND, &nodemask, in TEST() 190 sizeof(nodemask) * 8, 0); in TEST() 183 unsigned long nodemask; TEST() local
|
| /linux/mm/ |
| H A D | mempolicy.c | 90 #include <linux/nodemask.h> 125 #define MPOL_MF_INVERT (MPOL_MF_INTERNAL << 1) /* Invert check for nodemask */ 314 * @mask: a pointer to a nodemask representing the allowed nodes. 397 * mpol_set_nodemask is called after mpol_new() to set up the nodemask, if 455 * MPOL_F_RELATIVE_NODES if the nodemask is empty (local allocation). in mpol_new() 456 * All other modes require a valid pointer to a non-empty nodemask. in mpol_new() 535 * OOM/allocation failure due to parallel nodemask modification. 560 * Rebind each vma in mm to new nodemask. 1107 * Return nodemask for policy for get_mempolicy() query 1448 nodemask_t *nodemask; in alloc_migration_target_by_mpol() local 2206 nodemask_t nodemask; weighted_interleave_nid() local 2250 nodemask_t nodemask; interleave_nid() local 2272 nodemask_t *nodemask = NULL; policy_nodemask() local 2328 huge_node(struct vm_area_struct * vma,unsigned long addr,gfp_t gfp_flags,struct mempolicy ** mpol,nodemask_t ** nodemask) huge_node() argument 2415 alloc_pages_preferred_many(gfp_t gfp,unsigned int order,int nid,nodemask_t * nodemask) alloc_pages_preferred_many() argument 2448 nodemask_t *nodemask; alloc_pages_mpol() local 2778 nodemask_t *nodemask; alloc_pages_bulk_mempolicy_noprof() local [all...] |
| H A D | page_alloc.c | 36 #include <linux/nodemask.h> 3495 ac->nodemask) { in unreserve_highatomic_pageblock() 3811 ac->nodemask) { in get_page_from_freelist() 3982 static void warn_alloc_show_mem(gfp_t gfp_mask, nodemask_t *nodemask) in warn_alloc_show_mem() 3998 __show_mem(filter, nodemask, gfp_zone(gfp_mask)); in warn_alloc() 4002 void warn_alloc(gfp_t gfp_mask, nodemask_t *nodemask, const char *fmt, ...) in warn_alloc() 4016 pr_warn("%s: %pV, mode:%#x(%pGg), nodemask=%*pbl", in warn_alloc() 4018 nodemask_pr_args(nodemask)); in warn_alloc() 4024 warn_alloc_show_mem(gfp_mask, nodemask); in __alloc_pages_cpuset_fallback() 4052 .nodemask in __alloc_pages_may_oom() 3977 warn_alloc_show_mem(gfp_t gfp_mask,nodemask_t * nodemask) warn_alloc_show_mem() argument 3997 warn_alloc(gfp_t gfp_mask,nodemask_t * nodemask,const char * fmt,...) warn_alloc() argument 4969 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 5038 alloc_pages_bulk_noprof(gfp_t gfp,int preferred_nid,nodemask_t * nodemask,int nr_pages,struct page ** page_array) alloc_pages_bulk_noprof() argument 5186 __alloc_frozen_pages_noprof(gfp_t gfp,unsigned int order,int preferred_nid,nodemask_t * nodemask) __alloc_frozen_pages_noprof() argument 5251 __alloc_pages_noprof(gfp_t gfp,unsigned int order,int preferred_nid,nodemask_t * nodemask) __alloc_pages_noprof() argument 5263 __folio_alloc_noprof(gfp_t gfp,unsigned int order,int preferred_nid,nodemask_t * nodemask) __folio_alloc_noprof() argument 7182 alloc_contig_frozen_pages_noprof(unsigned long nr_pages,gfp_t gfp_mask,int nid,nodemask_t * nodemask) alloc_contig_frozen_pages_noprof() argument 7254 alloc_contig_pages_noprof(unsigned long nr_pages,gfp_t gfp_mask,int nid,nodemask_t * nodemask) alloc_contig_pages_noprof() argument [all...] |
| H A D | hugetlb_cma.c | 28 int nid, nodemask_t *nodemask) in hugetlb_cma_alloc_frozen_folio() argument 41 for_each_node_mask(node, *nodemask) { in hugetlb_cma_alloc_frozen_folio()
|
| H A D | hugetlb.c | 12 #include <linux/nodemask.h> 1327 nodemask_t *nodemask; in dequeue_hugetlb_folio_vma() local 1338 nid = huge_node(vma, address, gfp_mask, &mpol, &nodemask); in dequeue_hugetlb_folio_vma() 1342 nid, nodemask); in dequeue_hugetlb_folio_vma() 1345 nodemask = NULL; in dequeue_hugetlb_folio_vma() 1350 nid, nodemask); in dequeue_hugetlb_folio_vma() 1361 int nid, nodemask_t *nodemask) in alloc_gigantic_frozen_folio() argument 1365 folio = hugetlb_cma_alloc_frozen_folio(order, gfp_mask, nid, nodemask); in alloc_gigantic_frozen_folio() 1373 nid, nodemask); in alloc_gigantic_frozen_folio() 1378 nodemask_t *nodemask) in alloc_gigantic_frozen_folio() argument 2162 nodemask_t *nodemask; alloc_buddy_hugetlb_folio_with_mpol() local 6139 nodemask_t *nodemask; alloc_hugetlb_folio_vma() local [all...] |
| H A D | numa_memblks.c | 23 static void __init numa_nodemask_from_meminfo(nodemask_t *nodemask, in numa_nodemask_from_meminfo() argument 31 node_set(mi->blk[i].nid, *nodemask); in numa_nodemask_from_meminfo()
|
| H A D | memcontrol.c | 1890 .nodemask = NULL, in mem_cgroup_out_of_memory()
|
| /linux/tools/testing/selftests/kvm/include/ |
| H A D | numaif.h | 30 const unsigned long *, nodemask, unsigned long, maxnode,
|
| /linux/Documentation/translations/zh_CN/core-api/ |
| H A D | printk-formats.rst | 532 位图及其衍生物,如cpumask和nodemask 540 对于打印位图(bitmap)及其派生的cpumask和nodemask,%*pb输出以字段宽度为位数的位图, 544 nodemask_pr_args()来方便打印cpumask和nodemask。
|
| /linux/tools/workqueue/ |
| H A D | wq_dump.py | 53 from drgn.helpers.linux.nodemask import for_each_node
|
| /linux/Documentation/core-api/ |
| H A D | printk-formats.rst | 590 bitmap and its derivatives such as cpumask and nodemask 598 For printing bitmap and its derivatives such as cpumask and nodemask, 604 printing cpumask and nodemask.
|
| /linux/kernel/irq/ |
| H A D | manage.c | 623 const struct cpumask *nodemask = cpumask_of_node(node); in irq_setup_affinity() local 625 /* make sure at least one of the cpus in nodemask is online */ in irq_setup_affinity() 626 if (cpumask_intersects(&mask, nodemask)) in irq_setup_affinity() 627 cpumask_and(&mask, &mask, nodemask); in irq_setup_affinity()
|
| /linux/drivers/tty/ |
| H A D | sysrq.c | 390 .nodemask = NULL, in moom_callback()
|
| /linux/kernel/cgroup/ |
| H A D | cpuset.c | 2679 * When configured nodemask is changed, the effective nodemasks of this cpuset 2704 /* Skip the whole subtree if the nodemask remains the same. */ in update_nodemasks_hier() 4155 * cpuset_nodemask_valid_mems_allowed - check nodemask vs. current mems_allowed 4156 * @nodemask: the nodemask to be checked 4158 * Are any of the nodes in the nodemask allowed in current->mems_allowed? in cpuset_nodemask_valid_mems_allowed() 4160 int cpuset_nodemask_valid_mems_allowed(nodemask_t *nodemask) in cpuset_nodemask_valid_mems_allowed() 4162 return nodes_intersects(*nodemask, current->mems_allowed); 4157 cpuset_nodemask_valid_mems_allowed(nodemask_t * nodemask) cpuset_nodemask_valid_mems_allowed() argument
|
| /linux/kernel/sched/ |
| H A D | core.c | 3548 const struct cpumask *nodemask = NULL; in select_fallback_rq() 3558 nodemask = cpumask_of_node(nid); in select_fallback_rq() 3561 for_each_cpu(dest_cpu, nodemask) { in select_fallback_rq() 3508 const struct cpumask *nodemask = NULL; select_fallback_rq() local
|
| /linux/ |
| H A D | MAINTAINERS | 4608 F: include/linux/nodemask.h
|