Lines Matching refs:base
34 void* base; in cov_shm_alloc() local
38 base = memalign(PAGE_SIZE, shm_len); in cov_shm_alloc()
39 if (!base) { in cov_shm_alloc()
44 rc = memref_create(base, shm_len, MMAP_FLAG_PROT_RW); in cov_shm_alloc()
52 shm->base = base; in cov_shm_alloc()
64 free(shm->base); in cov_shm_free()
67 shm->base = NULL; in cov_shm_free()
72 void* base = mmap(0, len, MMAP_FLAG_PROT_RW, 0, memref, 0); in cov_shm_mmap() local
73 if (base == MAP_FAILED) { in cov_shm_mmap()
79 shm->base = base; in cov_shm_mmap()
87 munmap(shm->base, shm->len); in cov_shm_munmap()
90 shm->base = NULL; in cov_shm_munmap()
98 WRITE_ONCE(*((uint8_t*)(shm->base) + i), 0); in cov_shm_clear()