Searched refs:ref_count (Results 1 - 25 of 56) sorted by last modified time

123

/haiku/src/tools/fs_shell/
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 Dfd.cpp44 fssh_dprintf("fd[%d] = %p: type = %d, ref_count = %d, ops = %p, u.vnode = %p, u.mount = %p, cookie = %p, open_mode = %x, pos = %lld\n",
45 fd, descriptor, (int)descriptor->type, (int)descriptor->ref_count, descriptor->ops,
64 descriptor->ref_count = 1;
139 int32_t previous = fssh_atomic_add(&descriptor->ref_count, -1);
142 descriptor, descriptor->ref_count, descriptor->cookie));
165 descriptor->ref_count = -1;
208 fssh_atomic_add(&descriptor->ref_count, 1);
337 fssh_atomic_add(&context->fds[oldfd]->ref_count, 1);
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/system/runtime_loader/
H A Delf_load_image.cpp523 atomic_add(&found->ref_count, 1);
557 atomic_add(&found->ref_count, 1);
H A Delf.cpp649 atomic_add(&image->ref_count, 1);
/haiku/src/system/kernel/fs/
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...]
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);
/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 Ddevice_interfaces.cpp103 while (atomic_get(&interface->ref_count) > 0) {
197 interface->ref_count = 1;
261 kprintf("ref_count: %" B_PRId32 "\n", interface->ref_count);
263 kprintf("deframe_ref_count: %" B_PRId32 "\n", interface->ref_count);
307 if (interface == NULL || atomic_add(&interface->ref_count, 1) == 0)
392 if (atomic_add(&interface->ref_count, -1) != 1)
396 // by setting its ref_count to 0.
397 interface->ref_count = 0;
432 if (atomic_add(&interface->ref_count,
[all...]
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 Dinterfaces.cpp1003 datalink->direct_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/add-ons/kernel/generic/tty/
H A Dtty.cpp1353 tty->ref_count = 0;
1384 ASSERT(tty->ref_count == 0);
1430 tty->ref_count++;
1544 cookie->tty->ref_count--;
H A Dtty_private.h129 int32 ref_count; // referenced by cookies member in struct:tty
/haiku/src/system/kernel/
H A Delf.cpp277 image->ref_count = 1;
1147 if (atomic_add(&image->ref_count, -1) > 1)
2160 atomic_add(&image->ref_count, 1);
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...]
H A Dmodule.cpp96 int32 ref_count; // how many ref's to this file member in struct:module_image
107 int32 ref_count; member in struct:module
108 module_info* info; // will only be valid if ref_count > 0
426 moduleImage->ref_count = 0;
453 if (moduleImage->ref_count != 0) {
455 moduleImage->path, moduleImage->ref_count));
475 int32 refCount = atomic_add(&image->ref_count, -1);
502 atomic_add(&image->ref_count, 1);
546 module->ref_count = 0;
590 if (module->module_image == NULL && module->ref_count
[all...]
/haiku/src/system/kernel/locks/
H A Duser_mutex.cpp36 int32 ref_count; member in struct:UserMutexEntry
188 kprintf(" refcount: %" B_PRId32 "\n", entry->ref_count);
272 atomic_add(&entry->ref_count, 1);
282 atomic_add(&entry->ref_count, 1);
291 entry->ref_count = 1;
307 if (atomic_add(&entry->ref_count, -1) != 1)
317 if (atomic_get(&entry->ref_count) > 0)
/haiku/headers/private/kernel/fs/
H A Dfd.h51 int32 ref_count; member in struct:file_descriptor
/haiku/src/system/kernel/vm/
H A DVMCache.cpp619 ref_count(1)
1452 kprintf(" ref_count: %" B_PRId32 "\n", RefCount());
/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/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/src/system/libroot/os/
H A Ddriver_settings.cpp80 int32 ref_count; member in struct:settings_handle
81 // A negative ref_count means the node is not reference counted and not
417 handle->ref_count = 1;
420 handle->ref_count = -1;
668 handle->ref_count = 1;
670 handle->ref_count = 0;
695 if (handle->ref_count > 0) {
696 if (--handle->ref_count == 0 && gBootDevice > 0) {
725 if (handle != NULL && handle->ref_count == 0 && gBootDevice > 0) {
726 // A handle with a zero ref_count shoul
[all...]
/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...]
/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) {

Completed in 222 milliseconds

123