Searched refs:pfn (Results 1 – 2 of 2) sorted by relevance
/system/memory/libmeminfo/ |
D | pageacct.cpp | 31 static inline off64_t pfn_to_idle_bitmap_offset(uint64_t pfn) { in pfn_to_idle_bitmap_offset() argument 32 return static_cast<off64_t>((pfn >> 6) << 3); in pfn_to_idle_bitmap_offset() 77 bool PageAcct::PageFlags(uint64_t pfn, uint64_t* flags) { in PageFlags() argument 84 if (pread64(kpageflags_fd_, flags, sizeof(uint64_t), pfn * sizeof(uint64_t)) != in PageFlags() 86 PLOG(ERROR) << "Failed to read page flags for page " << pfn; in PageFlags() 92 bool PageAcct::PageMapCount(uint64_t pfn, uint64_t* mapcount) { in PageMapCount() argument 99 if (pread64(kpagecount_fd_, mapcount, sizeof(uint64_t), pfn * sizeof(uint64_t)) != in PageMapCount() 101 PLOG(ERROR) << "Failed to read map count for page " << pfn; in PageMapCount() 107 int PageAcct::IsPageIdle(uint64_t pfn) { in IsPageIdle() argument 112 int idle_status = MarkPageIdle(pfn); in IsPageIdle() [all …]
|
/system/memory/libmeminfo/include/meminfo/ |
D | pageacct.h | 39 bool PageFlags(uint64_t pfn, uint64_t* flags); 40 bool PageMapCount(uint64_t pfn, uint64_t* mapcount); 42 int IsPageIdle(uint64_t pfn); 54 int MarkPageIdle(uint64_t pfn) const; 55 int GetPageIdle(uint64_t pfn) const;
|