Searched refs:mmap_base (Results 1 – 1 of 1) sorted by relevance
223 void *mmap_base; member247 this->mmap_base = mmap(NULL, APB_SIZE, PROT_READ, MAP_SHARED, this->fd, APB_BASE_MEMORY); in emeter_init()248 if (this->mmap_base == MAP_FAILED) in emeter_init()266 uint32_t *buffer = (uint32_t *)this->mmap_base; in emeter_read_measurements()317 if (munmap(this->mmap_base, APB_SIZE) == -1) in emeter_finalize()