Lines Matching defs:memory
51 char **memory;
59 memory = SAFE_MALLOC(nodes->cnt * sizeof(char *));
61 memory[i] = SAFE_MMAP(NULL, length, PROT_READ|PROT_WRITE,
64 if (madvise(memory[i], length, MADV_MERGEABLE) == -1)
71 ret = mbind(memory[i], length, MPOL_BIND, bm->maskp, bm->size+1, 0);
78 memset(memory[i], 10, length);
80 if (mlock(memory[i], length))
115 SAFE_MUNMAP(memory[i], length);
117 free(memory);
129 tst_brk(TCONF, "Test requires at least two NUMA memory nodes");
135 {"n:", &n_opt, "Allocate x pages memory per node"},