Lines Matching defs:VMCache

11 #include <vm/VMCache.h>
53 VMCache* gDebugCacheList;
55 static mutex sCacheListLock = MUTEX_INITIALIZER("global VMCache list");
68 struct VMCache::PageEventWaiter {
82 VMCacheTraceEntry(VMCache* cache)
101 VMCache* Cache() const
107 VMCache* fCache;
116 Create(VMCache* cache)
132 Delete(VMCache* cache)
148 SetMinimalCommitment(VMCache* cache, off_t commitment)
172 Resize(VMCache* cache, off_t size)
195 Rebase(VMCache* cache, off_t base)
218 AddConsumer(VMCache* cache, VMCache* consumer)
232 VMCache* Consumer() const
238 VMCache* fConsumer;
244 RemoveConsumer(VMCache* cache, VMCache* consumer)
259 VMCache* fConsumer;
265 Merge(VMCache* cache, VMCache* consumer)
280 VMCache* fConsumer;
286 InsertArea(VMCache* cache, VMArea* area)
312 RemoveArea(VMCache* cache, VMArea* area)
340 InsertPage(VMCache* cache, vm_page* page, off_t offset)
363 RemovePage(VMCache* cache, vm_page* page)
546 "List the ancestors (sources) of a VMCache at the time given by "
549 "All ancestors (sources) of a given VMCache at the time given by the\n"
558 VMCache*
570 VMCache* cache = cacheRef->cache;
593 VMCache* cache = cacheRef->cache;
613 // #pragma mark - VMCache
616 VMCacheRef::VMCacheRef(VMCache* cache)
624 // #pragma mark - VMCache
628 VMCache::_IsMergeable() const
635 VMCache::VMCache()
642 VMCache::~VMCache()
649 VMCache::Init(uint32 cacheType, uint32 allocationFlags)
651 mutex_init(&fLock, "VMCache");
691 VMCache::Delete()
744 VMCache::Unlock(bool consumerLocked)
747 VMCache* consumer = consumers.Head();
784 VMCache::LookupPage(off_t offset)
800 VMCache::InsertPage(vm_page* page, off_t offset)
802 TRACE(("VMCache::InsertPage(): cache %p, page %p, offset %" B_PRIdOFF "\n",
820 panic("VMCache::InsertPage(): there's already page %p with cache "
838 VMCache::RemovePage(vm_page* page)
840 TRACE(("VMCache::RemovePage(): cache %p, page %p\n", this, page));
864 VMCache::MovePage(vm_page* page, off_t offset)
866 VMCache* oldCache = page->Cache();
896 VMCache::MovePage(vm_page* page)
906 VMCache::MoveAllPages(VMCache* fromCache)
945 VMCache::WaitForPageEvents(vm_page* page, uint32 events, bool relock)
971 VMCache::AddConsumer(VMCache* consumer)
991 VMCache::InsertAreaLocked(VMArea* area)
993 TRACE(("VMCache::InsertAreaLocked(cache %p, area %p)\n", this, area));
1011 VMCache::RemoveArea(VMArea* area)
1013 TRACE(("VMCache::RemoveArea(cache %p, area %p)\n", this, area));
1023 AutoLocker<VMCache> locker(this);
1040 VMCache::TransferAreas(VMCache* fromCache)
1061 VMCache::CountWritableAreas(VMArea* ignoreArea) const
1077 VMCache::WriteModified()
1079 TRACE(("VMCache::WriteModified(cache = %p)\n", this));
1097 VMCache::SetMinimalCommitment(off_t commitment, int priority)
1099 TRACE(("VMCache::SetMinimalCommitment(cache %p, commitment %" B_PRIdOFF
1122 VMCache::_FreePageRange(VMCachePagesTree::Iterator it,
1171 VMCache::Resize(off_t newSize, int priority)
1173 TRACE(("VMCache::Resize(cache %p, newSize %" B_PRIdOFF ") old size %"
1209 VMCache::Rebase(off_t newBase, int priority)
1211 TRACE(("VMCache::Rebase(cache %p, newBase %lld) old base %lld\n",
1239 VMCache::Adopt(VMCache* source, off_t offset, off_t size, off_t newOffset)
1259 VMCache::Discard(off_t offset, off_t size)
1270 /*! You have to call this function with the VMCache lock held. */
1272 VMCache::FlushAndRemoveAllPages()
1316 VMCache::Commit(off_t size, int priority)
1331 VMCache::HasPage(off_t offset)
1340 VMCache::Read(off_t offset, const generic_io_vec *vecs, size_t count,
1348 VMCache::Write(off_t offset, const generic_io_vec *vecs, size_t count,
1356 VMCache::WriteAsync(off_t offset, const generic_io_vec* vecs, size_t count,
1378 VMCache::CanWritePage(off_t offset)
1385 VMCache::Fault(struct VMAddressSpace *aspace, off_t offset)
1392 VMCache::Merge(VMCache* source)
1409 VMCache::AcquireUnreferencedStoreRef()
1416 VMCache::AcquireStoreRef()
1422 VMCache::ReleaseStoreRef()
1431 VMCache::DebugHasPage(off_t offset)
1442 VMCache::DebugLookupPage(off_t offset)
1449 VMCache::Dump(bool showPages) const
1474 VMCache* consumer = it.Next();) {
1503 VMCache::_NotifyPageEvents(vm_page* page, uint32 events)
1522 VMCache::_MergeWithOnlyConsumer()
1524 VMCache* consumer = consumers.RemoveHead();
1536 VMCache* newSource = source;
1561 VMCache::_RemoveConsumer(VMCache* consumer)
1587 VMCacheFactory::CreateAnonymousCache(VMCache*& _cache, bool canOvercommit,
1638 VMCacheFactory::CreateVnodeCache(VMCache*& _cache, struct vnode* vnode)
1663 VMCacheFactory::CreateDeviceCache(VMCache*& _cache, addr_t baseAddress)
1688 VMCacheFactory::CreateNullCache(int priority, VMCache*& _cache)