/linux/tools/testing/selftests/kvm/x86_64/ |
A D | xapic_ipi_test.c | 262 unsigned long nodemask = 0; in do_migrations() local 263 unsigned long nodemasks[sizeof(nodemask) * 8]; in do_migrations() 278 r = get_mempolicy(NULL, &nodemask, sizeof(nodemask) * 8, in do_migrations() 284 sizeof(nodemask) * 8, nodemask); in do_migrations() 290 for (i = 0, bit = 1; i < sizeof(nodemask) * 8; i++, bit <<= 1) { in do_migrations() 291 if (nodemask & bit) { in do_migrations() 292 nodemasks[nodes] = nodemask & bit; in do_migrations()
|
/linux/include/linux/ |
A D | cpuset.h | 81 int cpuset_nodemask_valid_mems_allowed(nodemask_t *nodemask); 168 static inline void set_mems_allowed(nodemask_t nodemask) in set_mems_allowed() argument 175 current->mems_allowed = nodemask; in set_mems_allowed() 221 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
|
A D | nodemask.h | 152 #define node_isset(node, nodemask) test_bit((node), (nodemask).bits) argument 154 #define node_test_and_set(node, nodemask) \ argument 155 __node_test_and_set((node), &(nodemask)) 231 #define nodes_full(nodemask) __nodes_full(&(nodemask), MAX_NUMNODES) argument 237 #define nodes_weight(nodemask) __nodes_weight(&(nodemask), MAX_NUMNODES) argument
|
A D | mempolicy.h | 147 struct mempolicy **mpol, nodemask_t **nodemask); 257 struct mempolicy **mpol, nodemask_t **nodemask) in huge_node() argument 260 *nodemask = NULL; in huge_node()
|
A D | gfp.h | 525 nodemask_t *nodemask); 527 nodemask_t *nodemask); 530 nodemask_t *nodemask, int nr_pages, 693 int nid, nodemask_t *nodemask);
|
A D | mmzone.h | 1214 #define for_each_zone_zonelist_nodemask(zone, z, zlist, highidx, nodemask) \ argument 1215 for (z = first_zones_zonelist(zlist, highidx, nodemask), zone = zonelist_zone(z); \ 1217 z = next_zones_zonelist(++z, highidx, nodemask), \ 1220 #define for_next_zone_zonelist_nodemask(zone, z, highidx, nodemask) \ argument 1223 z = next_zones_zonelist(++z, highidx, nodemask), \
|
A D | oom.h | 34 nodemask_t *nodemask; member
|
/linux/Documentation/translations/zh_CN/core-api/ |
A D | memory-hotplug.rst | 73 - status_change_nid_normal是当nodemask的N_NORMAL_MEMORY被设置/清除时设置节 74 点id,如果是-1,则nodemask状态不改变。 76 - status_change_nid是当nodemask的N_MEMORY被(将)设置/清除时设置的节点id。这 78 存。如果这个值为-1,那么nodemask的状态就不会改变。
|
A D | printk-formats.rst | 532 位图及其衍生物,如cpumask和nodemask 540 对于打印位图(bitmap)及其派生的cpumask和nodemask,%*pb输出以字段宽度为位数的位图, 544 nodemask_pr_args()来方便打印cpumask和nodemask。
|
/linux/Documentation/admin-guide/mm/ |
A D | numa_memory_policy.rst | 217 is always preferred by passing an empty nodemask with this 218 mode. If an empty nodemask is passed, the policy cannot use 251 a memory pressure on all nodes in the nodemask, the allocation 258 This flag specifies that the nodemask passed by 277 3 is allowed from the user's nodemask, the "interleave" only 287 This flag specifies that the nodemask passed 295 nodes, the node (Preferred) or nodemask (Bind, Interleave) is 298 set of allowed nodes upon successive rebinds: a nodemask of 303 the user's passed nodemask are relative to the set of allowed 314 if not already set, sets the node in the mempolicy nodemask. [all …]
|
/linux/lib/ |
A D | show_mem.c | 11 void show_mem(unsigned int filter, nodemask_t *nodemask) in show_mem() argument 17 show_free_areas(filter, nodemask); in show_mem()
|
A D | .nodemask.o.cmd | 1 …nodemask.o := /usr/bin/ccache /home/test/workspace/code/optee_3.16/build/../toolchains/aarch64/bin… 3 source_lib/nodemask.o := lib/nodemask.c 5 deps_lib/nodemask.o := \ 23 include/linux/nodemask.h \ 878 lib/nodemask.o: $(deps_lib/nodemask.o) 880 $(deps_lib/nodemask.o):
|
A D | .lib.a.cmd | 1 …kobject_uevent.o lib/logic_pio.o lib/memcat_p.o lib/nmi_backtrace.o lib/nodemask.o lib/plist.o lib…
|
A D | lib.a | 41 nodemask.o/
|
/linux/mm/ |
A D | oom_kill.c | 94 const nodemask_t *mask = oc->nodemask; in oom_cpuset_eligible() 288 if (oc->nodemask && in constrained_alloc() 289 !nodes_subset(node_states[N_MEMORY], *oc->nodemask)) { in constrained_alloc() 291 for_each_node_mask(nid, *oc->nodemask) in constrained_alloc() 298 highest_zoneidx, oc->nodemask) in constrained_alloc() 448 nodemask_pr_args(oc->nodemask)); in dump_oom_summary() 467 show_mem(SHOW_MEM_FILTER_NODES, oc->nodemask); in dump_header() 1092 oc->nodemask = NULL; in out_of_memory()
|
A D | page_alloc.c | 2814 ac->nodemask) { in unreserve_highatomic_pageblock() 4049 ac->nodemask) { in get_page_from_freelist() 4250 .nodemask = ac->nodemask, in __alloc_pages_may_oom() 4589 ac->nodemask); in __perform_reclaim() 4640 ac->nodemask) { in wake_all_kswapds() 4829 ac->nodemask = NULL; in check_retry_cpuset() 4988 ac->nodemask = NULL; in __alloc_pages_slowpath() 5126 ac->nodemask = nodemask; in prepare_alloc_pages() 5380 ac.nodemask = nodemask; in __alloc_pages() 5398 nodemask_t *nodemask) in __folio_alloc() argument [all …]
|
A D | hugetlb.c | 1192 nodemask_t *nodemask; in dequeue_huge_page_vma() local 1209 nid = huge_node(vma, address, gfp_mask, &mpol, &nodemask); in dequeue_huge_page_vma() 1215 nodemask = NULL; in dequeue_huge_page_vma() 1356 int nid, nodemask_t *nodemask) in alloc_gigantic_page() argument 1375 for_each_node_mask(node, *nodemask) { in alloc_gigantic_page() 1393 int nid, nodemask_t *nodemask) in alloc_gigantic_page() argument 1401 int nid, nodemask_t *nodemask) in alloc_gigantic_page() argument 2257 nodemask_t *nodemask; in alloc_buddy_huge_page_with_mpol() local 2259 nid = huge_node(vma, addr, gfp_mask, &mpol, &nodemask); in alloc_buddy_huge_page_with_mpol() 2267 nodemask = NULL; in alloc_buddy_huge_page_with_mpol() [all …]
|
A D | mempolicy.c | 1873 nodemask_t nodemask = pol->nodes; in offset_il_node() local 1886 nnodes = nodes_weight(nodemask); in offset_il_node() 1890 nid = first_node(nodemask); in offset_il_node() 1892 nid = next_node(nid, nodemask); in offset_il_node() 1935 struct mempolicy **mpol, nodemask_t **nodemask) in huge_node() argument 1941 *nodemask = NULL; in huge_node() 1950 *nodemask = &(*mpol)->nodes; in huge_node()
|
A D | vmscan.c | 73 nodemask_t *nodemask; member 3473 sc->reclaim_idx, sc->nodemask) { in shrink_zones() 3606 sc->nodemask) { in do_try_to_free_pages() 3709 nodemask_t *nodemask) in throttle_direct_reclaim() argument 3747 gfp_zone(gfp_mask), nodemask) { in throttle_direct_reclaim() 3789 gfp_t gfp_mask, nodemask_t *nodemask) in try_to_free_pages() argument 3797 .nodemask = nodemask, in try_to_free_pages() 3817 if (throttle_direct_reclaim(sc.gfp_mask, zonelist, nodemask)) in try_to_free_pages()
|
A D | internal.h | 184 nodemask_t *nodemask; member
|
/linux/Documentation/core-api/ |
A D | memory-hotplug.rst | 65 - 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.
|
A D | printk-formats.rst | 562 bitmap and its derivatives such as cpumask and nodemask 570 For printing bitmap and its derivatives such as cpumask and nodemask, 576 printing cpumask and nodemask.
|
/linux/kernel/ |
A D | smp.c | 830 const struct cpumask *nodemask; in smp_call_function_any() local 839 nodemask = cpumask_of_node(cpu_to_node(cpu)); in smp_call_function_any() 840 for (cpu = cpumask_first_and(nodemask, mask); cpu < nr_cpu_ids; in smp_call_function_any() 841 cpu = cpumask_next_and(cpu, nodemask, mask)) { in smp_call_function_any()
|
/linux/arch/x86/mm/ |
A D | numa.c | 335 static void __init numa_nodemask_from_meminfo(nodemask_t *nodemask, in numa_nodemask_from_meminfo() argument 343 node_set(mi->blk[i].nid, *nodemask); in numa_nodemask_from_meminfo()
|
/linux/kernel/irq/ |
A D | manage.c | 612 const struct cpumask *nodemask = cpumask_of_node(node); in irq_setup_affinity() local 615 if (cpumask_intersects(&mask, nodemask)) in irq_setup_affinity() 616 cpumask_and(&mask, &mask, nodemask); in irq_setup_affinity()
|