MCPcopy Create free account
hub / github.com/F-Stack/f-stack / vm_object_reference

Function vm_object_reference

freebsd/vm/vm_object.c:498–511  ·  view source on GitHub ↗

* vm_object_reference: * * Acquires a reference to the given object. */

Source from the content-addressed store, hash-verified

496 * Acquires a reference to the given object.
497 */
498void
499vm_object_reference(vm_object_t object)
500{
501
502 if (object == NULL)
503 return;
504
505 if (object->type == OBJT_VNODE)
506 vm_object_reference_vnode(object);
507 else
508 refcount_acquire(&object->ref_count);
509 KASSERT((object->flags & OBJ_DEAD) == 0,
510 ("vm_object_reference: Referenced dead object."));
511}
512
513/*
514 * vm_object_reference_locked:

Callers 15

vmmdev_mmap_singleFunction · 0.85
devmem_mmap_singleFunction · 0.85
vm_mmap_memsegFunction · 0.85
sgx_mem_findFunction · 0.85
kern_shmat_lockedFunction · 0.85
umtx_key_getFunction · 0.85
exec_aout_imgactFunction · 0.85
do_execveFunction · 0.85
exec_new_vmspaceFunction · 0.85
__elfN(map_insert)Function · 0.85
uipc_shm.cFile · 0.85

Calls 2

refcount_acquireFunction · 0.85

Tested by

no test coverage detected