Home
last modified time | relevance | path

Searched refs:maxnode (Results 1 – 5 of 5) sorted by relevance

/linux/tools/testing/selftests/kvm/
H A Dguest_memfd_test.c83 unsigned long maxnode = 8; in test_mbind() local
94 kvm_mbind(mem, page_size * 2, MPOL_INTERLEAVE, &nodemask_0, maxnode, 0); in test_mbind()
95 kvm_get_mempolicy(&policy, &nodemask, maxnode, mem, MPOL_F_ADDR); in test_mbind()
101 kvm_mbind(mem + page_size * 2, page_size * 2, MPOL_BIND, &nodemask_0, maxnode, 0); in test_mbind()
102 kvm_get_mempolicy(&policy, &nodemask, maxnode, mem + page_size * 2, MPOL_F_ADDR); in test_mbind()
109 kvm_get_mempolicy(&policy, &nodemask, maxnode, mem, MPOL_F_ADDR); in test_mbind()
115 ret = mbind(mem, page_size, 999, &nodemask_0, maxnode, 0); in test_mbind()
126 unsigned long maxnode = 8; in test_numa_allocation() local
142 kvm_mbind(pages[0], page_size, MPOL_BIND, &node0_mask, maxnode, 0); in test_numa_allocation()
146 kvm_mbind(pages[0], page_size * 2, MPOL_BIND, &node1_mask, maxnode, 0); in test_numa_allocation()
[all …]
/linux/tools/testing/selftests/kvm/include/
H A Dnumaif.h14 unsigned long, maxnode, void *, addr, int, flags);
17 unsigned long, maxnode);
23 KVM_SYSCALL_DEFINE(migrate_pages, 4, int, pid, unsigned long, maxnode,
30 const unsigned long *, nodemask, unsigned long, maxnode,
/linux/mm/
H A Dmempolicy.c1630 unsigned long maxnode) in get_bitmap() argument
1632 unsigned long nlongs = BITS_TO_LONGS(maxnode); in get_bitmap()
1638 maxnode); in get_bitmap()
1646 if (maxnode % BITS_PER_LONG) in get_bitmap()
1647 mask[nlongs - 1] &= (1UL << (maxnode % BITS_PER_LONG)) - 1; in get_bitmap()
1654 unsigned long maxnode) in get_nodes() argument
1656 --maxnode; in get_nodes()
1658 if (maxnode == 0 || !nmask) in get_nodes()
1660 if (maxnode > PAGE_SIZE*BITS_PER_BYTE) in get_nodes()
1668 while (maxnode > MAX_NUMNODES) { in get_nodes()
[all …]
/linux/Documentation/admin-guide/mm/
H A Dnuma_memory_policy.rst432 unsigned long maxnode);
437 'maxnode' ids. Optional mode flags may be passed by combining the
447 const unsigned long *nmask, unsigned long maxnode,
460 const unsigned long *nmask, unsigned long maxnode,
/linux/include/linux/
H A Dsyscalls.h852 unsigned long maxnode,
856 unsigned long maxnode,
859 unsigned long maxnode);
860 asmlinkage long sys_migrate_pages(pid_t pid, unsigned long maxnode,