Home
last modified time | relevance | path

Searched refs:new_flags (Results 1 – 4 of 4) sorted by relevance

/DragonOS/kernel/src/mm/
H A Dmadvise.rs16 let mut new_flags = *vma.vm_flags(); in do_madvise() localVariable
43 new_flags = new_flags & !VmFlags::VM_RAND_READ & !VmFlags::VM_SEQ_READ in do_madvise()
47 new_flags = (new_flags & !VmFlags::VM_RAND_READ) | VmFlags::VM_SEQ_READ in do_madvise()
50 new_flags = (new_flags & !VmFlags::VM_SEQ_READ) | VmFlags::VM_RAND_READ in do_madvise()
53 MadvFlags::MADV_DONTFORK => new_flags |= VmFlags::VM_DONTCOPY, in do_madvise()
59 new_flags &= !VmFlags::VM_DONTCOPY; in do_madvise()
64 new_flags |= VmFlags::VM_WIPEONFORK; in do_madvise()
67 MadvFlags::MADV_KEEPONFORK => new_flags &= !VmFlags::VM_WIPEONFORK, in do_madvise()
69 MadvFlags::MADV_DONTDUMP => new_flags |= VmFlags::VM_DONTDUMP, in do_madvise()
72 MadvFlags::MADV_DODUMP => new_flags &= !VmFlags::VM_DONTDUMP, in do_madvise()
[all …]
H A Dfault.rs446 let new_flags = entry.flags().set_write(true).set_dirty(true); in do_wp_page() localVariable
452 entry.set_flags(new_flags); in do_wp_page()
463 entry.set_flags(new_flags); in do_wp_page()
466 } else if let Some(flush) = mapper.map(address, new_flags) { in do_wp_page()
489 if let Some(flush) = mapper.map(address, new_flags) { in do_wp_page()
H A Dpage.rs627 let mut new_flags = entry.flags().set_write(false); in clone() localVariable
628 entry.set_flags(new_flags); in clone()
630 new_flags = new_flags.set_dirty(false); in clone()
631 entry.set_flags(new_flags); in clone()
H A Ducontext.rs664 let new_flags: EntryFlags<MMArch> = r_guard in mprotect() localVariable
669 r_guard.remap(new_flags, mapper, &mut *flusher)?; in mprotect()