Lines Matching refs:maxnode
1356 unsigned long maxnode) in get_bitmap() argument
1358 unsigned long nlongs = BITS_TO_LONGS(maxnode); in get_bitmap()
1364 maxnode); in get_bitmap()
1372 if (maxnode % BITS_PER_LONG) in get_bitmap()
1373 mask[nlongs - 1] &= (1UL << (maxnode % BITS_PER_LONG)) - 1; in get_bitmap()
1380 unsigned long maxnode) in get_nodes() argument
1382 --maxnode; in get_nodes()
1384 if (maxnode == 0 || !nmask) in get_nodes()
1386 if (maxnode > PAGE_SIZE*BITS_PER_BYTE) in get_nodes()
1394 while (maxnode > MAX_NUMNODES) { in get_nodes()
1395 unsigned long bits = min_t(unsigned long, maxnode, BITS_PER_LONG); in get_nodes()
1398 if (get_bitmap(&t, &nmask[maxnode / BITS_PER_LONG], bits)) in get_nodes()
1401 if (maxnode - bits >= MAX_NUMNODES) { in get_nodes()
1402 maxnode -= bits; in get_nodes()
1404 maxnode = MAX_NUMNODES; in get_nodes()
1411 return get_bitmap(nodes_addr(*nodes), nmask, maxnode); in get_nodes()
1415 static int copy_nodes_to_user(unsigned long __user *mask, unsigned long maxnode, in copy_nodes_to_user() argument
1418 unsigned long copy = ALIGN(maxnode-1, 64) / 8; in copy_nodes_to_user()
1431 maxnode = nr_node_ids; in copy_nodes_to_user()
1436 nodes_addr(*nodes), maxnode); in copy_nodes_to_user()
1461 unsigned long maxnode, unsigned int flags) in kernel_mbind() argument
1473 err = get_nodes(&nodes, nmask, maxnode); in kernel_mbind()
1482 unsigned long, maxnode, unsigned int, flags) in SYSCALL_DEFINE6() argument
1484 return kernel_mbind(start, len, mode, nmask, maxnode, flags); in SYSCALL_DEFINE6()
1489 unsigned long maxnode) in kernel_set_mempolicy() argument
1500 err = get_nodes(&nodes, nmask, maxnode); in kernel_set_mempolicy()
1508 unsigned long, maxnode) in SYSCALL_DEFINE3() argument
1510 return kernel_set_mempolicy(mode, nmask, maxnode); in SYSCALL_DEFINE3()
1513 static int kernel_migrate_pages(pid_t pid, unsigned long maxnode, in kernel_migrate_pages() argument
1531 err = get_nodes(old, old_nodes, maxnode); in kernel_migrate_pages()
1535 err = get_nodes(new, new_nodes, maxnode); in kernel_migrate_pages()
1601 SYSCALL_DEFINE4(migrate_pages, pid_t, pid, unsigned long, maxnode, in SYSCALL_DEFINE4() argument
1605 return kernel_migrate_pages(pid, maxnode, old_nodes, new_nodes); in SYSCALL_DEFINE4()
1612 unsigned long maxnode, in kernel_get_mempolicy() argument
1620 if (nmask != NULL && maxnode < nr_node_ids) in kernel_get_mempolicy()
1634 err = copy_nodes_to_user(nmask, maxnode, &nodes); in kernel_get_mempolicy()
1640 unsigned long __user *, nmask, unsigned long, maxnode, in SYSCALL_DEFINE5() argument
1643 return kernel_get_mempolicy(policy, nmask, maxnode, addr, flags); in SYSCALL_DEFINE5()