Searched refs:locked_mem (Results 1 – 1 of 1) sorted by relevance
1080 static char *locked_mem; variable1093 if (locked_mem) { in igt_lock_mem()1100 locked_mem = malloc(locked_size); in igt_lock_mem()1101 igt_require_f(locked_mem, in igt_lock_mem()1106 locked_mem[i] = i; in igt_lock_mem()1108 ret = mlock(locked_mem, locked_size); in igt_lock_mem()1119 if (!locked_mem) in igt_unlock_mem()1122 munlock(locked_mem, locked_size); in igt_unlock_mem()1124 free(locked_mem); in igt_unlock_mem()1125 locked_mem = NULL; in igt_unlock_mem()