/third_party/ltp/testcases/kernel/syscalls/get_mempolicy/ |
H A D | get_mempolicy01.c | 114 TEST(set_mempolicy(tc->policy, nodemask->maskp, nodemask->size)); in test_set_mempolicy_default() 124 static int test_mbind(struct test_case *tc, unsigned long *maskp, unsigned long size) in test_mbind() argument 129 TEST(mbind(tc->addr, MEM_LENGTH, tc->policy, maskp, size, 0)); in test_mbind() 140 return test_mbind(tc, nodemask->maskp, nodemask->size); in test_mbind_default() 190 TST_EXP_PASS(get_mempolicy(&policy, getnodemask->maskp, getnodemask->size, in do_test() 197 tst_res_hexd(TINFO, exp_mask->maskp, in do_test() 199 tst_res_hexd(TINFO, getnodemask->maskp, in do_test()
|
H A D | get_mempolicy02.c | 78 TST_EXP_FAIL(get_mempolicy(&policy, nodemask->maskp, nodemask->size, in do_test()
|
/third_party/ltp/testcases/kernel/controllers/cpuset/cpuset_lib/ |
H A D | libbitmask.c | 35 unsigned long *maskp; member 49 * routines that actually understand the layout of bmp->maskp[]. 62 return (bmp->maskp[n / bitsperlong] >> (n % bitsperlong)) & 1; in _getbit() 72 bmp->maskp[n / bitsperlong] |= 1UL << (n % bitsperlong); in _setbit() 74 bmp->maskp[n / bitsperlong] &= in _setbit() 92 bmp->maskp = calloc(longsperbits(n), sizeof(unsigned long)); in bitmask_alloc() 93 if (bmp->maskp == 0) { in bitmask_alloc() 105 free(bmp->maskp); in bitmask_free() 106 bmp->maskp = (unsigned long *)0xdeadcdef; /* double free tripwire */ in bitmask_free() 391 return bmp->maskp; in bitmask_mask() [all...] |
/third_party/ltp/testcases/kernel/syscalls/mbind/ |
H A D | mbind01.c | 152 TEST(mbind(p, MEM_LENGTH, tc->policy, nodemask->maskp, in test_default() 213 TEST(get_mempolicy(&policy, getnodemask->maskp, in do_test() 233 tst_res_hexd(TINFO, exp_mask->maskp, in do_test() 235 tst_res_hexd(TINFO, getnodemask->maskp, in do_test()
|
H A D | mbind02.c | 68 TEST(mbind(ptr, size, mode, bm->maskp, bm->size + 1, MPOL_MF_STRICT)); in verify_policy()
|
H A D | mbind04.c | 56 TEST(mbind(ptr, size, mode, bm->maskp, bm->size + 1, flag)); in verify_policy()
|
H A D | mbind03.c | 65 TEST(mbind(ptr, size, mode, bm->maskp, bm->size + 1, flag)); in verify_policy()
|
/third_party/ltp/testcases/kernel/mem/vma/ |
H A D | vma04.c | 151 MPOL_BIND, nmask->maskp, nmask->size, 0) != 0) { in mem_bind() 164 MPOL_INTERLEAVE, nmask->maskp, nmask->size, 0) != 0) { in mem_interleave()
|
H A D | vma02.c | 98 err = mbind(addr + pagesize, pagesize, MPOL_BIND, nmask->maskp, in main()
|
/third_party/ltp/testcases/kernel/syscalls/set_mempolicy/ |
H A D | set_mempolicy01.c | 61 TEST(set_mempolicy(mode, bm->maskp, bm->size+1)); in verify_mempolicy()
|
H A D | set_mempolicy02.c | 87 TEST(set_mempolicy(MPOL_INTERLEAVE, bm->maskp, bm->size+1)); in verify_set_mempolicy()
|
H A D | set_mempolicy03.c | 51 TEST(set_mempolicy(mode, bm->maskp, bm->size+1)); in verify_mempolicy()
|
H A D | set_mempolicy04.c | 113 TEST(set_mempolicy(MPOL_INTERLEAVE, bm->maskp, bm->size+1)); in verify_set_mempolicy()
|
/third_party/ltp/testcases/kernel/mem/ksm/ |
H A D | ksm06.c | 71 ret = mbind(memory[i], length, MPOL_BIND, bm->maskp, bm->size+1, 0); in test_ksm()
|
/third_party/ltp/testcases/kernel/syscalls/move_pages/ |
H A D | move_pages12.c | 234 ret = mbind(mem, size, MPOL_BIND, bm->maskp, bm->size + 1, 0); in alloc_free_huge_on_node()
|
/third_party/rust/crates/libc/src/unix/bsd/freebsdlike/freebsd/ |
H A D | mod.rs | 4550 maskp: *mut ::c_ushort, in procstat_getumask()
|
/third_party/rust/crates/bindgen/bindgen-tests/tests/ |
H A D | stylo.hpp | [all...] |