/haiku/src/tools/fs_shell/ |
H A D | fd.h | 49 int32_t ref_count; member in struct:FSShell::file_descriptor
|
H A D | vfs.cpp | 84 int32_t ref_count; member in struct:FSShell::vnode 619 vnode->ref_count = 1; 634 ASSERT(vnode->ref_count == 0 && vnode->busy); 680 int32_t oldRefCount = fssh_atomic_add(&vnode->ref_count, -1); 682 TRACE(("dec_vnode_ref_count: vnode %p, ref now %ld\n", vnode, vnode->ref_count)); 729 fssh_atomic_add(&vnode->ref_count, 1); 730 TRACE(("inc_vnode_ref_count: vnode %p, ref now %ld\n", vnode, vnode->ref_count)); 801 if (vnode->ref_count == 0) { 1089 Note, this reduces the ref_count of the starting \a vnode, no matter if 1209 // balance the next recursion - we will decrement the ref_count [all...] |
H A D | block_cache.cpp | 73 int32_t ref_count; member in struct:FSShell::cached_block 577 block->ref_count = 0; 677 if (--block->ref_count == 0 760 block->ref_count++; 936 if (block->transaction == NULL && block->ref_count == 0 && !block->unused) {
|
/haiku/src/add-ons/kernel/drivers/pty/ |
H A D | driver.cpp | 220 } else if (gMasterTTYs[index] != NULL && gMasterTTYs[index]->ref_count != 0) { 355 if (tty->ref_count == 0) { 362 if (gMasterTTYs[index]->ref_count == 0 && gSlaveTTYs[index]->ref_count == 0) {
|
/haiku/headers/private/kernel/fs/ |
H A D | fd.h | 51 int32 ref_count; member in struct:file_descriptor
|
/haiku/src/add-ons/kernel/network/stack/ |
H A D | stack.cpp | 66 int32 ref_count; member in struct:family 95 int32 ref_count; member in struct:chain 179 ref_count(0) 187 atomic_add(&ref_count, 1); 194 if (atomic_add(&ref_count, -1) > 1) 238 ref_count(0), 267 if (atomic_add(&ref_count, 1) > 0) { 269 atomic_add(&ref_count, -1); 308 if (atomic_add(&ref_count, -1) > 1)
|
H A D | routes.cpp | 196 if (route == NULL || atomic_add(&route->ref_count, -1) != 1) 235 if (route != NULL && atomic_add(&route->ref_count, 1) == 0) { 492 route->ref_count = 1; 642 atomic_add(&route->ref_count, 1);
|
H A D | net_buffer.cpp | 67 int32 ref_count; member in struct:data_header 807 header->ref_count = 1; 826 int32 refCount = atomic_add(&header->ref_count, -1); 839 int32 refCount = atomic_add(&header->ref_count, 1);
|
/haiku/src/servers/media/ |
H A D | NodeManager.cpp | 162 node.ref_count = 1; 221 if (node.ref_count != 1) { 224 node.ref_count); 289 if (--node.ref_count == 0) { 306 node.ref_count, teamCount); 327 node.ref_count = 0; 1176 node.ref_count -= teamRef->second; 1177 if (node.ref_count == 0) { 1260 "ref_count %" B_PRId32 "\n", node.node_id, node.add_on_id, 1262 node.kinds, node.name, node.ref_count); [all...] |
H A D | NodeManager.h | 38 int32 ref_count; member in struct:registered_node
|
/haiku/src/system/kernel/fs/ |
H A D | vfs_tracing.h | 30 fReferenceCount(descriptor->ref_count) 134 fEvictedDescriptor != NULL ? fEvictedDescriptor->ref_count : 0),
|
H A D | Vnode.h | 37 int32 ref_count; member in struct:vnode
|
H A D | fd.cpp | 62 dprintf("fd[%d] = %p: type = %" B_PRId32 ", ref_count = %" B_PRId32 ", ops " 65 fd, descriptor, descriptor->type, descriptor->ref_count, 84 descriptor->ref_count = 1; 162 int32 previous = atomic_add(&descriptor->ref_count, -1); 167 descriptor, descriptor->ref_count, descriptor->cookie)); 249 atomic_add(&descriptor->ref_count, 1); 409 atomic_add(&context->fds[oldfd]->ref_count, 1);
|
H A D | vfs.cpp | 241 The mutable fields advisory_locking, mandatory_locked_by, and ref_count, as 729 || rootNode->ref_count == 0) { 930 vnode->ref_count = 1; 975 ASSERT_PRINT(vnode->ref_count == 0 && vnode->IsBusy(), "vnode: %p\n", 996 vnode->ref_count = 2; 1051 int32 oldRefCount = atomic_add(&vnode->ref_count, -1); 1056 vnode->ref_count)); 1107 atomic_add(&vnode->ref_count, 1); 1109 vnode->ref_count)); 1183 if (vnode->ref_count [all...] |
/haiku/src/system/kernel/ |
H A D | smp.cpp | 79 int32 ref_count; member in struct:smp_msg 229 if (message->ref_count <= 0) 277 kprintf(" ref_count: %" B_PRIx32 "\n", message->ref_count); 859 if (atomic_add(&msg->ref_count, -1) != 1) 862 // we were the last one to decrement the ref_count 1073 msg->ref_count = 1; 1138 msg->ref_count = targetCPUs; 1203 msg->ref_count = sNumCPUs - 1; 1269 msg->ref_count [all...] |
/haiku/src/libs/compat/freebsd_network/ |
H A D | bus_dma.cpp | 28 int32 ref_count; member in struct:bus_dma_tag 119 newtag->ref_count = 1; 126 atomic_add(&parent->ref_count, 1); 161 atomic_add(&dmat->ref_count, -1); 162 if (dmat->ref_count == 0) {
|
/haiku/src/add-ons/kernel/generic/tty/ |
H A D | tty_private.h | 129 int32 ref_count; // referenced by cookies member in struct:tty
|
/haiku/src/add-ons/kernel/partitioning_systems/intel/ |
H A D | intel.cpp | 222 atomic_add(&map->ref_count, 1); 241 if (atomic_add(&map->ref_count, -1) == 1)
|
/haiku/src/add-ons/kernel/file_cache/ |
H A D | launch_speedup.cpp | 60 int32 ref_count; member in struct:node 475 node->ref_count++; 492 if (node != NULL && --node->ref_count <= 0) {
|
/haiku/headers/private/runtime_loader/ |
H A D | runtime_loader.h | 99 int32 ref_count; member in struct:image_t
|
/haiku/headers/private/kernel/vm/ |
H A D | vm_types.h | 110 int32 ref_count; member in struct:VMCacheRef
|
/haiku/src/add-ons/kernel/file_systems/btrfs/ |
H A D | btrfs.h | 458 uint32 ref_count; member in struct:btrfs_extent_data_ref 463 uint32 RefCount() const { return B_LENDIAN_TO_HOST_INT32(ref_count); }
|
/haiku/src/system/runtime_loader/ |
H A D | images.cpp | 223 image->ref_count = 1; 279 if (atomic_add(&image->ref_count, -1) == 1) {
|
H A D | elf_load_image.cpp | 523 atomic_add(&found->ref_count, 1); 557 atomic_add(&found->ref_count, 1);
|
/haiku/src/system/kernel/cache/ |
H A D | block_cache.cpp | 87 int32 ref_count; member in struct:__anon39::cached_block 1351 if (block->transaction == NULL && block->ref_count == 0 && !block->unused) { 1537 block->ref_count = 0; 1852 if (block->ref_count < 1) { 1853 panic("Invalid ref_count for block %p, cache %p\n", block, cache); 1857 if (--block->ref_count == 0 1966 block->ref_count++; 2141 (addr_t)block->parent_data, block->ref_count, block->LastAccess(), 2160 kprintf(" ref_count: %" B_PRId32 "\n", block->ref_count); [all...] |