Searched refs:m_fd (Results 1 – 3 of 3) sorted by relevance
/system/extras/zram-perf/ |
D | zram-perf.cpp | 45 int m_fd = -1; member in BlockFd 48 m_fd = open(path, O_RDWR | (direct ? O_DIRECT : 0)); in BlockFd() 52 int result = ioctl(m_fd, BLKGETSIZE, &blockSize); in getSize() 59 if (m_fd >= 0) { in ~BlockFd() 60 close(m_fd); in ~BlockFd() 68 ssize_t ret = write(m_fd, page.ptr(), page_size); in fillWithCompressible() 84 lseek(m_fd, offset, SEEK_SET); in benchSequentialRead() 85 ssize_t ret = read(m_fd, page.ptr(), page_size); in benchSequentialRead() 106 lseek(m_fd, offset, SEEK_SET); in benchSequentialWrite() 107 ssize_t ret = write(m_fd, page.ptr(), page_size); in benchSequentialWrite()
|
/system/extras/mmap-perf/ |
D | mmapPerf.cpp | 21 int m_fd = -1; member in Fd 23 int get() { return m_fd; } in get() 24 void set(int fd) { m_fd = fd; } in set() 26 Fd(int fd) : m_fd{fd} {} in Fd() 28 if (m_fd >= 0) in ~Fd() 29 close(m_fd); in ~Fd()
|
/system/core/libsync/tests/ |
D | sync_test.cpp | 28 int m_fd = -1; member in __anonb2e362dd0111::SyncTimeline 38 m_fd = fd; in SyncTimeline() 42 close(m_fd); in destroy() 43 m_fd = -1; in destroy() 52 int status = fcntl(m_fd, F_GETFD, 0); in isValid() 63 return m_fd; in getFd() 66 return sw_sync_timeline_inc(m_fd, val); in inc() 79 int m_fd = -1; member in __anonb2e362dd0111::SyncFence 84 m_fd = fd; in setFd() 88 m_fd = -1; in clearFd() [all …]
|