Searched refs:ref_count (Results 26 - 50 of 56) sorted by relevance

123

/haiku/src/tools/fs_shell/
H A Dfd.h49 int32_t ref_count; member in struct:FSShell::file_descriptor
H A Dvfs.cpp84 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 Dblock_cache.cpp73 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 Ddriver.cpp220 } 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 Dfd.h51 int32 ref_count; member in struct:file_descriptor
/haiku/src/add-ons/kernel/network/stack/
H A Dstack.cpp66 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 Droutes.cpp196 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 Dnet_buffer.cpp67 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 DNodeManager.cpp162 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 DNodeManager.h38 int32 ref_count; member in struct:registered_node
/haiku/src/system/kernel/fs/
H A Dvfs_tracing.h30 fReferenceCount(descriptor->ref_count)
134 fEvictedDescriptor != NULL ? fEvictedDescriptor->ref_count : 0),
H A DVnode.h37 int32 ref_count; member in struct:vnode
H A Dfd.cpp62 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 Dvfs.cpp241 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 Dsmp.cpp79 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 Dbus_dma.cpp28 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 Dtty_private.h129 int32 ref_count; // referenced by cookies member in struct:tty
/haiku/src/add-ons/kernel/partitioning_systems/intel/
H A Dintel.cpp222 atomic_add(&map->ref_count, 1);
241 if (atomic_add(&map->ref_count, -1) == 1)
/haiku/src/add-ons/kernel/file_cache/
H A Dlaunch_speedup.cpp60 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 Druntime_loader.h99 int32 ref_count; member in struct:image_t
/haiku/headers/private/kernel/vm/
H A Dvm_types.h110 int32 ref_count; member in struct:VMCacheRef
/haiku/src/add-ons/kernel/file_systems/btrfs/
H A Dbtrfs.h458 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 Dimages.cpp223 image->ref_count = 1;
279 if (atomic_add(&image->ref_count, -1) == 1) {
H A Delf_load_image.cpp523 atomic_add(&found->ref_count, 1);
557 atomic_add(&found->ref_count, 1);
/haiku/src/system/kernel/cache/
H A Dblock_cache.cpp87 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...]

Completed in 193 milliseconds

123