Lines Matching defs:old_entry
3536 struct vm_map_entry *old_entry, struct uvm_map_deadq *dead,
3541 KDASSERT(!UVM_ET_ISSUBMAP(old_entry));
3553 /* old_entry -> new_entry */
3554 new_entry->object = old_entry->object;
3555 new_entry->offset = old_entry->offset;
3556 new_entry->aref = old_entry->aref;
3557 new_entry->etype |= old_entry->etype & ~UVM_ET_FREEMAPPED;
3560 new_entry->inheritance = old_entry->inheritance;
3561 new_entry->advice = old_entry->advice;
3584 struct vm_map_entry *old_entry, struct uvm_map_deadq *dead)
3587 * If old_entry refers to a copy-on-write region that has not yet been
3589 * amap for old_entry.
3591 * If we do not do this, and the process owning old_entry does a copy-on
3592 * write later, old_entry and new_entry will refer to different memory
3598 if (UVM_ET_ISNEEDSCOPY(old_entry)) {
3600 amap_copy(old_map, old_entry, M_WAITOK, FALSE, 0, 0);
3605 prot, maxprot, old_entry, dead, 0, AMAP_SHARED);
3615 struct vm_map_entry *old_entry, struct uvm_map_deadq *dead)
3619 new_entry = uvm_mapent_share(new_map, old_entry->start,
3620 old_entry->end - old_entry->start, 0, old_entry->protection,
3621 old_entry->max_protection, old_map, old_entry, dead);
3636 struct vm_map_entry *old_entry, struct uvm_map_deadq *dead)
3641 new_entry = uvm_mapent_clone(new_map, old_entry->start,
3642 old_entry->end - old_entry->start, 0, old_entry->protection,
3643 old_entry->max_protection, old_entry, dead, 0, 0);
3679 if (old_entry->aref.ar_amap != NULL &&
3680 ((amap_flags(old_entry->aref.ar_amap) &
3682 VM_MAPENT_ISWIRED(old_entry))) {
3698 if (VM_MAPENT_ISWIRED(old_entry)) {
3704 if (old_entry->aref.ar_amap)
3707 if (old_entry->aref.ar_amap) {
3719 if (!UVM_ET_ISNEEDSCOPY(old_entry)) {
3720 if (old_entry->max_protection & PROT_WRITE) {
3721 uvm_map_lock_entry(old_entry);
3723 old_entry->start,
3724 old_entry->end,
3725 old_entry->protection &
3727 uvm_map_unlock_entry(old_entry);
3730 old_entry->etype |= UVM_ET_NEEDSCOPY;
3740 if (old_entry->max_protection & PROT_WRITE)
3764 struct vm_map_entry *old_entry, struct uvm_map_deadq *dead)
3768 new_entry = uvm_mapent_clone(new_map, old_entry->start,
3769 old_entry->end - old_entry->start, 0, old_entry->protection,
3770 old_entry->max_protection, old_entry, dead, 0, 0);
3806 struct vm_map_entry *old_entry, *new_entry;
3821 RBT_FOREACH(old_entry, uvm_map_addr, &old_map->addr) {
3822 if (old_entry->start == old_entry->end)
3826 if (UVM_ET_ISSUBMAP(old_entry)) {
3831 if (!UVM_ET_ISCOPYONWRITE(old_entry) &&
3832 UVM_ET_ISNEEDSCOPY(old_entry)) {
3838 switch (old_entry->inheritance) {
3841 old_map, old_entry, &dead);
3845 old_map, old_entry, &dead);
3849 old_map, old_entry, &dead);