Lines Matching refs:pinned_mem
17 if (td->pinned_mem) {
19 if (munlock(td->pinned_mem, td->o.lockmem) < 0)
21 munmap(td->pinned_mem, td->o.lockmem);
22 td->pinned_mem = NULL;
47 td->pinned_mem = mmap(NULL, td->o.lockmem, PROT_READ | PROT_WRITE,
49 if (td->pinned_mem == MAP_FAILED) {
51 td->pinned_mem = NULL;
54 if (mlock(td->pinned_mem, td->o.lockmem) < 0) {
56 munmap(td->pinned_mem, td->o.lockmem);
57 td->pinned_mem = NULL;