Lines Matching refs:slots
32 static int futex_hash_slots_set(unsigned int slots) in futex_hash_slots_set() argument
34 return prctl(PR_FUTEX_HASH, PR_FUTEX_HASH_SET_SLOTS, slots, 0); in futex_hash_slots_set()
42 static void futex_hash_slots_set_verify(int slots) in futex_hash_slots_set_verify() argument
46 ret = futex_hash_slots_set(slots); in futex_hash_slots_set_verify()
48 ksft_test_result_fail("Failed to set slots to %d: %m\n", slots); in futex_hash_slots_set_verify()
52 if (ret != slots) { in futex_hash_slots_set_verify()
54 slots, ret); in futex_hash_slots_set_verify()
57 ksft_test_result_pass("SET and GET slots %d passed\n", slots); in futex_hash_slots_set_verify()
60 static void futex_hash_slots_set_must_fail(int slots) in futex_hash_slots_set_must_fail() argument
64 ret = futex_hash_slots_set(slots); in futex_hash_slots_set_must_fail()
66 slots); in futex_hash_slots_set_must_fail()