Searched refs:cache (Results 1 - 25 of 108) sorted by relevance

12345

/haiku/src/add-ons/kernel/file_systems/ntfs/libntfs/
H A Dcache.c2 * cache.c : deal with LRU caches
35 #include "cache.h"
48 * in the cache. Another function may be provided for invalidating
63 static void inserthashindex(struct CACHE_HEADER *cache, argument
70 if (cache->dohash) {
71 h = cache->dohash(current);
72 if ((h >= 0) && (h < cache->max_hash)) {
74 link = cache->free_hash;
76 cache->free_hash = link->next;
77 first = cache
103 drophashindex(struct CACHE_HEADER *cache, const struct CACHED_GENERIC *current, int hash) argument
147 ntfs_fetch_cache(struct CACHE_HEADER *cache, const struct CACHED_GENERIC *wanted, cache_compare compare) argument
212 ntfs_enter_cache(struct CACHE_HEADER *cache, const struct CACHED_GENERIC *item, cache_compare compare) argument
335 do_invalidate(struct CACHE_HEADER *cache, struct CACHED_GENERIC *current, int flags) argument
374 ntfs_invalidate_cache(struct CACHE_HEADER *cache, const struct CACHED_GENERIC *item, cache_compare compare, int flags) argument
432 ntfs_remove_cache(struct CACHE_HEADER *cache, struct CACHED_GENERIC *item, int flags) argument
451 ntfs_free_cache(struct CACHE_HEADER *cache) argument
477 struct CACHE_HEADER *cache; local
[all...]
H A Dcache.h2 * cache.h : deal with indexed LRU caches
102 struct CACHED_GENERIC *ntfs_fetch_cache(struct CACHE_HEADER *cache,
105 struct CACHED_GENERIC *ntfs_enter_cache(struct CACHE_HEADER *cache,
108 int ntfs_invalidate_cache(struct CACHE_HEADER *cache,
111 int ntfs_remove_cache(struct CACHE_HEADER *cache,
/haiku/src/system/kernel/slab/
H A DSlab.cpp48 static mutex sObjectCacheListLock = MUTEX_INITIALIZER("object cache list");
51 = MUTEX_INITIALIZER("object cache resize requests");
107 ObjectCacheTraceEntry(ObjectCache* cache) argument
110 fCache(cache)
123 ObjectCache* cache)
125 ObjectCacheTraceEntry(cache),
138 out.Print("object cache create: name: \"%s\", object size: "
140 "%" B_PRIuSIZE ", flags: 0x%" B_PRIx32 ", cookie: %p -> cache: %p",
157 Delete(ObjectCache* cache) argument
159 ObjectCacheTraceEntry(cache)
121 Create(const char* name, size_t objectSize, size_t alignment, size_t maxByteUsage, uint32 flags, void* cookie, ObjectCache* cache) argument
173 Alloc(ObjectCache* cache, uint32 flags, void* object) argument
196 Free(ObjectCache* cache, void* object) argument
217 Reserve(ObjectCache* cache, size_t count, uint32 flags) argument
268 ObjectCache* cache = it.Next(); local
288 ObjectCache* cache = (ObjectCache*)parse_expression(argv[1]); local
544 analyze_allocation_callers(ObjectCache* cache, slab* slab, AllocationTrackingCallback& callback) argument
559 analyze_allocation_callers(ObjectCache* cache, const SlabList& slabList, AllocationTrackingCallback& callback) argument
573 analyze_allocation_callers(ObjectCache* cache, AllocationTrackingCallback& callback) argument
586 ObjectCache* cache = NULL; local
712 ObjectCache* cache = NULL; local
827 add_alloc_tracing_entry(ObjectCache* cache, uint32 flags, void* object) argument
855 delete_object_cache_internal(object_cache* cache) argument
877 increase_object_reserve(ObjectCache* cache) argument
894 object_cache_reserve_internal(ObjectCache* cache, size_t objectCount, uint32 flags) argument
974 ObjectCache* cache; local
1073 ObjectCache* cache = sMaintenanceQueue.RemoveHead(); local
1137 ObjectCache* cache; local
1162 delete_object_cache(object_cache* cache) argument
1195 object_cache_set_minimum_reserve(object_cache* cache, size_t objectCount) argument
1211 object_cache_alloc(object_cache* cache, uint32 flags) argument
1273 object_cache_free(object_cache* cache, void* object, uint32 flags) argument
1314 object_cache_reserve(object_cache* cache, size_t objectCount, uint32 flags) argument
1327 object_cache_get_usage(object_cache* cache, size_t* _allocatedMemory) argument
[all...]
H A DSmallObjectCache.cpp39 SmallObjectCache* cache = new(buffer) SmallObjectCache();
41 if (cache->Init(name, object_size, alignment, maximum, magazineCapacity,
44 cache->Delete();
49 cache->slab_size = 1024 * object_size;
51 cache->slab_size = SLAB_CHUNK_SIZE_SMALL;
53 cache->slab_size = MemoryManager::AcceptableChunkSize(cache->slab_size);
55 return cache;
H A DHashedObjectCache.cpp66 HashedObjectCache* cache = new(buffer) HashedObjectCache();
69 size_t hashSize = cache->hash_table.ResizeNeeded();
72 cache->Delete();
76 cache->hash_table.Resize(buffer, hashSize, true);
78 if (cache->Init(name, object_size, alignment, maximum, magazineCapacity,
81 cache->Delete();
86 cache->slab_size = 128 * object_size;
88 cache->slab_size = 8 * object_size;
90 cache->slab_size = MemoryManager::AcceptableChunkSize(cache
[all...]
H A Dslab_debug.h21 #define TRACE_CACHE(cache, format, args...) \
22 dprintf("Cache[%p, %s] " format "\n", cache, cache->name , ##args)
24 #define TRACE_CACHE(cache, format, bananas...) do { } while (0)
36 // The object cache code needs to do allocation tracking.
44 // Guards code that is needed for either object cache or memory manager
/haiku/src/tests/add-ons/kernel/kernelland_emu/
H A Dslab.cpp56 delete_object_cache(object_cache *cache) argument
58 delete cache;
63 object_cache_set_minimum_reserve(object_cache *cache, size_t objectCount) argument
70 object_cache_alloc(object_cache *cache, uint32 flags) argument
72 void* object = cache != NULL ? malloc(cache->objectSize) : NULL;
76 if (cache->objectConstructor != NULL)
77 cache->objectConstructor(cache->cookie, object);
84 object_cache_free(object_cache *cache, voi argument
96 object_cache_reserve(object_cache *cache, size_t object_count, uint32 flags) argument
103 object_cache_get_usage(object_cache *cache, size_t *_allocatedMemory) argument
[all...]
/haiku/headers/os/drivers/
H A Dfs_cache.h36 extern int32 cache_start_transaction(void *cache);
37 extern status_t cache_sync_transaction(void *cache, int32 id);
38 extern status_t cache_end_transaction(void *cache, int32 id,
40 extern status_t cache_abort_transaction(void *cache, int32 id);
41 extern int32 cache_detach_sub_transaction(void *cache, int32 id,
43 extern status_t cache_abort_sub_transaction(void *cache, int32 id);
44 extern status_t cache_start_sub_transaction(void *cache, int32 id);
45 extern status_t cache_add_transaction_listener(void *cache, int32 id,
48 extern status_t cache_remove_transaction_listener(void *cache, int32 id,
50 extern status_t cache_next_block_in_transaction(void *cache, int3
[all...]
/haiku/src/tools/fs_shell/
H A Dblock_cache.cpp166 static fssh_status_t write_cached_block(block_cache* cache, cached_block* block,
215 flush_pending_notifications(block_cache* cache) argument
220 cache_notification* notification = cache->pending_notifications.Head();
228 cache->pending_notifications.Remove(notification);
286 add_notification(block_cache* cache, cache_notification* notification, argument
298 cache->pending_notifications.Add(notification);
312 notify_transaction_listeners(block_cache* cache, cache_transaction* transaction, argument
328 add_notification(cache, listener, event, remove);
335 flush_pending_notifications(cache);
343 remove_transaction_listeners(block_cache* cache, cache_transactio argument
356 add_transaction_listener(block_cache* cache, cache_transaction* transaction, int32_t events, fssh_transaction_notification_hook hookFunction, void* data) argument
420 delete_transaction(block_cache* cache, cache_transaction* transaction) argument
431 lookup_transaction(block_cache* cache, int32_t id) argument
660 put_cached_block(block_cache* cache, cached_block* block) argument
697 put_cached_block(block_cache* cache, fssh_off_t blockNumber) argument
720 get_cached_block(block_cache* cache, fssh_off_t blockNumber, bool* _allocated, bool readBlock, cached_block** _block) argument
776 get_writable_cached_block(block_cache* cache, fssh_off_t blockNumber, fssh_off_t base, fssh_off_t length, int32_t transactionID, bool cleared, void** _block) argument
889 write_cached_block(block_cache* cache, cached_block* block, bool deleteTransaction) argument
951 wait_for_notifications(block_cache* cache) argument
977 block_cache* cache = (block_cache*)_cache; local
1003 block_cache* cache = (block_cache*)_cache; local
1045 block_cache* cache = (block_cache*)_cache; local
1107 block_cache* cache = (block_cache*)_cache; local
1159 block_cache* cache = (block_cache*)_cache; local
1252 block_cache* cache = (block_cache*)_cache; local
1305 block_cache* cache = (block_cache*)_cache; local
1388 block_cache* cache = (block_cache*)_cache; local
1431 block_cache* cache = (block_cache*)_cache; local
1445 block_cache* cache = (block_cache*)_cache; local
1459 block_cache* cache = (block_cache*)_cache; local
1474 block_cache* cache = (block_cache*)_cache; local
1490 block_cache* cache = (block_cache*)_cache; local
1522 block_cache* cache = new(std::nothrow) block_cache(fd, numBlocks, blockSize, local
1539 block_cache* cache = (block_cache*)_cache; local
1567 block_cache* cache = (block_cache*)_cache; local
1602 block_cache* cache = (block_cache*)_cache; local
1635 block_cache* cache = (block_cache*)_cache; local
1658 block_cache* cache = (block_cache*)_cache; local
1689 block_cache* cache = (block_cache*)_cache; local
1710 block_cache* cache = (block_cache*)_cache; local
1754 block_cache* cache = (block_cache*)_cache; local
1777 block_cache* cache = (block_cache*)_cache; local
[all...]
/haiku/src/system/kernel/vm/
H A DPageCacheLocker.cpp30 // Grab a reference to this cache.
31 VMCache* cache = vm_cache_acquire_locked_page_cache(page, dontWait);
32 if (cache == NULL)
36 cache->ReleaseRefAndUnlock();
H A DVMCache.cpp41 #include "../cache/vnode_store.h"
82 VMCacheTraceEntry(VMCache* cache) argument
84 fCache(cache)
116 Create(VMCache* cache) argument
118 VMCacheTraceEntry(cache)
125 out.Print("vm cache create: -> cache: %p", fCache);
132 Delete(VMCache* cache) argument
134 VMCacheTraceEntry(cache)
141 out.Print("vm cache delet
148 SetMinimalCommitment(VMCache* cache, off_t commitment) argument
172 Resize(VMCache* cache, off_t size) argument
195 Rebase(VMCache* cache, off_t base) argument
218 AddConsumer(VMCache* cache, VMCache* consumer) argument
244 RemoveConsumer(VMCache* cache, VMCache* consumer) argument
265 Merge(VMCache* cache, VMCache* consumer) argument
286 InsertArea(VMCache* cache, VMArea* area) argument
312 RemoveArea(VMCache* cache, VMArea* area) argument
340 InsertPage(VMCache* cache, vm_page* page, off_t offset) argument
363 RemovePage(VMCache* cache, vm_page* page) argument
421 cache_stack_find_consumer(const TraceEntryIterator& baseIterator, void* cache) argument
570 VMCache* cache = cacheRef->cache; local
593 VMCache* cache = cacheRef->cache; local
616 VMCacheRef(VMCache* cache) argument
1598 VMAnonymousCache* cache local
1617 VMAnonymousNoSwapCache* cache local
1644 VMVnodeCache* cache local
1669 VMDeviceCache* cache local
1695 VMNullCache* cache local
[all...]
/haiku/src/system/runtime_loader/arch/ppc/
H A Darch_relocate.cpp25 SymbolLookupCache* cache)
35 SymbolLookupCache* cache)
42 cache);
49 image->pltrel_len, cache);
24 relocate_rel(image_t *rootImage, image_t *image, Elf32_Rel *rel, int rel_len, SymbolLookupCache* cache) argument
34 arch_relocate_image(image_t *rootImage, image_t *image, SymbolLookupCache* cache) argument
/haiku/src/system/kernel/cache/
H A Dblock_cache.cpp285 BlockWriter(block_cache* cache,
300 static status_t WriteBlock(block_cache* cache,
330 inline bool Lock(block_cache* cache) argument
332 mutex_lock(&cache->lock);
334 while (cache->busy_writing_count != 0) {
337 cache->busy_writing_condition.Add(&entry);
338 cache->busy_writing_waiters = true;
340 mutex_unlock(&cache->lock);
344 mutex_lock(&cache->lock);
350 inline void Unlock(block_cache* cache) argument
366 Action(block_cache* cache, cached_block* block) argument
404 Get(block_cache* cache, cached_block* block) argument
416 Put(block_cache* cache, cached_block* block) argument
428 Read(block_cache* cache, cached_block* block) argument
440 Write(block_cache* cache, cached_block* block) argument
452 Flush(block_cache* cache, cached_block* block, bool getUnused = false) argument
469 Error(block_cache* cache, uint64 blockNumber, const char* message, status_t status = B_OK) argument
503 BlockData(block_cache* cache, cached_block* block, const char* message) argument
637 Action(const char* label, block_cache* cache, cache_transaction* transaction) argument
670 Detach(block_cache* cache, cache_transaction* transaction, cache_transaction* newTransaction) argument
702 Abort(block_cache* cache, cache_transaction* transaction) argument
820 flush_pending_notifications(block_cache* cache) argument
867 block_cache* cache = iterator.Next(); local
911 add_notification(block_cache* cache, cache_notification* notification, int32 event, bool deleteNotification) argument
941 notify_transaction_listeners(block_cache* cache, cache_transaction* transaction, int32 event) argument
970 remove_transaction_listeners(block_cache* cache, cache_transaction* transaction) argument
983 add_transaction_listener(block_cache* cache, cache_transaction* transaction, int32 events, transaction_notification_hook hookFunction, void* data) argument
1024 delete_transaction(block_cache* cache, cache_transaction* transaction) argument
1035 lookup_transaction(block_cache* cache, int32 id) argument
1063 write_blocks_in_previous_transaction(block_cache* cache, cache_transaction* transaction) argument
1095 BlockWriter(block_cache* cache, size_t max) argument
1255 WriteBlock(block_cache* cache, cached_block* block) argument
1643 block_cache* cache = (block_cache*)data; local
1724 mark_block_busy_reading(block_cache* cache, cached_block* block) argument
1734 mark_block_unbusy_reading(block_cache* cache, cached_block* block) argument
1751 wait_for_busy_reading_block(block_cache* cache, cached_block* block) argument
1771 wait_for_busy_reading_blocks(block_cache* cache) argument
1791 wait_for_busy_writing_block(block_cache* cache, cached_block* block) argument
1811 wait_for_busy_writing_blocks(block_cache* cache) argument
1834 put_cached_block(block_cache* cache, cached_block* block) argument
1878 put_cached_block(block_cache* cache, off_t blockNumber) argument
1906 get_cached_block(block_cache* cache, off_t blockNumber, bool* _allocated, bool readBlock, cached_block** _block) argument
1982 get_writable_cached_block(block_cache* cache, off_t blockNumber, off_t base, off_t length, int32 transactionID, bool cleared, void** _block) argument
2237 block_cache* cache = (struct block_cache*)(addr_t)parse_expression(argv[i]); local
2350 block_cache* cache = (block_cache*)(addr_t)parse_expression(argv[i]); local
2411 block_cache* cache = i.Next(); local
2541 block_cache* cache; local
2589 block_cache* cache = NULL; local
2677 block_cache* cache = (block_cache*)_cache; local
2685 is_valid_cache(block_cache* cache) argument
2704 wait_for_notifications(block_cache* cache) argument
2804 block_cache* cache = (block_cache*)_cache; local
2831 block_cache* cache = (block_cache*)_cache; local
2882 block_cache* cache = (block_cache*)_cache; local
2948 block_cache* cache = (block_cache*)_cache; local
3001 block_cache* cache = (block_cache*)_cache; local
3104 block_cache* cache = (block_cache*)_cache; local
3189 block_cache* cache = (block_cache*)_cache; local
3254 block_cache* cache = (block_cache*)_cache; local
3269 block_cache* cache = (block_cache*)_cache; local
3301 block_cache* cache = (block_cache*)_cache; local
3343 block_cache* cache = (block_cache*)_cache; local
3361 block_cache* cache = (block_cache*)_cache; local
3378 block_cache* cache = (block_cache*)_cache; local
3394 block_cache* cache = (block_cache*)_cache; local
3410 block_cache* cache = (block_cache*)_cache; local
3450 block_cache* cache = new(std::nothrow) block_cache(fd, numBlocks, blockSize, local
3470 block_cache* cache = (block_cache*)_cache; local
3500 block_cache* cache = (block_cache*)_cache; local
3544 block_cache* cache = (block_cache*)_cache; local
3589 block_cache* cache = (block_cache*)_cache; local
3614 block_cache* cache = (block_cache*)_cache; local
3642 block_cache* cache = (block_cache*)_cache; local
3663 block_cache* cache = (block_cache*)_cache; local
3709 block_cache* cache = (block_cache*)_cache; local
3731 block_cache* cache = (block_cache*)_cache; local
[all...]
H A Dfile_cache.cpp45 VMCache *cache; member in struct:file_cache_ref
122 fCache(ref->cache),
156 // allocate pages for the cache and mark them busy
289 VMCache* cache = ref->cache; local
290 cache->Lock();
292 if (cache->consumers.IsEmpty() && cache->areas == NULL
305 vm_page_write_modified_page_range(cache,
309 // free some pages from our cache
382 VMCache* cache = ref->cache; local
736 VMCache* cache = ref->cache; local
1056 cache_node_opened(struct vnode* vnode, int32 fdType, VMCache* cache, dev_t mountID, ino_t parentID, ino_t vnodeID, const char* name) argument
1075 cache_node_closed(struct vnode* vnode, int32 fdType, VMCache* cache, dev_t mountID, ino_t vnodeID) argument
[all...]
/haiku/headers/private/kernel/vm/
H A Dvm_page.h37 void vm_page_free_etc(VMCache* cache, vm_page* page,
51 status_t vm_page_write_modified_page_range(struct VMCache *cache,
53 status_t vm_page_write_modified_pages(struct VMCache *cache);
55 void vm_page_schedule_write_page_range(struct VMCache *cache,
78 vm_page_free(struct VMCache *cache, struct vm_page *page) argument
80 vm_page_free_etc(cache, page, NULL);
/haiku/headers/private/kernel/slab/
H A DSlab.h54 void delete_object_cache(object_cache* cache);
56 status_t object_cache_set_minimum_reserve(object_cache* cache,
59 void* object_cache_alloc(object_cache* cache, uint32 flags);
60 void object_cache_free(object_cache* cache, void* object, uint32 flags);
62 status_t object_cache_reserve(object_cache* cache, size_t object_count,
65 void object_cache_get_usage(object_cache* cache, size_t* _allocatedMemory);
/haiku/src/tests/system/kernel/slab/
H A DSlab.cpp15 // TODO this value should be dynamically tuned per cache.
39 MallocBackend::AllocatePages(BaseCache *cache, AllocationID *id, void **pages, argument
56 MallocBackend::FreePages(BaseCache *cache, void *pages) argument
63 AreaBackend::AllocatePages(BaseCache *cache, area_id *id, void **pages, argument
69 area_id areaId = create_area(cache->Name(), pages, B_ANY_ADDRESS, //B_ANY_KERNEL_ADDRESS,
81 AreaBackend::FreePages(BaseCache *cache, area_id area) argument
419 object_cache_alloc(object_cache_t cache) argument
421 return ((MallocLocalCache *)cache)->Alloc(0);
426 object_cache_alloc_etc(object_cache_t cache, uint32_t flags) argument
428 return ((MallocLocalCache *)cache)
433 object_cache_free(object_cache_t cache, void *object) argument
440 object_cache_destroy(object_cache_t cache) argument
509 object_cache_t cache = object_cache_create("foobar", 16, 0, local
[all...]
/haiku/src/system/runtime_loader/arch/sparc/
H A Darch_relocate.cpp26 SymbolLookupCache* cache)
25 arch_relocate_image(image_t *rootImage, image_t *image, SymbolLookupCache* cache) argument
/haiku/src/system/runtime_loader/arch/arm64/
H A Darch_relocate.cpp25 SymbolLookupCache* cache)
24 arch_relocate_image(image_t *rootImage, image_t *image, SymbolLookupCache* cache) argument
/haiku/src/system/runtime_loader/arch/arm/
H A Darch_relocate.cpp27 SymbolLookupCache* cache)
42 status_t status = resolve_symbol(rootImage, image, sym, cache, &S,
82 SymbolLookupCache* cache)
89 cache);
96 image->pltrel_len, cache);
26 relocate_rel(image_t *rootImage, image_t *image, Elf32_Rel *rel, int rel_len, SymbolLookupCache* cache) argument
81 arch_relocate_image(image_t *rootImage, image_t *image, SymbolLookupCache* cache) argument
/haiku/src/system/runtime_loader/arch/riscv64/
H A Darch_relocate.cpp20 size_t relLength, SymbolLookupCache* cache)
32 status_t status = resolve_symbol(rootImage, image, sym, cache,
79 SymbolLookupCache* cache)
86 cache);
94 image->pltrel_len, cache);
19 relocate_rela(image_t* rootImage, image_t* image, Elf64_Rela* rel, size_t relLength, SymbolLookupCache* cache) argument
78 arch_relocate_image(image_t* rootImage, image_t* image, SymbolLookupCache* cache) argument
/haiku/src/tests/add-ons/kernel/file_systems/bfs/btree/
H A Dcache.cpp0 /* cache - emulation for the B+Tree torture test
8 #include "cache.h"
20 /* A note from the author: this cache implementation can only be used
49 debugger("cache is corrupt!");
60 cached_write(void* cache, off_t num, const void* _data, off_t numBlocks) argument
79 read_blocks(void* cache, off_t num) argument
81 BFile* file = (BFile*)cache;
97 get_block(void* cache, off_t num) argument
101 read_blocks(cache, num);
108 release_block(void* cache, off_ argument
[all...]
/haiku/src/apps/haikudepot/server/
H A DLocalRepositoryUpdateProcess.h49 BPackageKit::BRepositoryCache* cache);
54 BPackageKit::BRepositoryCache* cache);
/haiku/src/system/runtime_loader/arch/x86/
H A Darch_relocate.cpp22 SymbolLookupCache* cache)
39 status_t status = resolve_symbol(rootImage, image, sym, cache, &S,
112 SymbolLookupCache* cache)
119 cache);
126 image->pltrel_len, cache);
21 relocate_rel(image_t *rootImage, image_t *image, Elf32_Rel *rel, int rel_len, SymbolLookupCache* cache) argument
111 arch_relocate_image(image_t* rootImage, image_t* image, SymbolLookupCache* cache) argument
/haiku/src/system/runtime_loader/arch/x86_64/
H A Darch_relocate.cpp18 size_t relLength, SymbolLookupCache* cache)
30 status_t status = resolve_symbol(rootImage, image, sym, cache,
85 SymbolLookupCache* cache)
94 cache);
102 image->pltrel_len, cache);
17 relocate_rela(image_t* rootImage, image_t* image, Elf64_Rela* rel, size_t relLength, SymbolLookupCache* cache) argument
84 arch_relocate_image(image_t* rootImage, image_t* image, SymbolLookupCache* cache) argument

Completed in 226 milliseconds

12345