Home
last modified time | relevance | path

Searched refs:pfn (Results 1 – 2 of 2) sorted by relevance

/system/core/libmeminfo/
Dpageacct.cpp31 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)) < 0) { in PageFlags()
85 PLOG(ERROR) << "Failed to read page flags for page " << pfn; in PageFlags()
91 bool PageAcct::PageMapCount(uint64_t pfn, uint64_t* mapcount) { in PageMapCount() argument
98 if (pread64(kpagecount_fd_, mapcount, sizeof(uint64_t), pfn * sizeof(uint64_t)) < 0) { in PageMapCount()
99 PLOG(ERROR) << "Failed to read map count for page " << pfn; in PageMapCount()
105 int PageAcct::IsPageIdle(uint64_t pfn) { in IsPageIdle() argument
110 int idle_status = MarkPageIdle(pfn); in IsPageIdle()
[all …]
/system/core/libmeminfo/include/meminfo/
Dpageacct.h39 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;