/haiku/src/add-ons/kernel/generic/locked_pool/ |
H A D | locked_pool.c | 49 // info about pool 67 int enlarge_by; // number of blocks to enlarge pool by 96 #define NEXT_PTR(pool, a) ((void **)(((char *)a) + pool->next_ofs)) 99 /*! Enlarge memory pool by <num_block> blocks */ 101 enlarge_pool(locked_pool *pool, int numBlocks) argument 115 chunkSize = numBlocks * pool->block_size + pool->header_size; 118 status = area = create_area(pool->name, 120 pool 202 locked_pool *pool; local 245 free_chunks(locked_pool *pool) argument 325 pool_alloc(locked_pool *pool) argument 383 pool_free(locked_pool *pool, void *block) argument 424 locked_pool *pool; local 499 destroy_pool(locked_pool *pool) argument [all...] |
/haiku/src/add-ons/kernel/file_systems/websearchfs/ |
H A D | vnidpool.c | 21 status_t vnidpool_alloc(struct vnidpool **pool, size_t size) argument 26 if (!pool) 38 fprintf(stderr, "vnidpool_alloc: pool @ %p, bitmap @ %p, size %ld\n", p, p->bitmap, p->bmsize); 39 *pool = p; 43 status_t vnidpool_free(struct vnidpool *pool) { argument 45 fprintf(stderr, "vnidpool_free: pool @ %p\n", pool); 46 if (!pool) 48 if (LOCK(&pool->lock) < B_OK) 51 for (i = 0; i < (pool 61 vnidpool_get(struct vnidpool *pool, ino_t *vnid) argument 85 vnidpool_put(struct vnidpool *pool, ino_t vnid) argument [all...] |
H A D | vnidpool.h | 17 status_t vnidpool_alloc(struct vnidpool **pool, size_t size); 18 status_t vnidpool_free(struct vnidpool *pool); 19 status_t vnidpool_get(struct vnidpool *pool, ino_t *vnid); 20 status_t vnidpool_put(struct vnidpool *pool, ino_t vnid);
|
/haiku/src/add-ons/kernel/file_systems/netfs/server/ |
H A D | GlobalBlockerPool.cpp | 14 BlockerPool* pool = new(std::nothrow) BlockerPool; 15 if (!pool) 18 status_t error = pool->InitCheck(); 20 delete pool; 24 sPool = pool;
|
/haiku/headers/private/kernel/fs/ |
H A D | select_sync_pool.h | 19 status_t add_select_sync_pool_entry(select_sync_pool **pool, selectsync *sync, 21 status_t remove_select_sync_pool_entry(select_sync_pool **pool, 23 void delete_select_sync_pool(select_sync_pool *pool); 24 void notify_select_event_pool(select_sync_pool *pool, uint8 event);
|
/haiku/src/add-ons/kernel/file_systems/nfs/ |
H A D | RPCPendingCalls.c | 109 SemaphorePoolInit(struct SemaphorePool *pool) argument 111 pool->fPool=NULL; 112 pool->fPoolCount=0; 113 pool->fPoolSize=0; 115 pool->fPoolSem=create_sem(1,"semaphore_pool_sem"); 116 set_sem_owner (pool->fPoolSem,B_SYSTEM_TEAM); 120 SemaphorePoolDestroy(struct SemaphorePool *pool) argument 124 for (i=0;i<pool->fPoolCount;i++) 125 delete_sem (pool->fPool[i]); 127 free (pool 133 SemaphorePoolGet(struct SemaphorePool *pool) argument 163 SemaphorePoolPut(struct SemaphorePool *pool, sem_id sem) argument [all...] |
H A D | RPCPendingCalls.h | 18 void SemaphorePoolInit (struct SemaphorePool *pool); 19 void SemaphorePoolDestroy (struct SemaphorePool *pool); 20 sem_id SemaphorePoolGet(struct SemaphorePool *pool); 21 void SemaphorePoolPut (struct SemaphorePool *pool, sem_id sem);
|
/haiku/src/kits/media/ |
H A D | RealtimeAlloc.cpp | 46 void Remove(rtm_pool* pool, 48 void Enqueue(rtm_pool* pool); 156 FreeChunk::Remove(rtm_pool* pool, FreeChunk* previous) argument 160 FreeChunk* chunk = pool->free_anchor.fNext; 177 FreeChunk::Enqueue(rtm_pool* pool) argument 179 FreeChunk* chunk = pool->free_anchor.fNext; 180 FreeChunk* last = &pool->free_anchor; 264 while (rtm_pool* pool = iterator.Next()) { 265 if (pool->Contains(buffer)) 266 return pool; 279 rtm_pool* pool = (rtm_pool*)malloc(sizeof(rtm_pool)); local 320 rtm_delete_pool(rtm_pool* pool) argument 341 rtm_alloc(rtm_pool* pool, size_t size) argument 405 rtm_pool* pool = pool_for(allocated); local 428 rtm_pool* pool = pool_for(oldBuffer); local 502 rtm_available(rtm_pool* pool) argument [all...] |
/haiku/src/tests/add-ons/kernel/file_systems/bfs/bufferPool/ |
H A D | main.cpp | 18 BufferPool &pool = *(BufferPool *)_pool; local 27 if ((status = pool.GetBuffer(&buffer)) != B_OK) { 33 pool.PutBuffer(buffer); 43 BufferPool pool; local 46 if (pool.RequestBuffers(BLOCK_SIZE) == B_OK) { 48 thread[i] = spawn_thread(allocator, "", B_NORMAL_PRIORITY, (void *)&pool); 59 pool.ReleaseBuffers();
|
/haiku/headers/os/drivers/ |
H A D | locked_pool.h | 16 Basically, a background thread manages a memory pool where blocks 17 are allocated from. If the pool is empty, allocation is delayed until 18 either a blocks is freed or the pool is enlarged by the background 22 added to memory pool (and cleaned-up when removed from pool). The 28 DMA access, a minimum pool size (in blocks), a maximum pool size 30 pool is allocated. 46 void *(*alloc)(locked_pool_cookie pool); 48 void (*free)(locked_pool_cookie pool, voi [all...] |
/haiku/headers/os/media/ |
H A D | RealtimeAlloc.h | 25 status_t rtm_delete_pool(rtm_pool* pool); 27 void* rtm_alloc(rtm_pool* pool, size_t size); 32 size_t rtm_available(rtm_pool* pool);
|
/haiku/src/add-ons/kernel/file_systems/netfs/headers/shared/ |
H A D | BlockerPool.h | 35 BlockerPutter(BlockerPool& pool, Blocker blocker) argument 36 : fPool(pool),
|
/haiku/src/system/kernel/debug/ |
H A D | debug_heap.cpp | 56 // do we already have a child pool? 60 // create the pool object 61 DebugAllocPool* pool 63 if (pool == NULL) 68 Free(pool); 75 pool->Init(header + 1, header->size * 8); 76 pool->fParent = this; 78 return fChild = pool; 239 DebugAllocPool* pool = sCurrentPool->CreateChildPool(); local 240 if (pool 249 delete_debug_alloc_pool(debug_alloc_pool* pool) argument [all...] |
/haiku/headers/private/package/hpkg/ |
H A D | PoolBuffer.h | 51 PoolBufferPutter(BBufferPool* pool, PoolBuffer** owner) argument 53 fPool(pool), 59 PoolBufferPutter(BBufferPool* pool, PoolBuffer* buffer) argument 61 fPool(pool),
|
/haiku/src/system/kernel/events/ |
H A D | wait_for_objects.cpp | 769 find_select_sync_pool_entry(select_sync_pool *pool, selectsync *sync) argument 771 for (SelectSyncPoolEntryList::Iterator it = pool->entries.GetIterator(); 783 add_select_sync_pool_entry(select_sync_pool *pool, selectsync *sync, argument 787 select_sync_pool_entry *entry = find_select_sync_pool_entry(pool, sync); 796 pool->entries.Add(entry); 809 // create the pool, if necessary 810 select_sync_pool *pool = *_pool; local 811 if (!pool) { 812 pool = new (std::nothrow) select_sync_pool; 813 if (!pool) 836 select_sync_pool *pool = *_pool; local 871 delete_select_sync_pool(select_sync_pool *pool) argument 886 notify_select_event_pool(select_sync_pool *pool, uint8 event) argument [all...] |
/haiku/headers/private/kernel/ |
H A D | debug_heap.h | 20 void delete_debug_alloc_pool(debug_alloc_pool* pool);
|
/haiku/src/system/kernel/arch/m68k/paging/ |
H A D | m68k_physical_page_mapper_large_memory.h | 27 PhysicalPageSlotPool* pool; member in struct:M68KLargePhysicalPageMapper::PhysicalPageSlot
|
H A D | m68k_physical_page_mapper_large_memory.cpp | 21 slots remain in the global pool and are given out by get_physical_page(). 191 pool->Map(physicalAddress, address); 355 // put our slots back to the global pool 366 // get our slots from the global pool 528 // get a slot from the per-cpu user pool 545 // return the slot to the per-cpu user pool 709 PhysicalPageSlotPool* pool = fNonEmptyPools.Head(); local 710 if (pool == NULL) { 714 // allocate new pool 716 status_t error = fInitialPool->AllocatePool(pool); 741 PhysicalPageSlotPool* pool = slot->pool; local [all...] |
/haiku/src/system/kernel/arch/x86/paging/ |
H A D | x86_physical_page_mapper_large_memory.h | 36 PhysicalPageSlotPool* pool; member in struct:X86LargePhysicalPageMapper::PhysicalPageSlot
|
H A D | x86_physical_page_mapper_large_memory.cpp | 19 slots remain in the global pool and are given out by get_physical_page(). 184 pool->Map(physicalAddress, address); 348 // put our slots back to the global pool 359 // get our slots from the global pool 525 // get a slot from the per-cpu user pool 542 // return the slot to the per-cpu user pool 706 PhysicalPageSlotPool* pool = fNonEmptyPools.Head(); local 707 if (pool == NULL) { 711 // allocate new pool 713 status_t error = fInitialPool->AllocatePool(pool); 738 PhysicalPageSlotPool* pool = slot->pool; local [all...] |
/haiku/src/system/kernel/arch/arm/paging/ |
H A D | arm_physical_page_mapper_large_memory.h | 36 PhysicalPageSlotPool* pool; member in struct:ARMLargePhysicalPageMapper::PhysicalPageSlot
|
H A D | arm_physical_page_mapper_large_memory.cpp | 20 slots remain in the global pool and are given out by get_physical_page(). 186 pool->Map(physicalAddress, address); 350 // put our slots back to the global pool 361 // get our slots from the global pool 530 // get a slot from the per-cpu user pool 547 // return the slot to the per-cpu user pool 711 PhysicalPageSlotPool* pool = fNonEmptyPools.Head(); local 712 if (pool == NULL) { 716 // allocate new pool 718 status_t error = fInitialPool->AllocatePool(pool); 743 PhysicalPageSlotPool* pool = slot->pool; local [all...] |
/haiku/src/system/kernel/arch/x86/paging/32bit/ |
H A D | X86PagingMethod32Bit.cpp | 96 "physical page pool space in virtual address space!"); 113 // init the pool structure and add the initial pool 127 area_id area = create_area("physical page pool", &temp, 132 "create area for physical page pool."); 140 "physical page pool space", &temp, B_EXACT_ADDRESS, 144 "create area for physical page pool space."); 168 slot->pool = this; 194 // create the pool structure 195 PhysicalPageSlotPool* pool local 303 PhysicalPageSlotPool* pool = PhysicalPageSlotPool::sInitialPhysicalPagePool; local [all...] |
/haiku/src/system/kernel/arch/arm/paging/32bit/ |
H A D | ARMPagingMethod32Bit.cpp | 96 "physical page pool space in virtual address space!"); 113 // init the pool structure and add the initial pool 127 area_id area = create_area("physical page pool", &temp, 132 "create area for physical page pool."); 140 "physical page pool space", &temp, B_EXACT_ADDRESS, 144 "create area for physical page pool space."); 168 slot->pool = this; 196 // create the pool structure 197 PhysicalPageSlotPool* pool local 291 PhysicalPageSlotPool* pool = PhysicalPageSlotPool::sInitialPhysicalPagePool; local [all...] |
/haiku/src/apps/cortex/addons/common/ |
H A D | RawBuffer.h | 60 // w/ the provided pool; otherwise uses standard 93 rtm_pool* pool() const;
|