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

Function is_object_active

freebsd/vm/vm_meter.c:153–158  ·  view source on GitHub ↗

* This function aims to determine if the object is mapped, * specifically, if it is referenced by a vm_map_entry. Because * objects occasionally acquire transient references that do not * represent a mapping, the method used here is inexact. However, it * has very low overhead and is good enough for the advisory * vm.vmtotal sysctl. */

Source from the content-addressed store, hash-verified

151 * vm.vmtotal sysctl.
152 */
153static bool
154is_object_active(vm_object_t obj)
155{
156
157 return (obj->ref_count > obj->shadow_count);
158}
159
160#if defined(COMPAT_FREEBSD11)
161struct vmtotal11 {

Callers 1

vmtotalFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected