Searched refs:shm_fd (Results 1 – 1 of 1) sorted by relevance
34 ScopedMMap AllocateShm(size_t size, const std::string& name, SharedFD* shm_fd) { in AllocateShm() argument35 *shm_fd = SharedFD::MemfdCreate(name, 0); in AllocateShm()36 if (!(*shm_fd)->IsOpen()) { in AllocateShm()38 << (*shm_fd)->StrError(); in AllocateShm()42 auto truncate_ret = (*shm_fd)->Truncate(size); in AllocateShm()45 << " bytes: " << (*shm_fd)->StrError(); in AllocateShm()49 auto mmap_res = (*shm_fd)->MMap(NULL /* addr */, size, PROT_READ | PROT_WRITE, in AllocateShm()53 << (*shm_fd)->StrError(); in AllocateShm()