Lines Matching refs:Deps
57 PmemUserspaceAllocator::PmemUserspaceAllocator(Deps& deps, Deps::Allocator& allocator, const char* pmemdev):
58 deps(deps),
87 int fd = deps.open(pmemdev, O_RDWR, 0);
90 err = deps.getPmemTotalSize(fd, &size);
98 void* base = deps.mmap(0, size, PROT_READ|PROT_WRITE, MAP_SHARED, fd,
102 strerror(deps.getErrno()));
103 err = -deps.getErrno();
105 deps.close(fd);
113 strerror(deps.getErrno()));
114 err = -deps.getErrno();
163 int fd = deps.open(pmemdev, openFlags, 0);
168 err = deps.connectPmem(fd, master_fd);
172 err = deps.mapPmem(fd, offset, size);
177 err = -deps.getErrno();
178 deps.close(fd);
201 int err = deps.unmapPmem(fd, offset, size);
203 "sub.size=%u", strerror(deps.getErrno()), fd, offset, size);
215 PmemUserspaceAllocator::Deps::Allocator::~Allocator()
221 PmemUserspaceAllocator::Deps::~Deps()
227 PmemKernelAllocator::PmemKernelAllocator(Deps& deps, const char* pmemdev):
228 deps(deps),
272 int fd = deps.open(pmemdev, openFlags, 0);
274 err = -deps.getErrno();
282 void* base = deps.mmap(0, size, PROT_READ|PROT_WRITE, MAP_SHARED, fd, 0);
285 strerror(deps.getErrno()));
286 err = -deps.getErrno();
287 deps.close(fd);
310 int err = deps.munmap(base, size);
312 err = deps.getErrno();
320 PmemKernelAllocator::Deps::~Deps()