Lines Matching refs:src_entry
3095 vm_map_entry_t src_entry, in vm_map_copy_entry() argument
3107 if ((dst_entry->eflags|src_entry->eflags) & MAP_ENTRY_IS_SUB_MAP) in vm_map_copy_entry()
3110 if (src_entry->wired_count == 0 || in vm_map_copy_entry()
3111 (src_entry->protection & VM_PROT_WRITE) == 0) { in vm_map_copy_entry()
3116 if ((src_entry->eflags & MAP_ENTRY_NEEDS_COPY) == 0 && in vm_map_copy_entry()
3117 (src_entry->protection & VM_PROT_WRITE) != 0) { in vm_map_copy_entry()
3119 src_entry->start, in vm_map_copy_entry()
3120 src_entry->end, in vm_map_copy_entry()
3121 src_entry->protection & ~VM_PROT_WRITE); in vm_map_copy_entry()
3127 size = src_entry->end - src_entry->start; in vm_map_copy_entry()
3128 if ((src_object = src_entry->object.vm_object) != NULL) { in vm_map_copy_entry()
3130 charged = ENTRY_CHARGED(src_entry); in vm_map_copy_entry()
3136 vm_object_split(src_entry); in vm_map_copy_entry()
3137 src_object = src_entry->object.vm_object; in vm_map_copy_entry()
3142 if (src_entry->cred != NULL && in vm_map_copy_entry()
3143 !(src_entry->eflags & MAP_ENTRY_NEEDS_COPY)) { in vm_map_copy_entry()
3147 src_object->cred = src_entry->cred; in vm_map_copy_entry()
3157 if (!(src_entry->eflags & in vm_map_copy_entry()
3160 src_entry->cred = cred; in vm_map_copy_entry()
3164 src_entry->eflags |= (MAP_ENTRY_COW|MAP_ENTRY_NEEDS_COPY); in vm_map_copy_entry()
3166 dst_entry->offset = src_entry->offset; in vm_map_copy_entry()
3167 if (src_entry->eflags & MAP_ENTRY_VN_WRITECNT) { in vm_map_copy_entry()
3180 src_entry->eflags &= ~MAP_ENTRY_VN_WRITECNT; in vm_map_copy_entry()
3183 fake_entry->start = src_entry->start; in vm_map_copy_entry()
3184 fake_entry->end = src_entry->end; in vm_map_copy_entry()
3191 if (src_entry->cred != NULL) { in vm_map_copy_entry()
3199 dst_entry->end - dst_entry->start, src_entry->start); in vm_map_copy_entry()
3206 vm_fault_copy_entry(dst_map, src_map, dst_entry, src_entry, in vm_map_copy_entry()