Home
last modified time | relevance | path

Searched refs:mmap_ptr (Results 1 – 3 of 3) sorted by relevance

/external/linux-kselftest/tools/testing/selftests/bpf/prog_tests/
Dringbuf.c91 void *mmap_ptr, *tmp_ptr; in test_ringbuf() local
105 mmap_ptr = mmap(NULL, page_size, PROT_READ | PROT_WRITE, MAP_SHARED, rb_fd, 0); in test_ringbuf()
106 ASSERT_OK_PTR(mmap_ptr, "rw_cons_pos"); in test_ringbuf()
107 tmp_ptr = mremap(mmap_ptr, page_size, 2 * page_size, MREMAP_MAYMOVE); in test_ringbuf()
110 ASSERT_ERR(mprotect(mmap_ptr, page_size, PROT_EXEC), "exec_cons_pos_protect"); in test_ringbuf()
111 ASSERT_OK(munmap(mmap_ptr, page_size), "unmap_rw"); in test_ringbuf()
114 mmap_ptr = mmap(NULL, page_size, PROT_WRITE, MAP_SHARED, rb_fd, page_size); in test_ringbuf()
116 ASSERT_ERR_PTR(mmap_ptr, "wr_prod_pos"); in test_ringbuf()
120 mmap_ptr = mmap(NULL, page_size, PROT_WRITE, MAP_SHARED, rb_fd, 2 * page_size); in test_ringbuf()
122 ASSERT_ERR_PTR(mmap_ptr, "wr_data_page_one"); in test_ringbuf()
[all …]
/external/vboot_reference/futility/
Dmisc.c237 void *mmap_ptr; in futil_map_file() local
259 mmap_ptr = mmap(0, sb.st_size, in futil_map_file()
262 mmap_ptr = mmap(0, sb.st_size, in futil_map_file()
265 if (mmap_ptr == (void *)-1) { in futil_map_file()
272 *buf = (uint8_t *)mmap_ptr; in futil_map_file()
280 void *mmap_ptr = buf; in futil_unmap_file() local
284 (0 != msync(mmap_ptr, len, MS_SYNC|MS_INVALIDATE))) { in futil_unmap_file()
289 if (0 != munmap(mmap_ptr, len)) { in futil_unmap_file()
/external/virglrenderer/src/venus/
Dvkr_context.c483 void *mmap_ptr = NULL; in vkr_context_attach_resource_locked() local
485 mmap_ptr = in vkr_context_attach_resource_locked()
487 if (mmap_ptr == MAP_FAILED) { in vkr_context_attach_resource_locked()
495 if (mmap_ptr) { in vkr_context_attach_resource_locked()
496 att->shm_iov.iov_base = mmap_ptr; in vkr_context_attach_resource_locked()