tag | line | file | source code |
vma | 164 | arch/alpha/kernel/ptrace.c | struct vm_area_struct * vma, unsigned long addr) |
vma | 173 | arch/alpha/kernel/ptrace.c | pgdir = pgd_offset(vma->vm_mm, addr); |
vma | 175 | arch/alpha/kernel/ptrace.c | do_no_page(tsk, vma, addr, 0); |
vma | 185 | arch/alpha/kernel/ptrace.c | do_no_page(tsk, vma, addr, 0); |
vma | 195 | arch/alpha/kernel/ptrace.c | do_no_page(tsk, vma, addr, 0); |
vma | 215 | arch/alpha/kernel/ptrace.c | static void put_long(struct task_struct * tsk, struct vm_area_struct * vma, |
vma | 224 | arch/alpha/kernel/ptrace.c | pgdir = pgd_offset(vma->vm_mm, addr); |
vma | 226 | arch/alpha/kernel/ptrace.c | do_no_page(tsk, vma, addr, 1); |
vma | 236 | arch/alpha/kernel/ptrace.c | do_no_page(tsk, vma, addr, 1); |
vma | 246 | arch/alpha/kernel/ptrace.c | do_no_page(tsk, vma, addr, 1); |
vma | 251 | arch/alpha/kernel/ptrace.c | do_wp_page(tsk, vma, addr, 1); |
vma | 259 | arch/alpha/kernel/ptrace.c | set_pte(pgtable, pte_mkdirty(mk_pte(page, vma->vm_page_prot))); |
vma | 266 | arch/alpha/kernel/ptrace.c | struct vm_area_struct * vma; |
vma | 269 | arch/alpha/kernel/ptrace.c | vma = find_vma(tsk,addr); |
vma | 270 | arch/alpha/kernel/ptrace.c | if (!vma) |
vma | 272 | arch/alpha/kernel/ptrace.c | if (vma->vm_start <= addr) |
vma | 273 | arch/alpha/kernel/ptrace.c | return vma; |
vma | 274 | arch/alpha/kernel/ptrace.c | if (!(vma->vm_flags & VM_GROWSDOWN)) |
vma | 276 | arch/alpha/kernel/ptrace.c | if (vma->vm_end - addr > tsk->rlim[RLIMIT_STACK].rlim_cur) |
vma | 278 | arch/alpha/kernel/ptrace.c | vma->vm_offset -= vma->vm_start - addr; |
vma | 279 | arch/alpha/kernel/ptrace.c | vma->vm_start = addr; |
vma | 280 | arch/alpha/kernel/ptrace.c | return vma; |
vma | 290 | arch/alpha/kernel/ptrace.c | struct vm_area_struct * vma = find_extend_vma(tsk, addr); |
vma | 293 | arch/alpha/kernel/ptrace.c | if (!vma) { |
vma | 298 | arch/alpha/kernel/ptrace.c | struct vm_area_struct * vma_high = vma; |
vma | 301 | arch/alpha/kernel/ptrace.c | if (addr + sizeof(long) >= vma->vm_end) { |
vma | 302 | arch/alpha/kernel/ptrace.c | vma_high = vma->vm_next; |
vma | 303 | arch/alpha/kernel/ptrace.c | if (!vma_high || vma_high->vm_start != vma->vm_end) |
vma | 308 | arch/alpha/kernel/ptrace.c | low = get_long(tsk, vma, addr); |
vma | 318 | arch/alpha/kernel/ptrace.c | long l = get_long(tsk, vma, addr); |
vma | 333 | arch/alpha/kernel/ptrace.c | struct vm_area_struct * vma = find_extend_vma(tsk, addr); |
vma | 335 | arch/alpha/kernel/ptrace.c | if (!vma) |
vma | 339 | arch/alpha/kernel/ptrace.c | struct vm_area_struct * vma_high = vma; |
vma | 341 | arch/alpha/kernel/ptrace.c | if (addr + sizeof(long) >= vma->vm_end) { |
vma | 342 | arch/alpha/kernel/ptrace.c | vma_high = vma->vm_next; |
vma | 343 | arch/alpha/kernel/ptrace.c | if (!vma_high || vma_high->vm_start != vma->vm_end) |
vma | 348 | arch/alpha/kernel/ptrace.c | low = get_long(tsk, vma, addr); |
vma | 354 | arch/alpha/kernel/ptrace.c | put_long(tsk, vma, addr, low); |
vma | 357 | arch/alpha/kernel/ptrace.c | put_long(tsk, vma, addr, data); |
vma | 49 | arch/alpha/mm/fault.c | struct vm_area_struct * vma; |
vma | 51 | arch/alpha/mm/fault.c | vma = find_vma(current, address); |
vma | 52 | arch/alpha/mm/fault.c | if (!vma) |
vma | 54 | arch/alpha/mm/fault.c | if (vma->vm_start <= address) |
vma | 56 | arch/alpha/mm/fault.c | if (!(vma->vm_flags & VM_GROWSDOWN)) |
vma | 58 | arch/alpha/mm/fault.c | if (vma->vm_end - address > current->rlim[RLIMIT_STACK].rlim_cur) |
vma | 60 | arch/alpha/mm/fault.c | vma->vm_offset -= vma->vm_start - (address & PAGE_MASK); |
vma | 61 | arch/alpha/mm/fault.c | vma->vm_start = (address & PAGE_MASK); |
vma | 68 | arch/alpha/mm/fault.c | if (!(vma->vm_flags & VM_EXEC)) |
vma | 72 | arch/alpha/mm/fault.c | if (!(vma->vm_flags & (VM_READ | VM_WRITE))) |
vma | 75 | arch/alpha/mm/fault.c | if (!(vma->vm_flags & VM_WRITE)) |
vma | 79 | arch/alpha/mm/fault.c | handle_mm_fault(vma, address, cause > 0); |
vma | 87 | arch/i386/kernel/ptrace.c | struct vm_area_struct * vma, unsigned long addr) |
vma | 95 | arch/i386/kernel/ptrace.c | pgdir = pgd_offset(vma->vm_mm, addr); |
vma | 97 | arch/i386/kernel/ptrace.c | do_no_page(tsk, vma, addr, 0); |
vma | 107 | arch/i386/kernel/ptrace.c | do_no_page(tsk, vma, addr, 0); |
vma | 117 | arch/i386/kernel/ptrace.c | do_no_page(tsk, vma, addr, 0); |
vma | 137 | arch/i386/kernel/ptrace.c | static void put_long(struct task_struct * tsk, struct vm_area_struct * vma, unsigned long addr, |
vma | 146 | arch/i386/kernel/ptrace.c | pgdir = pgd_offset(vma->vm_mm, addr); |
vma | 148 | arch/i386/kernel/ptrace.c | do_no_page(tsk, vma, addr, 1); |
vma | 158 | arch/i386/kernel/ptrace.c | do_no_page(tsk, vma, addr, 1); |
vma | 168 | arch/i386/kernel/ptrace.c | do_no_page(tsk, vma, addr, 1); |
vma | 173 | arch/i386/kernel/ptrace.c | do_wp_page(tsk, vma, addr, 1); |
vma | 181 | arch/i386/kernel/ptrace.c | set_pte(pgtable, pte_mkdirty(mk_pte(page, vma->vm_page_prot))); |
vma | 187 | arch/i386/kernel/ptrace.c | struct vm_area_struct * vma; |
vma | 190 | arch/i386/kernel/ptrace.c | vma = find_vma(tsk,addr); |
vma | 191 | arch/i386/kernel/ptrace.c | if (!vma) |
vma | 193 | arch/i386/kernel/ptrace.c | if (vma->vm_start <= addr) |
vma | 194 | arch/i386/kernel/ptrace.c | return vma; |
vma | 195 | arch/i386/kernel/ptrace.c | if (!(vma->vm_flags & VM_GROWSDOWN)) |
vma | 197 | arch/i386/kernel/ptrace.c | if (vma->vm_end - addr > tsk->rlim[RLIMIT_STACK].rlim_cur) |
vma | 199 | arch/i386/kernel/ptrace.c | vma->vm_offset -= vma->vm_start - addr; |
vma | 200 | arch/i386/kernel/ptrace.c | vma->vm_start = addr; |
vma | 201 | arch/i386/kernel/ptrace.c | return vma; |
vma | 211 | arch/i386/kernel/ptrace.c | struct vm_area_struct * vma = find_extend_vma(tsk, addr); |
vma | 213 | arch/i386/kernel/ptrace.c | if (!vma) |
vma | 217 | arch/i386/kernel/ptrace.c | struct vm_area_struct * vma_high = vma; |
vma | 219 | arch/i386/kernel/ptrace.c | if (addr + sizeof(long) >= vma->vm_end) { |
vma | 220 | arch/i386/kernel/ptrace.c | vma_high = vma->vm_next; |
vma | 221 | arch/i386/kernel/ptrace.c | if (!vma_high || vma_high->vm_start != vma->vm_end) |
vma | 224 | arch/i386/kernel/ptrace.c | low = get_long(tsk, vma, addr & ~(sizeof(long)-1)); |
vma | 242 | arch/i386/kernel/ptrace.c | *result = get_long(tsk, vma, addr); |
vma | 253 | arch/i386/kernel/ptrace.c | struct vm_area_struct * vma = find_extend_vma(tsk, addr); |
vma | 255 | arch/i386/kernel/ptrace.c | if (!vma) |
vma | 259 | arch/i386/kernel/ptrace.c | struct vm_area_struct * vma_high = vma; |
vma | 261 | arch/i386/kernel/ptrace.c | if (addr + sizeof(long) >= vma->vm_end) { |
vma | 262 | arch/i386/kernel/ptrace.c | vma_high = vma->vm_next; |
vma | 263 | arch/i386/kernel/ptrace.c | if (!vma_high || vma_high->vm_start != vma->vm_end) |
vma | 266 | arch/i386/kernel/ptrace.c | low = get_long(tsk, vma, addr & ~(sizeof(long)-1)); |
vma | 291 | arch/i386/kernel/ptrace.c | put_long(tsk, vma, addr & ~(sizeof(long)-1),low); |
vma | 294 | arch/i386/kernel/ptrace.c | put_long(tsk, vma, addr, data); |
vma | 36 | arch/i386/mm/fault.c | struct vm_area_struct * vma; |
vma | 42 | arch/i386/mm/fault.c | vma = find_vma(current, address); |
vma | 43 | arch/i386/mm/fault.c | if (!vma) |
vma | 45 | arch/i386/mm/fault.c | if (vma->vm_start <= address) |
vma | 47 | arch/i386/mm/fault.c | if (!(vma->vm_flags & VM_GROWSDOWN)) |
vma | 49 | arch/i386/mm/fault.c | if (vma->vm_end - address > current->rlim[RLIMIT_STACK].rlim_cur) |
vma | 61 | arch/i386/mm/fault.c | vma->vm_offset -= vma->vm_start - (address & PAGE_MASK); |
vma | 62 | arch/i386/mm/fault.c | vma->vm_start = (address & PAGE_MASK); |
vma | 72 | arch/i386/mm/fault.c | if (!(vma->vm_flags & VM_WRITE)) |
vma | 78 | arch/i386/mm/fault.c | if (!(vma->vm_flags & (VM_READ | VM_EXEC))) |
vma | 94 | arch/i386/mm/fault.c | do_wp_page(current, vma, address, error_code & 2); |
vma | 97 | arch/i386/mm/fault.c | do_no_page(current, vma, address, error_code & 2); |
vma | 85 | arch/mips/kernel/ptrace.c | static unsigned long get_long(struct vm_area_struct * vma, unsigned long addr) |
vma | 92 | arch/mips/kernel/ptrace.c | pgdir = PAGE_DIR_OFFSET(vma->vm_mm, addr); |
vma | 94 | arch/mips/kernel/ptrace.c | do_no_page(vma, addr, 0); |
vma | 104 | arch/mips/kernel/ptrace.c | do_no_page(vma, addr, 0); |
vma | 124 | arch/mips/kernel/ptrace.c | static void put_long(struct vm_area_struct * vma, unsigned long addr, |
vma | 132 | arch/mips/kernel/ptrace.c | pgdir = PAGE_DIR_OFFSET(vma->vm_mm, addr); |
vma | 134 | arch/mips/kernel/ptrace.c | do_no_page(vma, addr, 1); |
vma | 144 | arch/mips/kernel/ptrace.c | do_no_page(vma, addr, 1); |
vma | 149 | arch/mips/kernel/ptrace.c | do_wp_page(vma, addr, 1); |
vma | 159 | arch/mips/kernel/ptrace.c | set_pte(pgtable, pte_mkdirty(mk_pte(page, vma->vm_page_prot))); |
vma | 165 | arch/mips/kernel/ptrace.c | struct vm_area_struct * vma; |
vma | 168 | arch/mips/kernel/ptrace.c | vma = find_vma(tsk, addr); |
vma | 169 | arch/mips/kernel/ptrace.c | if (!vma) |
vma | 171 | arch/mips/kernel/ptrace.c | if (vma->vm_start <= addr) |
vma | 172 | arch/mips/kernel/ptrace.c | return vma; |
vma | 173 | arch/mips/kernel/ptrace.c | if (!(vma->vm_flags & VM_GROWSDOWN)) |
vma | 175 | arch/mips/kernel/ptrace.c | if (vma->vm_end - addr > tsk->rlim[RLIMIT_STACK].rlim_cur) |
vma | 177 | arch/mips/kernel/ptrace.c | vma->vm_offset -= vma->vm_start - addr; |
vma | 178 | arch/mips/kernel/ptrace.c | vma->vm_start = addr; |
vma | 179 | arch/mips/kernel/ptrace.c | return vma; |
vma | 189 | arch/mips/kernel/ptrace.c | struct vm_area_struct * vma = find_extend_vma(tsk, addr); |
vma | 191 | arch/mips/kernel/ptrace.c | if (!vma) |
vma | 195 | arch/mips/kernel/ptrace.c | struct vm_area_struct * vma_high = vma; |
vma | 197 | arch/mips/kernel/ptrace.c | if (addr + sizeof(long) >= vma->vm_end) { |
vma | 198 | arch/mips/kernel/ptrace.c | vma_high = vma->vm_next; |
vma | 199 | arch/mips/kernel/ptrace.c | if (!vma_high || vma_high->vm_start != vma->vm_end) |
vma | 202 | arch/mips/kernel/ptrace.c | low = get_long(vma, addr & ~(sizeof(long)-1)); |
vma | 220 | arch/mips/kernel/ptrace.c | *result = get_long(vma, addr); |
vma | 231 | arch/mips/kernel/ptrace.c | struct vm_area_struct * vma = find_extend_vma(tsk, addr); |
vma | 233 | arch/mips/kernel/ptrace.c | if (!vma) |
vma | 237 | arch/mips/kernel/ptrace.c | struct vm_area_struct * vma_high = vma; |
vma | 239 | arch/mips/kernel/ptrace.c | if (addr + sizeof(long) >= vma->vm_end) { |
vma | 240 | arch/mips/kernel/ptrace.c | vma_high = vma->vm_next; |
vma | 241 | arch/mips/kernel/ptrace.c | if (!vma_high || vma_high->vm_start != vma->vm_end) |
vma | 244 | arch/mips/kernel/ptrace.c | low = get_long(vma, addr & ~(sizeof(long)-1)); |
vma | 269 | arch/mips/kernel/ptrace.c | put_long(vma, addr & ~(sizeof(long)-1),low); |
vma | 272 | arch/mips/kernel/ptrace.c | put_long(vma, addr, data); |
vma | 39 | arch/mips/mm/fault.c | struct vm_area_struct * vma; |
vma | 47 | arch/mips/mm/fault.c | for (vma = current->mm->mmap ; ; vma = vma->vm_next) { |
vma | 48 | arch/mips/mm/fault.c | if (!vma) |
vma | 50 | arch/mips/mm/fault.c | if (vma->vm_end > address) |
vma | 53 | arch/mips/mm/fault.c | if (vma->vm_start <= address) |
vma | 55 | arch/mips/mm/fault.c | if (!(vma->vm_flags & VM_GROWSDOWN)) |
vma | 57 | arch/mips/mm/fault.c | if (vma->vm_end - address > current->rlim[RLIMIT_STACK].rlim_cur) |
vma | 59 | arch/mips/mm/fault.c | vma->vm_offset -= vma->vm_start - (address & PAGE_MASK); |
vma | 60 | arch/mips/mm/fault.c | vma->vm_start = (address & PAGE_MASK); |
vma | 70 | arch/mips/mm/fault.c | if (!(vma->vm_flags & VM_WRITE)) |
vma | 76 | arch/mips/mm/fault.c | if (!(vma->vm_flags & (VM_READ | VM_EXEC))) |
vma | 80 | arch/mips/mm/fault.c | do_wp_page(vma, address, error_code & 2); |
vma | 83 | arch/mips/mm/fault.c | do_no_page(vma, address, error_code & 2); |
vma | 130 | arch/sparc/mm/fault.c | struct vm_area_struct *vma; |
vma | 141 | arch/sparc/mm/fault.c | vma = find_vma(current, address); |
vma | 142 | arch/sparc/mm/fault.c | if(!vma) { |
vma | 145 | arch/sparc/mm/fault.c | if(vma->vm_start <= address) |
vma | 154 | arch/sparc/mm/fault.c | handle_mm_fault(vma, address, 0); |
vma | 194 | arch/sparc/mm/fault.c | struct vm_area_struct *vma; |
vma | 205 | arch/sparc/mm/fault.c | vma = find_vma(current, address); |
vma | 206 | arch/sparc/mm/fault.c | if(!vma) { |
vma | 212 | arch/sparc/mm/fault.c | if(vma->vm_start <= address) |
vma | 215 | arch/sparc/mm/fault.c | if(!(vma->vm_flags & VM_GROWSDOWN)) { |
vma | 218 | arch/sparc/mm/fault.c | if(vma->vm_end - address > current->rlim[RLIMIT_STACK].rlim_cur) { |
vma | 222 | arch/sparc/mm/fault.c | vma->vm_offset -= vma->vm_start - (address & PAGE_MASK); |
vma | 223 | arch/sparc/mm/fault.c | vma->vm_start = (address & PAGE_MASK); |
vma | 235 | arch/sparc/mm/fault.c | if(!(vma->vm_flags & VM_WRITE)) { |
vma | 248 | arch/sparc/mm/fault.c | if(!(vma->vm_flags & (VM_READ | VM_EXEC))) { |
vma | 263 | arch/sparc/mm/fault.c | (unsigned long) vma, (unsigned long) address, |
vma | 266 | arch/sparc/mm/fault.c | handle_mm_fault(vma, address, error_code); |
vma | 362 | arch/sparc/mm/fault.c | struct vm_area_struct *vma; |
vma | 401 | arch/sparc/mm/fault.c | vma = find_vma(current, address); |
vma | 402 | arch/sparc/mm/fault.c | if(!vma) { |
vma | 405 | arch/sparc/mm/fault.c | if(vma->vm_start <= address) |
vma | 414 | arch/sparc/mm/fault.c | do_no_page(vma, address, 0); |
vma | 440 | arch/sparc/mm/fault.c | struct vm_area_struct *vma; |
vma | 470 | arch/sparc/mm/fault.c | vma = find_vma(current, address); |
vma | 471 | arch/sparc/mm/fault.c | if(!vma) { |
vma | 477 | arch/sparc/mm/fault.c | if(vma->vm_start <= address) |
vma | 480 | arch/sparc/mm/fault.c | if(!(vma->vm_flags & VM_GROWSDOWN)) { |
vma | 483 | arch/sparc/mm/fault.c | if(vma->vm_end - address > current->rlim[RLIMIT_STACK].rlim_cur) { |
vma | 487 | arch/sparc/mm/fault.c | vma->vm_offset -= vma->vm_start - (address & PAGE_MASK); |
vma | 488 | arch/sparc/mm/fault.c | vma->vm_start = (address & PAGE_MASK); |
vma | 500 | arch/sparc/mm/fault.c | if(!(vma->vm_flags & VM_WRITE)) { |
vma | 513 | arch/sparc/mm/fault.c | if(!(vma->vm_flags & (VM_READ | VM_EXEC))) { |
vma | 528 | arch/sparc/mm/fault.c | (unsigned long) vma, (unsigned long) address, |
vma | 531 | arch/sparc/mm/fault.c | do_no_page(vma, address, error_code); |
vma | 95 | drivers/char/mem.c | static int mmap_mem(struct inode * inode, struct file * file, struct vm_area_struct * vma) |
vma | 97 | drivers/char/mem.c | if (vma->vm_offset & ~PAGE_MASK) |
vma | 106 | drivers/char/mem.c | if (x86 > 3 && vma->vm_offset >= high_memory) |
vma | 107 | drivers/char/mem.c | pgprot_val(vma->vm_page_prot) |= _PAGE_PCD; |
vma | 109 | drivers/char/mem.c | if (remap_page_range(vma->vm_start, vma->vm_offset, vma->vm_end - vma->vm_start, vma->vm_page_prot)) |
vma | 111 | drivers/char/mem.c | vma->vm_inode = inode; |
vma | 179 | drivers/char/mem.c | static int mmap_zero(struct inode * inode, struct file * file, struct vm_area_struct * vma) |
vma | 181 | drivers/char/mem.c | if (vma->vm_flags & VM_SHARED) |
vma | 183 | drivers/char/mem.c | if (zeromap_page_range(vma->vm_start, vma->vm_end - vma->vm_start, vma->vm_page_prot)) |
vma | 852 | fs/binfmt_elf.c | static inline int maydump(struct vm_area_struct *vma) |
vma | 855 | fs/binfmt_elf.c | if (vma->vm_flags & (VM_WRITE|VM_GROWSUP|VM_GROWSDOWN)) |
vma | 857 | fs/binfmt_elf.c | if (vma->vm_flags & (VM_READ|VM_EXEC|VM_EXECUTABLE|VM_SHARED)) |
vma | 953 | fs/binfmt_elf.c | struct vm_area_struct *vma; |
vma | 974 | fs/binfmt_elf.c | for(vma = current->mm->mmap; vma != NULL; vma = vma->vm_next) { |
vma | 975 | fs/binfmt_elf.c | int sz = vma->vm_end-vma->vm_start; |
vma | 977 | fs/binfmt_elf.c | if (!maydump(vma)) |
vma | 1157 | fs/binfmt_elf.c | for(vma = current->mm->mmap, i = 0; |
vma | 1158 | fs/binfmt_elf.c | i < segs && vma != NULL; vma = vma->vm_next) { |
vma | 1162 | fs/binfmt_elf.c | if (!maydump(vma)) |
vma | 1166 | fs/binfmt_elf.c | sz = vma->vm_end - vma->vm_start; |
vma | 1170 | fs/binfmt_elf.c | phdr.p_vaddr = vma->vm_start; |
vma | 1175 | fs/binfmt_elf.c | phdr.p_flags = vma->vm_flags & VM_READ ? PF_R : 0; |
vma | 1176 | fs/binfmt_elf.c | if (vma->vm_flags & VM_WRITE) phdr.p_flags |= PF_W; |
vma | 1177 | fs/binfmt_elf.c | if (vma->vm_flags & VM_EXEC) phdr.p_flags |= PF_X; |
vma | 1191 | fs/binfmt_elf.c | for(i = 0, vma = current->mm->mmap; |
vma | 1192 | fs/binfmt_elf.c | i < segs && vma != NULL; |
vma | 1193 | fs/binfmt_elf.c | vma = vma->vm_next) { |
vma | 1194 | fs/binfmt_elf.c | unsigned long addr = vma->vm_start; |
vma | 1195 | fs/binfmt_elf.c | unsigned long len = vma->vm_end - vma->vm_start; |
vma | 1197 | fs/binfmt_elf.c | if (!maydump(vma)) |
vma | 91 | fs/msdos/mmap.c | int msdos_mmap(struct inode * inode, struct file * file, struct vm_area_struct * vma) |
vma | 93 | fs/msdos/mmap.c | if (vma->vm_flags & VM_SHARED) /* only PAGE_COW or read-only supported now */ |
vma | 95 | fs/msdos/mmap.c | if (vma->vm_offset & (inode->i_sb->s_blocksize - 1)) |
vma | 104 | fs/msdos/mmap.c | vma->vm_inode = inode; |
vma | 106 | fs/msdos/mmap.c | vma->vm_ops = &msdos_file_mmap; |
vma | 31 | fs/namei.c | struct vm_area_struct * vma; |
vma | 35 | fs/namei.c | vma = find_vma(current, address); |
vma | 36 | fs/namei.c | if (!vma || vma->vm_start > address || !(vma->vm_flags & VM_READ)) |
vma | 38 | fs/namei.c | address = vma->vm_end - address; |
vma | 41 | fs/namei.c | if (vma->vm_next && vma->vm_next->vm_start == vma->vm_end && |
vma | 42 | fs/namei.c | (vma->vm_next->vm_flags & VM_READ)) |
vma | 95 | fs/nfs/mmap.c | int nfs_mmap(struct inode * inode, struct file * file, struct vm_area_struct * vma) |
vma | 97 | fs/nfs/mmap.c | if (vma->vm_flags & VM_SHARED) /* only PAGE_COW or read-only supported now */ |
vma | 106 | fs/nfs/mmap.c | vma->vm_inode = inode; |
vma | 108 | fs/nfs/mmap.c | vma->vm_ops = &nfs_file_mmap; |
vma | 453 | fs/proc/array.c | struct vm_area_struct *vma = tsk->mm->mmap; |
vma | 454 | fs/proc/array.c | while (vma) { |
vma | 455 | fs/proc/array.c | vsize += vma->vm_end - vma->vm_start; |
vma | 456 | fs/proc/array.c | vma = vma->vm_next; |
vma | 612 | fs/proc/array.c | struct vm_area_struct * vma = tsk->mm->mmap; |
vma | 614 | fs/proc/array.c | while (vma) { |
vma | 615 | fs/proc/array.c | pgd_t *pgd = pgd_offset(tsk->mm, vma->vm_start); |
vma | 618 | fs/proc/array.c | statm_pgd_range(pgd, vma->vm_start, vma->vm_end, &pages, &shared, &dirty, &total); |
vma | 623 | fs/proc/array.c | if (vma->vm_flags & VM_EXECUTABLE) |
vma | 625 | fs/proc/array.c | else if (vma->vm_flags & VM_GROWSDOWN) |
vma | 627 | fs/proc/array.c | else if (vma->vm_end > 0x60000000) |
vma | 631 | fs/proc/array.c | vma = vma->vm_next; |
vma | 103 | fs/proc/link.c | struct vm_area_struct * vma; |
vma | 106 | fs/proc/link.c | vma = p->mm->mmap; |
vma | 107 | fs/proc/link.c | while (vma) { |
vma | 108 | fs/proc/link.c | if (vma->vm_flags & VM_EXECUTABLE) { |
vma | 109 | fs/proc/link.c | new_inode = vma->vm_inode; |
vma | 112 | fs/proc/link.c | vma = vma->vm_next; |
vma | 28 | fs/proc/mem.c | struct vm_area_struct *vma; |
vma | 31 | fs/proc/mem.c | vma = find_vma(tsk, addr); |
vma | 32 | fs/proc/mem.c | if (!vma) |
vma | 34 | fs/proc/mem.c | if (vma->vm_start > addr) |
vma | 36 | fs/proc/mem.c | if (!(vma->vm_flags & VM_READ)) |
vma | 38 | fs/proc/mem.c | while ((retval = vma->vm_end - addr) < count) { |
vma | 39 | fs/proc/mem.c | struct vm_area_struct *next = vma->vm_next; |
vma | 42 | fs/proc/mem.c | if (vma->vm_end != next->vm_start) |
vma | 46 | fs/proc/mem.c | vma = next; |
vma | 204 | fs/proc/mem.c | struct vm_area_struct * vma) |
vma | 232 | fs/proc/mem.c | stmp = vma->vm_offset; |
vma | 233 | fs/proc/mem.c | while (stmp < vma->vm_offset + (vma->vm_end - vma->vm_start)) { |
vma | 267 | fs/proc/mem.c | stmp = vma->vm_offset; |
vma | 268 | fs/proc/mem.c | dtmp = vma->vm_start; |
vma | 270 | fs/proc/mem.c | while (dtmp < vma->vm_end) { |
vma | 289 | fs/proc/mem.c | if ((vma->vm_flags & VM_WRITE) && !pte_write(*src_table)) |
vma | 100 | fs/smbfs/mmap.c | smb_mmap(struct inode * inode, struct file * file, struct vm_area_struct * vma) |
vma | 105 | fs/smbfs/mmap.c | if (vma->vm_flags & VM_SHARED) |
vma | 114 | fs/smbfs/mmap.c | vma->vm_inode = inode; |
vma | 116 | fs/smbfs/mmap.c | vma->vm_ops = &smb_file_mmap; |
vma | 547 | fs/super.c | struct vm_area_struct * vma; |
vma | 553 | fs/super.c | vma = find_vma(current, (unsigned long) data); |
vma | 554 | fs/super.c | if (!vma || (unsigned long) data < vma->vm_start) |
vma | 556 | fs/super.c | i = vma->vm_end - (unsigned long) data; |
vma | 401 | include/asm-alpha/pgtable.h | extern inline void update_mmu_cache(struct vm_area_struct * vma, |
vma | 341 | include/asm-i386/pgtable.h | extern inline void update_mmu_cache(struct vm_area_struct * vma, |
vma | 327 | include/asm-sparc/pgtable.h | extern inline void update_mmu_cache(struct vm_area_struct * vma, |
vma | 184 | include/linux/mm.h | extern int copy_page_range(struct mm_struct *dst, struct mm_struct *src, struct vm_area_struct *vma); |
vma | 189 | include/linux/mm.h | extern void handle_mm_fault(struct vm_area_struct *vma, unsigned long address, int write_access); |
vma | 190 | include/linux/mm.h | extern void do_wp_page(struct task_struct * tsk, struct vm_area_struct * vma, unsigned long address, int write_access); |
vma | 191 | include/linux/mm.h | extern void do_no_page(struct task_struct * tsk, struct vm_area_struct * vma, unsigned long address, int write_access); |
vma | 117 | include/linux/nfs_fs.h | extern int nfs_mmap(struct inode * inode, struct file * file, struct vm_area_struct * vma); |
vma | 180 | include/linux/smb_fs.h | int smb_mmap(struct inode * inode, struct file * file, struct vm_area_struct * vma); |
vma | 74 | mm/filemap.c | static int filemap_write_page(struct vm_area_struct * vma, |
vma | 95 | mm/filemap.c | inode = vma->vm_inode; |
vma | 135 | mm/filemap.c | int filemap_swapout(struct vm_area_struct * vma, |
vma | 145 | mm/filemap.c | error = filemap_write_page(vma, offset, page); |
vma | 157 | mm/filemap.c | static pte_t filemap_swapin(struct vm_area_struct * vma, |
vma | 165 | mm/filemap.c | return mk_pte(page,vma->vm_page_prot); |
vma | 169 | mm/filemap.c | static inline int filemap_sync_pte(pte_t * ptep, struct vm_area_struct *vma, |
vma | 199 | mm/filemap.c | error = filemap_write_page(vma, address - vma->vm_start + vma->vm_offset, page); |
vma | 206 | mm/filemap.c | struct vm_area_struct *vma, unsigned long offset, unsigned int flags) |
vma | 227 | mm/filemap.c | error |= filemap_sync_pte(pte, vma, address + offset, flags); |
vma | 236 | mm/filemap.c | struct vm_area_struct *vma, unsigned int flags) |
vma | 257 | mm/filemap.c | error |= filemap_sync_pte_range(pmd, address, end - address, vma, offset, flags); |
vma | 264 | mm/filemap.c | static int filemap_sync(struct vm_area_struct * vma, unsigned long address, |
vma | 273 | mm/filemap.c | error |= filemap_sync_pmd_range(dir, address, end - address, vma, flags); |
vma | 284 | mm/filemap.c | static void filemap_unmap(struct vm_area_struct *vma, unsigned long start, size_t len) |
vma | 286 | mm/filemap.c | filemap_sync(vma, start, len, MS_ASYNC); |
vma | 327 | mm/filemap.c | int generic_mmap(struct inode * inode, struct file * file, struct vm_area_struct * vma) |
vma | 331 | mm/filemap.c | if ((vma->vm_flags & VM_SHARED) && (vma->vm_flags & VM_MAYWRITE)) { |
vma | 335 | mm/filemap.c | if (vma->vm_offset & (PAGE_SIZE - 1)) |
vma | 339 | mm/filemap.c | if (vma->vm_offset & (inode->i_sb->s_blocksize - 1)) |
vma | 350 | mm/filemap.c | vma->vm_inode = inode; |
vma | 352 | mm/filemap.c | vma->vm_ops = ops; |
vma | 361 | mm/filemap.c | static int msync_interval(struct vm_area_struct * vma, |
vma | 364 | mm/filemap.c | if (!vma->vm_inode) |
vma | 366 | mm/filemap.c | if (vma->vm_ops->sync) { |
vma | 368 | mm/filemap.c | error = vma->vm_ops->sync(vma, start, end-start, flags); |
vma | 372 | mm/filemap.c | return file_fsync(vma->vm_inode, NULL); |
vma | 381 | mm/filemap.c | struct vm_area_struct * vma; |
vma | 398 | mm/filemap.c | vma = find_vma(current, start); |
vma | 402 | mm/filemap.c | if (!vma) |
vma | 405 | mm/filemap.c | if (start < vma->vm_start) { |
vma | 407 | mm/filemap.c | start = vma->vm_start; |
vma | 410 | mm/filemap.c | if (end <= vma->vm_end) { |
vma | 412 | mm/filemap.c | error = msync_interval(vma, start, end, flags); |
vma | 419 | mm/filemap.c | error = msync_interval(vma, start, vma->vm_end, flags); |
vma | 422 | mm/filemap.c | start = vma->vm_end; |
vma | 423 | mm/filemap.c | vma = vma->vm_next; |
vma | 273 | mm/memory.c | struct vm_area_struct *vma) |
vma | 276 | mm/memory.c | unsigned long address = vma->vm_start; |
vma | 277 | mm/memory.c | unsigned long end = vma->vm_end; |
vma | 574 | mm/memory.c | void do_wp_page(struct task_struct * tsk, struct vm_area_struct * vma, |
vma | 583 | mm/memory.c | page_dir = pgd_offset(vma->vm_mm, address); |
vma | 609 | mm/memory.c | ++vma->vm_mm->rss; |
vma | 611 | mm/memory.c | set_pte(page_table, pte_mkwrite(pte_mkdirty(mk_pte(new_page, vma->vm_page_prot)))); |
vma | 649 | mm/memory.c | struct vm_area_struct * vma; |
vma | 659 | mm/memory.c | vma = find_vma(current, start); |
vma | 660 | mm/memory.c | if (!vma) |
vma | 662 | mm/memory.c | if (vma->vm_start <= start) |
vma | 664 | mm/memory.c | if (!(vma->vm_flags & VM_GROWSDOWN)) |
vma | 666 | mm/memory.c | if (vma->vm_end - start > current->rlim[RLIMIT_STACK].rlim_cur) |
vma | 674 | mm/memory.c | if (!(vma->vm_flags & VM_READ)) |
vma | 676 | mm/memory.c | if (vma->vm_end - start >= size) |
vma | 678 | mm/memory.c | next = vma->vm_next; |
vma | 679 | mm/memory.c | if (!next || vma->vm_end != next->vm_start) |
vma | 681 | mm/memory.c | vma = next; |
vma | 685 | mm/memory.c | if (!(vma->vm_flags & VM_WRITE)) |
vma | 690 | mm/memory.c | if (vma->vm_end - start >= size) |
vma | 692 | mm/memory.c | if (!vma->vm_next || vma->vm_end != vma->vm_next->vm_start) |
vma | 694 | mm/memory.c | vma = vma->vm_next; |
vma | 695 | mm/memory.c | if (!(vma->vm_flags & VM_WRITE)) |
vma | 707 | mm/memory.c | do_wp_page(current, vma, start, 1); |
vma | 712 | mm/memory.c | if (start < vma->vm_end) |
vma | 714 | mm/memory.c | vma = vma->vm_next; |
vma | 715 | mm/memory.c | if (!vma || vma->vm_start != start) |
vma | 717 | mm/memory.c | if (!(vma->vm_flags & VM_WRITE)) |
vma | 726 | mm/memory.c | static inline void get_empty_page(struct task_struct * tsk, struct vm_area_struct * vma, pte_t * page_table) |
vma | 735 | mm/memory.c | put_page(page_table, pte_mkwrite(mk_pte(tmp, vma->vm_page_prot))); |
vma | 908 | mm/memory.c | static int unshare(struct vm_area_struct *vma, unsigned long address, unsigned long new_page) |
vma | 916 | mm/memory.c | page_dir = pgd_offset(vma->vm_mm, address); |
vma | 1034 | mm/memory.c | struct vm_area_struct * vma, unsigned long address, |
vma | 1039 | mm/memory.c | if (!vma->vm_ops || !vma->vm_ops->swapin) { |
vma | 1040 | mm/memory.c | swap_in(tsk, vma, page_table, pte_val(entry), write_access); |
vma | 1043 | mm/memory.c | page = vma->vm_ops->swapin(vma, address - vma->vm_start + vma->vm_offset, pte_val(entry)); |
vma | 1048 | mm/memory.c | if (mem_map[MAP_NR(pte_page(page))].count > 1 && !(vma->vm_flags & VM_SHARED)) |
vma | 1050 | mm/memory.c | ++vma->vm_mm->rss; |
vma | 1062 | mm/memory.c | void do_no_page(struct task_struct * tsk, struct vm_area_struct * vma, |
vma | 1076 | mm/memory.c | do_swap_page(tsk, vma, address, page_table, entry, write_access); |
vma | 1080 | mm/memory.c | if (!vma->vm_ops || !vma->vm_ops->nopage) { |
vma | 1081 | mm/memory.c | ++vma->vm_mm->rss; |
vma | 1083 | mm/memory.c | get_empty_page(tsk, vma, page_table); |
vma | 1087 | mm/memory.c | if (share_page(vma, address, write_access, page)) { |
vma | 1088 | mm/memory.c | ++vma->vm_mm->rss; |
vma | 1098 | mm/memory.c | ++vma->vm_mm->rss; |
vma | 1104 | mm/memory.c | page = vma->vm_ops->nopage(vma, address, page, |
vma | 1105 | mm/memory.c | write_access && !(vma->vm_flags & VM_SHARED)); |
vma | 1106 | mm/memory.c | if (share_page(vma, address, write_access, 0)) { |
vma | 1120 | mm/memory.c | entry = mk_pte(page, vma->vm_page_prot); |
vma | 1123 | mm/memory.c | } else if (mem_map[MAP_NR(page)].count > 1 && !(vma->vm_flags & VM_SHARED)) |
vma | 1141 | mm/memory.c | static inline void handle_pte_fault(struct vm_area_struct * vma, unsigned long address, |
vma | 1145 | mm/memory.c | do_no_page(current, vma, address, write_access); |
vma | 1155 | mm/memory.c | do_wp_page(current, vma, address, write_access); |
vma | 1158 | mm/memory.c | void handle_mm_fault(struct vm_area_struct * vma, unsigned long address, |
vma | 1165 | mm/memory.c | pgd = pgd_offset(vma->vm_mm, address); |
vma | 1172 | mm/memory.c | handle_pte_fault(vma, address, write_access, pte); |
vma | 1173 | mm/memory.c | update_mmu_cache(vma, address, *pte); |
vma | 48 | mm/mmap.c | struct vm_area_struct * vma; |
vma | 111 | mm/mmap.c | vma = (struct vm_area_struct *)kmalloc(sizeof(struct vm_area_struct), |
vma | 113 | mm/mmap.c | if (!vma) |
vma | 116 | mm/mmap.c | vma->vm_mm = current->mm; |
vma | 117 | mm/mmap.c | vma->vm_start = addr; |
vma | 118 | mm/mmap.c | vma->vm_end = addr + len; |
vma | 119 | mm/mmap.c | vma->vm_flags = prot & (VM_READ | VM_WRITE | VM_EXEC); |
vma | 120 | mm/mmap.c | vma->vm_flags |= flags & (VM_GROWSDOWN | VM_DENYWRITE | VM_EXECUTABLE); |
vma | 124 | mm/mmap.c | vma->vm_flags |= VM_MAYREAD | VM_MAYWRITE | VM_MAYEXEC; |
vma | 126 | mm/mmap.c | vma->vm_flags |= VM_SHARED | VM_MAYSHARE; |
vma | 138 | mm/mmap.c | vma->vm_flags &= ~(VM_MAYWRITE | VM_SHARED); |
vma | 141 | mm/mmap.c | vma->vm_flags |= VM_MAYREAD | VM_MAYWRITE | VM_MAYEXEC; |
vma | 142 | mm/mmap.c | vma->vm_page_prot = protection_map[vma->vm_flags & 0x0f]; |
vma | 143 | mm/mmap.c | vma->vm_ops = NULL; |
vma | 144 | mm/mmap.c | vma->vm_offset = off; |
vma | 145 | mm/mmap.c | vma->vm_inode = NULL; |
vma | 146 | mm/mmap.c | vma->vm_pte = 0; |
vma | 151 | mm/mmap.c | error = file->f_op->mmap(file->f_inode, file, vma); |
vma | 153 | mm/mmap.c | error = anon_map(NULL, NULL, vma); |
vma | 156 | mm/mmap.c | kfree(vma); |
vma | 159 | mm/mmap.c | insert_vm_struct(current, vma); |
vma | 160 | mm/mmap.c | merge_segments(current, vma->vm_start, vma->vm_end); |
vma | 232 | mm/mmap.c | struct vm_area_struct * vma; |
vma | 236 | mm/mmap.c | for (vma = task->mm->mmap ; ; vma = vma->vm_next) { |
vma | 237 | mm/mmap.c | if (!vma) |
vma | 239 | mm/mmap.c | if (vma->vm_end > addr) |
vma | 240 | mm/mmap.c | return vma; |
vma | 266 | mm/mmap.c | struct vm_area_struct * vma; |
vma | 269 | mm/mmap.c | for (vma = task->mm->mmap; vma; vma = vma->vm_next) { |
vma | 270 | mm/mmap.c | if (end_addr <= vma->vm_start) |
vma | 272 | mm/mmap.c | if (start_addr < vma->vm_end) |
vma | 273 | mm/mmap.c | return vma; |
vma | 277 | mm/mmap.c | vma = find_vma(task,start_addr); |
vma | 278 | mm/mmap.c | if (!vma || end_addr <= vma->vm_start) |
vma | 280 | mm/mmap.c | return vma; |
vma | 518 | mm/mmap.c | static void printk_list (struct vm_area_struct * vma) |
vma | 521 | mm/mmap.c | while (vma) { |
vma | 522 | mm/mmap.c | printk("%08lX-%08lX", vma->vm_start, vma->vm_end); |
vma | 523 | mm/mmap.c | vma = vma->vm_next; |
vma | 524 | mm/mmap.c | if (!vma) |
vma | 783 | mm/mmap.c | struct vm_area_struct * vma; |
vma | 786 | mm/mmap.c | for (vma = mm->mmap; vma; vma = vma->vm_next) |
vma | 787 | mm/mmap.c | avl_insert(vma, &mm->mmap_avl); |
vma | 966 | mm/mmap.c | static int anon_map(struct inode *ino, struct file * file, struct vm_area_struct * vma) |
vma | 968 | mm/mmap.c | if (zeromap_page_range(vma->vm_start, vma->vm_end - vma->vm_start, vma->vm_page_prot)) |
vma | 86 | mm/mprotect.c | static inline int mprotect_fixup_all(struct vm_area_struct * vma, |
vma | 89 | mm/mprotect.c | vma->vm_flags = newflags; |
vma | 90 | mm/mprotect.c | vma->vm_page_prot = prot; |
vma | 94 | mm/mprotect.c | static inline int mprotect_fixup_start(struct vm_area_struct * vma, |
vma | 103 | mm/mprotect.c | *n = *vma; |
vma | 104 | mm/mprotect.c | vma->vm_start = end; |
vma | 106 | mm/mprotect.c | vma->vm_offset += vma->vm_start - n->vm_start; |
vma | 117 | mm/mprotect.c | static inline int mprotect_fixup_end(struct vm_area_struct * vma, |
vma | 126 | mm/mprotect.c | *n = *vma; |
vma | 127 | mm/mprotect.c | vma->vm_end = start; |
vma | 129 | mm/mprotect.c | n->vm_offset += n->vm_start - vma->vm_start; |
vma | 140 | mm/mprotect.c | static inline int mprotect_fixup_middle(struct vm_area_struct * vma, |
vma | 154 | mm/mprotect.c | *left = *vma; |
vma | 155 | mm/mprotect.c | *right = *vma; |
vma | 157 | mm/mprotect.c | vma->vm_start = start; |
vma | 158 | mm/mprotect.c | vma->vm_end = end; |
vma | 160 | mm/mprotect.c | vma->vm_offset += vma->vm_start - left->vm_start; |
vma | 162 | mm/mprotect.c | vma->vm_flags = newflags; |
vma | 163 | mm/mprotect.c | vma->vm_page_prot = prot; |
vma | 164 | mm/mprotect.c | if (vma->vm_inode) |
vma | 165 | mm/mprotect.c | vma->vm_inode->i_count += 2; |
vma | 166 | mm/mprotect.c | if (vma->vm_ops && vma->vm_ops->open) { |
vma | 167 | mm/mprotect.c | vma->vm_ops->open(left); |
vma | 168 | mm/mprotect.c | vma->vm_ops->open(right); |
vma | 175 | mm/mprotect.c | static int mprotect_fixup(struct vm_area_struct * vma, |
vma | 181 | mm/mprotect.c | if (newflags == vma->vm_flags) |
vma | 184 | mm/mprotect.c | if (start == vma->vm_start) |
vma | 185 | mm/mprotect.c | if (end == vma->vm_end) |
vma | 186 | mm/mprotect.c | error = mprotect_fixup_all(vma, newflags, newprot); |
vma | 188 | mm/mprotect.c | error = mprotect_fixup_start(vma, end, newflags, newprot); |
vma | 189 | mm/mprotect.c | else if (end == vma->vm_end) |
vma | 190 | mm/mprotect.c | error = mprotect_fixup_end(vma, start, newflags, newprot); |
vma | 192 | mm/mprotect.c | error = mprotect_fixup_middle(vma, start, end, newflags, newprot); |
vma | 204 | mm/mprotect.c | struct vm_area_struct * vma, * next; |
vma | 217 | mm/mprotect.c | vma = find_vma(current, start); |
vma | 218 | mm/mprotect.c | if (!vma || vma->vm_start > start) |
vma | 226 | mm/mprotect.c | newflags = prot | (vma->vm_flags & ~(PROT_READ | PROT_WRITE | PROT_EXEC)); |
vma | 232 | mm/mprotect.c | if (vma->vm_end >= end) { |
vma | 233 | mm/mprotect.c | error = mprotect_fixup(vma, nstart, end, newflags); |
vma | 237 | mm/mprotect.c | tmp = vma->vm_end; |
vma | 238 | mm/mprotect.c | next = vma->vm_next; |
vma | 239 | mm/mprotect.c | error = mprotect_fixup(vma, nstart, tmp, newflags); |
vma | 243 | mm/mprotect.c | vma = next; |
vma | 244 | mm/mprotect.c | if (!vma || vma->vm_start != nstart) { |
vma | 375 | mm/swap.c | void swap_in(struct task_struct * tsk, struct vm_area_struct * vma, |
vma | 395 | mm/swap.c | vma->vm_mm->rss++; |
vma | 398 | mm/swap.c | set_pte(page_table, mk_pte(page, vma->vm_page_prot)); |
vma | 401 | mm/swap.c | set_pte(page_table, pte_mkwrite(pte_mkdirty(mk_pte(page, vma->vm_page_prot)))); |
vma | 417 | mm/swap.c | static inline int try_to_swap_out(struct task_struct * tsk, struct vm_area_struct* vma, |
vma | 448 | mm/swap.c | if (vma->vm_ops && vma->vm_ops->swapout) { |
vma | 450 | mm/swap.c | vma->vm_mm->rss--; |
vma | 451 | mm/swap.c | if (vma->vm_ops->swapout(vma, address - vma->vm_start + vma->vm_offset, page_table)) |
vma | 458 | mm/swap.c | vma->vm_mm->rss--; |
vma | 473 | mm/swap.c | vma->vm_mm->rss--; |
vma | 479 | mm/swap.c | vma->vm_mm->rss--; |
vma | 501 | mm/swap.c | static inline int swap_out_pmd(struct task_struct * tsk, struct vm_area_struct * vma, |
vma | 524 | mm/swap.c | result = try_to_swap_out(tsk, vma, address, pte, limit); |
vma | 533 | mm/swap.c | static inline int swap_out_pgd(struct task_struct * tsk, struct vm_area_struct * vma, |
vma | 554 | mm/swap.c | int result = swap_out_pmd(tsk, vma, pmd, address, end, limit); |
vma | 563 | mm/swap.c | static int swap_out_vma(struct task_struct * tsk, struct vm_area_struct * vma, |
vma | 570 | mm/swap.c | if (vma->vm_flags & VM_SHM) |
vma | 575 | mm/swap.c | if (vma->vm_flags & VM_DONTSWAP) |
vma | 578 | mm/swap.c | end = vma->vm_end; |
vma | 580 | mm/swap.c | int result = swap_out_pgd(tsk, vma, pgdir, start, end, limit); |
vma | 592 | mm/swap.c | struct vm_area_struct* vma; |
vma | 603 | mm/swap.c | vma = find_vma(p, address); |
vma | 604 | mm/swap.c | if (!vma) |
vma | 606 | mm/swap.c | if (address < vma->vm_start) |
vma | 607 | mm/swap.c | address = vma->vm_start; |
vma | 610 | mm/swap.c | int result = swap_out_vma(p, vma, pgd_offset(p->mm, address), address, limit); |
vma | 613 | mm/swap.c | vma = vma->vm_next; |
vma | 614 | mm/swap.c | if (!vma) |
vma | 616 | mm/swap.c | address = vma->vm_start; |
vma | 905 | mm/swap.c | static inline int unuse_pte(struct vm_area_struct * vma, unsigned long address, |
vma | 931 | mm/swap.c | set_pte(dir, pte_mkwrite(pte_mkdirty(mk_pte(page, vma->vm_page_prot)))); |
vma | 932 | mm/swap.c | ++vma->vm_mm->rss; |
vma | 937 | mm/swap.c | static inline int unuse_pmd(struct vm_area_struct * vma, pmd_t *dir, |
vma | 958 | mm/swap.c | if (unuse_pte(vma, offset+address-vma->vm_start, pte, type, page)) |
vma | 966 | mm/swap.c | static inline int unuse_pgd(struct vm_area_struct * vma, pgd_t *dir, |
vma | 987 | mm/swap.c | if (unuse_pmd(vma, pmd, address, end - address, offset, type, page)) |
vma | 995 | mm/swap.c | static int unuse_vma(struct vm_area_struct * vma, pgd_t *pgdir, |
vma | 1000 | mm/swap.c | if (unuse_pgd(vma, pgdir, start, end - start, type, page)) |
vma | 1010 | mm/swap.c | struct vm_area_struct* vma; |
vma | 1017 | mm/swap.c | vma = p->mm->mmap; |
vma | 1018 | mm/swap.c | while (vma) { |
vma | 1019 | mm/swap.c | pgd_t * pgd = pgd_offset(p->mm, vma->vm_start); |
vma | 1020 | mm/swap.c | if (unuse_vma(vma, pgd, vma->vm_start, vma->vm_end, type, page)) |
vma | 1022 | mm/swap.c | vma = vma->vm_next; |