Lines Matching refs:kvo

2482 	struct kinfo_vmobject *kvo;  in vm_object_list_handler()  local
2514 kvo = malloc(sizeof(*kvo), M_TEMP, M_WAITOK | M_ZERO); in vm_object_list_handler()
2534 kvo->kvo_size = ptoa(obj->size); in vm_object_list_handler()
2535 kvo->kvo_resident = obj->resident_page_count; in vm_object_list_handler()
2536 kvo->kvo_ref_count = obj->ref_count; in vm_object_list_handler()
2537 kvo->kvo_shadow_count = atomic_load_int(&obj->shadow_count); in vm_object_list_handler()
2538 kvo->kvo_memattr = obj->memattr; in vm_object_list_handler()
2539 kvo->kvo_active = 0; in vm_object_list_handler()
2540 kvo->kvo_inactive = 0; in vm_object_list_handler()
2541 kvo->kvo_flags = 0; in vm_object_list_handler()
2554 kvo->kvo_active++; in vm_object_list_handler()
2556 kvo->kvo_inactive++; in vm_object_list_handler()
2558 kvo->kvo_laundry++; in vm_object_list_handler()
2562 kvo->kvo_vn_fileid = 0; in vm_object_list_handler()
2563 kvo->kvo_vn_fsid = 0; in vm_object_list_handler()
2564 kvo->kvo_vn_fsid_freebsd11 = 0; in vm_object_list_handler()
2568 kvo->kvo_type = vm_object_kvme_type(obj, want_path ? &vp : in vm_object_list_handler()
2573 MPASS(kvo->kvo_type == KVME_TYPE_SWAP); in vm_object_list_handler()
2574 kvo->kvo_me = (uintptr_t)obj; in vm_object_list_handler()
2576 kvo->kvo_backing_obj = (uintptr_t)obj->backing_object; in vm_object_list_handler()
2578 kvo->kvo_swapped = sp > UINT32_MAX ? UINT32_MAX : sp; in vm_object_list_handler()
2586 strlcpy(kvo->kvo_path, cdev->si_name, in vm_object_list_handler()
2587 sizeof(kvo->kvo_path)); in vm_object_list_handler()
2594 kvo->kvo_flags |= KVMO_FLAG_SYSVSHM; in vm_object_list_handler()
2596 kvo->kvo_vn_fileid = key; in vm_object_list_handler()
2597 kvo->kvo_vn_fsid_freebsd11 = seq; in vm_object_list_handler()
2600 kvo->kvo_flags |= KVMO_FLAG_POSIXSHM; in vm_object_list_handler()
2601 shm_get_path(obj, kvo->kvo_path, in vm_object_list_handler()
2602 sizeof(kvo->kvo_path)); in vm_object_list_handler()
2608 kvo->kvo_vn_fileid = va.va_fileid; in vm_object_list_handler()
2609 kvo->kvo_vn_fsid = va.va_fsid; in vm_object_list_handler()
2610 kvo->kvo_vn_fsid_freebsd11 = va.va_fsid; in vm_object_list_handler()
2614 strlcpy(kvo->kvo_path, fullpath, sizeof(kvo->kvo_path)); in vm_object_list_handler()
2619 kvo->kvo_structsize = offsetof(struct kinfo_vmobject, kvo_path) in vm_object_list_handler()
2620 + strlen(kvo->kvo_path) + 1; in vm_object_list_handler()
2621 kvo->kvo_structsize = roundup(kvo->kvo_structsize, in vm_object_list_handler()
2623 error = SYSCTL_OUT(req, kvo, kvo->kvo_structsize); in vm_object_list_handler()
2630 free(kvo, M_TEMP); in vm_object_list_handler()