tag | line | file | source code |
mm | 143 | arch/alpha/kernel/process.c | p->mm->context = 0; |
mm | 155 | arch/alpha/kernel/process.c | dump->start_code = current->mm->start_code; |
mm | 156 | arch/alpha/kernel/process.c | dump->start_data = current->mm->start_data; |
mm | 158 | arch/alpha/kernel/process.c | dump->u_tsize = (current->mm->end_code - dump->start_code) >> PAGE_SHIFT; |
mm | 159 | arch/alpha/kernel/process.c | dump->u_dsize = (current->mm->brk + (PAGE_SIZE - 1) - dump->start_data) >> PAGE_SHIFT; |
mm | 161 | arch/alpha/kernel/process.c | (current->mm->start_stack - dump->start_stack + PAGE_SIZE - 1) >> PAGE_SHIFT; |
mm | 352 | arch/i386/kernel/process.c | dump->u_tsize = ((unsigned long) current->mm->end_code) >> PAGE_SHIFT; |
mm | 353 | arch/i386/kernel/process.c | dump->u_dsize = ((unsigned long) (current->mm->brk + (PAGE_SIZE-1))) >> PAGE_SHIFT; |
mm | 143 | arch/i386/kernel/setup.c | init_task.mm->start_code = TASK_SIZE; |
mm | 144 | arch/i386/kernel/setup.c | init_task.mm->end_code = TASK_SIZE + (unsigned long) &_etext; |
mm | 145 | arch/i386/kernel/setup.c | init_task.mm->end_data = TASK_SIZE + (unsigned long) &_edata; |
mm | 146 | arch/i386/kernel/setup.c | init_task.mm->brk = TASK_SIZE + (unsigned long) &_end; |
mm | 77 | arch/i386/kernel/vm86.c | pgd = pgd_offset(tsk->mm, 0xA0000); |
mm | 64 | arch/ppc/mm/fault.c | dir = pgd_offset(current->mm, regs->dar & PAGE_MASK); |
mm | 87 | arch/ppc/mm/fault.c | printk("beforefault: pgd[0] = %x[%x]\n",current->mm->pgd,*(current->mm->pgd)); |
mm | 91 | arch/ppc/mm/fault.c | printk("handled: pgd[0] = %x[%x]\n",current->mm->pgd,*(current->mm->pgd)); |
mm | 119 | arch/ppc/mm/fault.c | dir = pgd_offset(current->mm, regs->dar & PAGE_MASK); |
mm | 135 | arch/ppc/mm/fault.c | current->mm, current->mm->pgd, |
mm | 136 | arch/ppc/mm/fault.c | current->mm->pgd+((regs->dar&PAGE_MASK) >> PGDIR_SHIFT)); |
mm | 142 | arch/ppc/mm/fault.c | current->mm->pgd,dir,*dir,pmd,*pmd,pte); |
mm | 164 | arch/ppc/mm/fault.c | regs->dar, regs->dsisr, regs->nip, current->mm); |
mm | 190 | arch/ppc/mm/fault.c | for (vma = current->mm->mmap ; ; vma = vma->vm_next) |
mm | 195 | arch/ppc/mm/fault.c | regs->nip, current,current->pid,current->mm,current->mm->mmap, address, error_code); |
mm | 213 | arch/ppc/mm/fault.c | printk("stack: gpr[1]=%x ip = %x; current=%x[%d]; mm=%x; mmap=%x; address = %x error_code = %x\n",regs->gpr[1],regs->nip, current,current->pid,current->mm,current->mm->mmap, address, error_code); |
mm | 222 | arch/ppc/mm/fault.c | printk("stack2: gpr[1]=%x ip = %x; current=%x[%d]; mm=%x; mmap=%x; address = %x error_code = %x\n",regs->gpr[1],regs->nip, current,current->pid,current->mm,current->mm->mmap, address, error_code); |
mm | 242 | arch/ppc/mm/fault.c | current,address,vma->vm_flags,current->mm,vma,vma->vm_start,vma->vm_end); |
mm | 296 | arch/ppc/mm/fault.c | current,address,vma->vm_flags,current->mm,vma,vma->vm_start,vma->vm_end); |
mm | 309 | arch/ppc/mm/fault.c | dir = pgd_offset(current->mm, address & PAGE_MASK); |
mm | 730 | arch/ppc/mm/init.c | pgd = pgd_offset(current->mm, 0); |
mm | 216 | arch/sparc/kernel/process.c | dump->u_tsize = (((unsigned long) current->mm->end_code) - |
mm | 217 | arch/sparc/kernel/process.c | ((unsigned long) current->mm->start_code)) & ~(PAGE_SIZE - 1); |
mm | 218 | arch/sparc/kernel/process.c | dump->u_dsize = ((unsigned long) (current->mm->brk + (PAGE_SIZE-1))); |
mm | 262 | arch/sparc/kernel/setup.c | init_task.mm->mmap->vm_page_prot = PAGE_SHARED; |
mm | 263 | arch/sparc/kernel/setup.c | init_task.mm->mmap->vm_start = KERNBASE; |
mm | 264 | arch/sparc/kernel/setup.c | init_task.mm->mmap->vm_end = *memory_end_p; |
mm | 123 | arch/sparc/kernel/smp.c | void smp_invalidate_mm(struct mm_struct *mm) |
mm | 125 | arch/sparc/kernel/smp.c | smp_invalidate(1, (unsigned long) mm, 0, 0); |
mm | 128 | arch/sparc/kernel/smp.c | void smp_invalidate_range(struct mm_struct *mm, unsigned long start, unsigned long end) |
mm | 130 | arch/sparc/kernel/smp.c | smp_invalidate(2, (unsigned long) mm, start, end); |
mm | 115 | arch/sparc/kernel/sys_sunos.c | if (brk < current->mm->end_code) |
mm | 119 | arch/sparc/kernel/sys_sunos.c | oldbrk = PAGE_ALIGN(current->mm->brk); |
mm | 121 | arch/sparc/kernel/sys_sunos.c | current->mm->brk = brk; |
mm | 128 | arch/sparc/kernel/sys_sunos.c | if (brk <= current->mm->brk) { |
mm | 129 | arch/sparc/kernel/sys_sunos.c | current->mm->brk = brk; |
mm | 139 | arch/sparc/kernel/sys_sunos.c | if (brk - current->mm->end_code > rlim) |
mm | 163 | arch/sparc/kernel/sys_sunos.c | current->mm->brk = brk; |
mm | 175 | arch/sparc/kernel/sys_sunos.c | error = sunos_brk(((int) current->mm->brk) + increment); |
mm | 179 | arch/sparc/kernel/sys_sunos.c | return current->mm->brk; |
mm | 275 | arch/sparc/kernel/sys_sunos.c | pgdp = pgd_offset(current->mm, addr); |
mm | 189 | arch/sparc/mm/fault.c | (unsigned long) current->mm->context); |
mm | 191 | arch/sparc/mm/fault.c | (unsigned long) current->mm->pgd); |
mm | 207 | arch/sparc/mm/srmmu.c | static pgd_t *srmmu_pgd_offset(struct mm_struct * mm, unsigned long address) |
mm | 209 | arch/sparc/mm/srmmu.c | return mm->pgd + ((address >> SRMMU_PGDIR_SHIFT) & (SRMMU_PTRS_PER_PGD - 1)); |
mm | 227 | arch/sparc/mm/srmmu.c | if(tsk->mm->context != NO_CONTEXT) |
mm | 228 | arch/sparc/mm/srmmu.c | srmmu_ctxd_set(&srmmu_context_table[tsk->mm->context], pgdp); |
mm | 373 | arch/sparc/mm/srmmu.c | static void tsunami_invalidate_mm(struct mm_struct *mm) |
mm | 378 | arch/sparc/mm/srmmu.c | static void tsunami_invalidate_range(struct mm_struct *mm, unsigned long start, unsigned long end) |
mm | 405 | arch/sparc/mm/srmmu.c | static void swift_invalidate_mm(struct mm_struct *mm) |
mm | 408 | arch/sparc/mm/srmmu.c | int cc, ncc = mm->context; |
mm | 427 | arch/sparc/mm/srmmu.c | static void swift_invalidate_range(struct mm_struct *mm, unsigned long start, unsigned long end) |
mm | 430 | arch/sparc/mm/srmmu.c | int cc, ncc = mm->context; |
mm | 492 | arch/sparc/mm/srmmu.c | static void viking_invalidate_mm(struct mm_struct *mm) |
mm | 495 | arch/sparc/mm/srmmu.c | int cc, ncc = mm->context; |
mm | 514 | arch/sparc/mm/srmmu.c | static void viking_invalidate_range(struct mm_struct *mm, unsigned long start, unsigned long end) |
mm | 517 | arch/sparc/mm/srmmu.c | int cc, ncc = mm->context; |
mm | 567 | arch/sparc/mm/srmmu.c | static void cypress_invalidate_mm(struct mm_struct *mm) |
mm | 570 | arch/sparc/mm/srmmu.c | int cc, ncc = mm->context; |
mm | 588 | arch/sparc/mm/srmmu.c | static void cypress_invalidate_range(struct mm_struct *mm, unsigned long start, unsigned long end) |
mm | 591 | arch/sparc/mm/srmmu.c | int cc, ncc = mm->context; |
mm | 643 | arch/sparc/mm/srmmu.c | static void hypersparc_invalidate_mm(struct mm_struct *mm) |
mm | 648 | arch/sparc/mm/srmmu.c | static void hypersparc_invalidate_range(struct mm_struct *mm, unsigned long start, unsigned long end) |
mm | 669 | arch/sparc/mm/srmmu.c | static inline void alloc_context(struct mm_struct *mm) |
mm | 677 | arch/sparc/mm/srmmu.c | mm->context = ctxp->ctx_number; |
mm | 678 | arch/sparc/mm/srmmu.c | ctxp->ctx_mm = mm; |
mm | 682 | arch/sparc/mm/srmmu.c | if(ctxp->ctx_mm == current->mm) |
mm | 689 | arch/sparc/mm/srmmu.c | ctxp->ctx_mm = mm; |
mm | 690 | arch/sparc/mm/srmmu.c | mm->context = ctxp->ctx_number; |
mm | 703 | arch/sparc/mm/srmmu.c | if(tsk->mm->context == NO_CONTEXT) { |
mm | 704 | arch/sparc/mm/srmmu.c | alloc_context(tsk->mm); |
mm | 705 | arch/sparc/mm/srmmu.c | srmmu_ctxd_set(&srmmu_context_table[tsk->mm->context], tsk->mm->pgd); |
mm | 707 | arch/sparc/mm/srmmu.c | srmmu_set_context(tsk->mm->context); |
mm | 719 | arch/sparc/mm/srmmu.c | pgdp = srmmu_pgd_offset(init_task.mm, virt_addr); |
mm | 774 | arch/sparc/mm/srmmu.c | pgdp = srmmu_pgd_offset(init_task.mm, start); |
mm | 950 | arch/sparc/mm/srmmu.c | pgdp = srmmu_pgd_offset(init_task.mm, start); |
mm | 983 | arch/sparc/mm/srmmu.c | pgdp = srmmu_pgd_offset(init_task.mm, start); |
mm | 1011 | arch/sparc/mm/srmmu.c | pgdp = srmmu_pgd_offset(init_task.mm, start); |
mm | 1031 | arch/sparc/mm/srmmu.c | pgdp = srmmu_pgd_offset(init_task.mm, start); |
mm | 1117 | arch/sparc/mm/srmmu.c | pgdp = srmmu_pgd_offset(init_task.mm, 0x0); |
mm | 1133 | arch/sparc/mm/srmmu.c | struct mm_struct *mm = current->mm; |
mm | 1135 | arch/sparc/mm/srmmu.c | if(mm->context != NO_CONTEXT) { |
mm | 1136 | arch/sparc/mm/srmmu.c | srmmu_ctxd_set(&srmmu_context_table[mm->context], swapper_pg_dir); |
mm | 1137 | arch/sparc/mm/srmmu.c | ctx_old = ctx_list_pool + mm->context; |
mm | 1140 | arch/sparc/mm/srmmu.c | mm->context = NO_CONTEXT; |
mm | 1148 | arch/sparc/mm/srmmu.c | alloc_context(current->mm); |
mm | 1149 | arch/sparc/mm/srmmu.c | srmmu_ctxd_set(&srmmu_context_table[current->mm->context], current->mm->pgd); |
mm | 1150 | arch/sparc/mm/srmmu.c | srmmu_set_context(current->mm->context); |
mm | 872 | arch/sparc/mm/sun4c.c | sun4c_kstack_vma.vm_mm = init_task.mm; |
mm | 894 | arch/sparc/mm/sun4c.c | static void sun4c_invalidate_mm(struct mm_struct *mm) |
mm | 896 | arch/sparc/mm/sun4c.c | if(mm->context == NO_CONTEXT) |
mm | 898 | arch/sparc/mm/sun4c.c | sun4c_demap_context(&sun4c_context_ring[mm->context], mm->context); |
mm | 901 | arch/sparc/mm/sun4c.c | static void sun4c_invalidate_range(struct mm_struct *mm, unsigned long start, unsigned long end) |
mm | 906 | arch/sparc/mm/sun4c.c | if(mm->context == NO_CONTEXT) |
mm | 910 | arch/sparc/mm/sun4c.c | sun4c_set_context(mm->context); |
mm | 918 | arch/sparc/mm/sun4c.c | free_user_entry(mm->context, this_entry); |
mm | 927 | arch/sparc/mm/sun4c.c | struct mm_struct *mm = vma->vm_mm; |
mm | 930 | arch/sparc/mm/sun4c.c | if(mm->context == NO_CONTEXT) |
mm | 934 | arch/sparc/mm/sun4c.c | sun4c_set_context(mm->context); |
mm | 970 | arch/sparc/mm/sun4c.c | static inline void sun4c_alloc_context(struct mm_struct *mm) |
mm | 978 | arch/sparc/mm/sun4c.c | mm->context = ctxp->ctx_number; |
mm | 979 | arch/sparc/mm/sun4c.c | ctxp->ctx_mm = mm; |
mm | 983 | arch/sparc/mm/sun4c.c | if(ctxp->ctx_mm == current->mm) |
mm | 990 | arch/sparc/mm/sun4c.c | ctxp->ctx_mm = mm; |
mm | 991 | arch/sparc/mm/sun4c.c | mm->context = ctxp->ctx_number; |
mm | 1020 | arch/sparc/mm/sun4c.c | if(tsk->mm->context == NO_CONTEXT) |
mm | 1021 | arch/sparc/mm/sun4c.c | sun4c_alloc_context(tsk->mm); |
mm | 1023 | arch/sparc/mm/sun4c.c | sun4c_set_context(tsk->mm->context); |
mm | 1029 | arch/sparc/mm/sun4c.c | sun4c_alloc_context(current->mm); |
mm | 1030 | arch/sparc/mm/sun4c.c | sun4c_set_context(current->mm->context); |
mm | 1037 | arch/sparc/mm/sun4c.c | struct mm_struct *mm = current->mm; |
mm | 1039 | arch/sparc/mm/sun4c.c | if(mm->context != NO_CONTEXT) { |
mm | 1040 | arch/sparc/mm/sun4c.c | sun4c_demap_context(&sun4c_context_ring[mm->context], mm->context); |
mm | 1041 | arch/sparc/mm/sun4c.c | ctx_old = ctx_list_pool + mm->context; |
mm | 1044 | arch/sparc/mm/sun4c.c | mm->context = NO_CONTEXT; |
mm | 1187 | arch/sparc/mm/sun4c.c | static pgd_t *sun4c_pgd_offset(struct mm_struct * mm, unsigned long address) |
mm | 1189 | arch/sparc/mm/sun4c.c | return mm->pgd + (address >> SUN4C_PGDIR_SHIFT); |
mm | 4029 | drivers/block/floppy.c | for (i=current->mm->env_start; i< current->mm->env_end; i ++){ |
mm | 827 | drivers/cdrom/sbpcd.c | u_int mm; |
mm | 831 | drivers/cdrom/sbpcd.c | mm = (blk + CD_MSF_OFFSET) % (CD_SECS * CD_FRAMES); |
mm | 832 | drivers/cdrom/sbpcd.c | msf.c[1] = mm / CD_FRAMES; |
mm | 833 | drivers/cdrom/sbpcd.c | msf.c[0] = mm % CD_FRAMES; |
mm | 235 | fs/binfmt_aout.c | current->mm->arg_start = (unsigned long) p; |
mm | 241 | fs/binfmt_aout.c | current->mm->arg_end = current->mm->env_start = (unsigned long) p; |
mm | 247 | fs/binfmt_aout.c | current->mm->env_end = (unsigned long) p; |
mm | 304 | fs/binfmt_aout.c | current->mm->end_code = ex.a_text + |
mm | 305 | fs/binfmt_aout.c | (current->mm->start_code = N_TXTADDR(ex)); |
mm | 306 | fs/binfmt_aout.c | current->mm->end_data = ex.a_data + |
mm | 307 | fs/binfmt_aout.c | (current->mm->start_data = N_DATADDR(ex)); |
mm | 308 | fs/binfmt_aout.c | current->mm->brk = ex.a_bss + |
mm | 309 | fs/binfmt_aout.c | (current->mm->start_brk = N_BSSADDR(ex)); |
mm | 311 | fs/binfmt_aout.c | current->mm->rss = 0; |
mm | 312 | fs/binfmt_aout.c | current->mm->mmap = NULL; |
mm | 382 | fs/binfmt_aout.c | set_brk(current->mm->start_brk, current->mm->brk); |
mm | 387 | fs/binfmt_aout.c | current->mm->start_stack = p; |
mm | 133 | fs/binfmt_elf.c | current->mm->arg_start = (unsigned long) p; |
mm | 139 | fs/binfmt_elf.c | current->mm->arg_end = current->mm->env_start = (unsigned long) p; |
mm | 145 | fs/binfmt_elf.c | current->mm->env_end = (unsigned long) p; |
mm | 290 | fs/binfmt_elf.c | current->mm->brk = interp_ex->a_bss + |
mm | 291 | fs/binfmt_elf.c | (current->mm->end_data = interp_ex->a_data + |
mm | 292 | fs/binfmt_elf.c | (current->mm->end_code = interp_ex->a_text)); |
mm | 522 | fs/binfmt_elf.c | current->mm->end_data = 0; |
mm | 523 | fs/binfmt_elf.c | current->mm->end_code = 0; |
mm | 524 | fs/binfmt_elf.c | current->mm->start_mmap = ELF_START_MMAP; |
mm | 525 | fs/binfmt_elf.c | current->mm->mmap = NULL; |
mm | 530 | fs/binfmt_elf.c | current->mm->rss = 0; |
mm | 532 | fs/binfmt_elf.c | current->mm->start_stack = bprm->p; |
mm | 643 | fs/binfmt_elf.c | current->mm->arg_start += strlen(passed_fileno) + 1; |
mm | 644 | fs/binfmt_elf.c | current->mm->start_brk = current->mm->brk = elf_brk; |
mm | 645 | fs/binfmt_elf.c | current->mm->end_code = end_code; |
mm | 646 | fs/binfmt_elf.c | current->mm->start_code = start_code; |
mm | 647 | fs/binfmt_elf.c | current->mm->end_data = end_data; |
mm | 648 | fs/binfmt_elf.c | current->mm->start_stack = bprm->p; |
mm | 657 | fs/binfmt_elf.c | printk("(start_brk) %x\n" , current->mm->start_brk); |
mm | 658 | fs/binfmt_elf.c | printk("(end_code) %x\n" , current->mm->end_code); |
mm | 659 | fs/binfmt_elf.c | printk("(start_code) %x\n" , current->mm->start_code); |
mm | 660 | fs/binfmt_elf.c | printk("(end_data) %x\n" , current->mm->end_data); |
mm | 661 | fs/binfmt_elf.c | printk("(start_stack) %x\n" , current->mm->start_stack); |
mm | 662 | fs/binfmt_elf.c | printk("(brk) %x\n" , current->mm->brk); |
mm | 966 | fs/binfmt_elf.c | for(vma = current->mm->mmap; vma != NULL; vma = vma->vm_next) { |
mm | 1093 | fs/binfmt_elf.c | len = current->mm->arg_end - current->mm->arg_start; |
mm | 1096 | fs/binfmt_elf.c | (const char *)current->mm->arg_start, len); |
mm | 1150 | fs/binfmt_elf.c | for(vma = current->mm->mmap, i = 0; |
mm | 1184 | fs/binfmt_elf.c | for(i = 0, vma = current->mm->mmap; |
mm | 296 | fs/exec.c | mpnt->vm_mm = current->mm; |
mm | 306 | fs/exec.c | current->mm->total_vm = (mpnt->vm_end - mpnt->vm_start) >> PAGE_SHIFT; |
mm | 311 | fs/exec.c | current->mm->rss++; |
mm | 374 | fs/exec.c | if (current->mm->count > 1) { |
mm | 375 | fs/exec.c | struct mm_struct *mm = kmalloc(sizeof(*mm), GFP_KERNEL); |
mm | 376 | fs/exec.c | if (!mm) { |
mm | 381 | fs/exec.c | *mm = *current->mm; |
mm | 382 | fs/exec.c | mm->def_flags = 0; /* should future lockings be kept? */ |
mm | 383 | fs/exec.c | mm->count = 1; |
mm | 384 | fs/exec.c | mm->mmap = NULL; |
mm | 385 | fs/exec.c | mm->mmap_avl = NULL; |
mm | 386 | fs/exec.c | mm->total_vm = 0; |
mm | 387 | fs/exec.c | mm->rss = 0; |
mm | 388 | fs/exec.c | current->mm->count--; |
mm | 389 | fs/exec.c | current->mm = mm; |
mm | 393 | fs/exec.c | exit_mmap(current->mm); |
mm | 130 | fs/namei.c | if (!p->mm) |
mm | 132 | fs/namei.c | for(mpnt = p->mm->mmap; mpnt; mpnt = mpnt->vm_next) { |
mm | 341 | fs/proc/array.c | if (!p || !p->mm || ptr >= TASK_SIZE) |
mm | 343 | fs/proc/array.c | page_dir = pgd_offset(p->mm,ptr); |
mm | 402 | fs/proc/array.c | if (!p || !*p || !(*p)->mm) |
mm | 404 | fs/proc/array.c | return get_array(p, (*p)->mm->env_start, (*p)->mm->env_end, buffer); |
mm | 411 | fs/proc/array.c | if (!p || !*p || !(*p)->mm) |
mm | 413 | fs/proc/array.c | return get_array(p, (*p)->mm->arg_start, (*p)->mm->arg_end, buffer); |
mm | 547 | fs/proc/array.c | struct mm_struct * mm = p->mm; |
mm | 549 | fs/proc/array.c | if (mm && mm != &init_mm) { |
mm | 550 | fs/proc/array.c | struct vm_area_struct * vma = mm->mmap; |
mm | 554 | fs/proc/array.c | for (vma = mm->mmap; vma; vma = vma->vm_next) { |
mm | 579 | fs/proc/array.c | mm->total_vm << (PAGE_SHIFT-10), |
mm | 580 | fs/proc/array.c | mm->locked_vm << (PAGE_SHIFT-10), |
mm | 581 | fs/proc/array.c | mm->rss << (PAGE_SHIFT-10), |
mm | 652 | fs/proc/array.c | if (tsk->mm && tsk->mm != &init_mm) { |
mm | 653 | fs/proc/array.c | struct vm_area_struct *vma = tsk->mm->mmap; |
mm | 717 | fs/proc/array.c | tsk->mm ? tsk->mm->rss : 0, /* you might want to shift this left 3 */ |
mm | 719 | fs/proc/array.c | tsk->mm ? tsk->mm->start_code : 0, |
mm | 720 | fs/proc/array.c | tsk->mm ? tsk->mm->end_code : 0, |
mm | 721 | fs/proc/array.c | tsk->mm ? tsk->mm->start_stack : 0, |
mm | 811 | fs/proc/array.c | if (tsk->mm && tsk->mm != &init_mm) { |
mm | 812 | fs/proc/array.c | struct vm_area_struct * vma = tsk->mm->mmap; |
mm | 815 | fs/proc/array.c | pgd_t *pgd = pgd_offset(tsk->mm, vma->vm_start); |
mm | 875 | fs/proc/array.c | if (!(*p)->mm || (*p)->mm == &init_mm || count == 0) |
mm | 883 | fs/proc/array.c | for (map = (*p)->mm->mmap, i = 0; map && (i < lineno); map = map->vm_next, i++) |
mm | 106 | fs/proc/link.c | if (!p->mm) |
mm | 108 | fs/proc/link.c | vma = p->mm->mmap; |
mm | 84 | fs/proc/mem.c | page_dir = pgd_offset(tsk->mm,addr); |
mm | 231 | fs/proc/mem.c | src_vma = tsk->mm->mmap; |
mm | 239 | fs/proc/mem.c | src_dir = pgd_offset(tsk->mm, stmp); |
mm | 266 | fs/proc/mem.c | src_vma = tsk->mm->mmap; |
mm | 274 | fs/proc/mem.c | src_dir = pgd_offset(tsk->mm, stmp); |
mm | 278 | fs/proc/mem.c | dest_dir = pgd_offset(current->mm, dtmp); |
mm | 60 | include/asm-alpha/mmu_context.h | struct mm_struct * mm = p->mm; |
mm | 62 | include/asm-alpha/mmu_context.h | if (mm) { |
mm | 63 | include/asm-alpha/mmu_context.h | unsigned long asn = mm->context; |
mm | 77 | include/asm-alpha/mmu_context.h | mm->context = asn; /* full version + asn */ |
mm | 34 | include/asm-alpha/pgtable.h | static inline void invalidate_mm(struct mm_struct *mm) |
mm | 36 | include/asm-alpha/pgtable.h | if (mm != current->mm) |
mm | 37 | include/asm-alpha/pgtable.h | mm->context = 0; |
mm | 53 | include/asm-alpha/pgtable.h | struct mm_struct * mm = vma->vm_mm; |
mm | 55 | include/asm-alpha/pgtable.h | if (mm != current->mm) |
mm | 56 | include/asm-alpha/pgtable.h | mm->context = 0; |
mm | 65 | include/asm-alpha/pgtable.h | static inline void invalidate_range(struct mm_struct *mm, |
mm | 68 | include/asm-alpha/pgtable.h | if (mm != current->mm) |
mm | 69 | include/asm-alpha/pgtable.h | mm->context = 0; |
mm | 298 | include/asm-alpha/pgtable.h | extern inline pgd_t * pgd_offset(struct mm_struct * mm, unsigned long address) |
mm | 300 | include/asm-alpha/pgtable.h | return mm->pgd + ((address >> PGDIR_SHIFT) & (PTRS_PER_PAGE - 1)); |
mm | 50 | include/asm-i386/pgtable.h | static inline void invalidate_mm(struct mm_struct *mm) |
mm | 52 | include/asm-i386/pgtable.h | if (mm == current->mm) |
mm | 59 | include/asm-i386/pgtable.h | if (vma->vm_mm == current->mm) |
mm | 63 | include/asm-i386/pgtable.h | static inline void invalidate_range(struct mm_struct *mm, |
mm | 66 | include/asm-i386/pgtable.h | if (mm == current->mm) |
mm | 99 | include/asm-i386/pgtable.h | if (current->mm->count == 1) /* just one copy of this mm */ |
mm | 109 | include/asm-i386/pgtable.h | static inline void invalidate_mm(struct mm_struct * mm) |
mm | 111 | include/asm-i386/pgtable.h | if (mm == current->mm && mm->count == 1) |
mm | 120 | include/asm-i386/pgtable.h | if (vma->vm_mm == current->mm && current->mm->count == 1) |
mm | 126 | include/asm-i386/pgtable.h | static inline void invalidate_range(struct mm_struct * mm, |
mm | 129 | include/asm-i386/pgtable.h | invalidate_mm(mm); |
mm | 140 | include/asm-i386/pgtable.h | static inline void invalidate_mm(struct mm_struct *mm) |
mm | 151 | include/asm-i386/pgtable.h | static inline void invalidate_range(struct mm_struct *mm, |
mm | 346 | include/asm-i386/pgtable.h | extern inline pgd_t * pgd_offset(struct mm_struct * mm, unsigned long address) |
mm | 348 | include/asm-i386/pgtable.h | return mm->pgd + (address >> PGDIR_SHIFT); |
mm | 42 | include/asm-mips/pgtable.h | do { if ((mm_struct) == current->mm) invalidate(); } while (0) |
mm | 44 | include/asm-mips/pgtable.h | do { if ((mm_struct) == current->mm) invalidate(); } while (0) |
mm | 46 | include/asm-mips/pgtable.h | do { if ((mm_struct) == current->mm) invalidate(); } while (0) |
mm | 344 | include/asm-mips/pgtable.h | extern inline pgd_t * pgd_offset(struct mm_struct * mm, unsigned long address) |
mm | 346 | include/asm-mips/pgtable.h | return mm->pgd + (address >> PGDIR_SHIFT); |
mm | 288 | include/asm-ppc/pgtable.h | extern inline pgd_t * pgd_offset(struct mm_struct * mm, unsigned long address) |
mm | 290 | include/asm-ppc/pgtable.h | return mm->pgd + (address >> PGDIR_SHIFT); |
mm | 12 | include/asm-sparc/mmu_context.h | #define init_new_context(mm) ((mm)->context = NO_CONTEXT) |
mm | 29 | include/asm-sparc/smp.h | struct mm_struct *mm; |
mm | 177 | include/linux/mm.h | extern int zap_page_range(struct mm_struct *mm, unsigned long address, unsigned long size); |
mm | 256 | include/linux/mm.h | if (!task->mm) |
mm | 258 | include/linux/mm.h | for (tree = task->mm->mmap_avl ; ; ) { |
mm | 245 | include/linux/sched.h | struct mm_struct *mm; |
mm | 429 | ipc/shm.c | current->mm->total_vm += (shmd->vm_end - shmd->vm_start) >> PAGE_SHIFT; |
mm | 490 | ipc/shm.c | if (addr < current->mm->start_stack && |
mm | 491 | ipc/shm.c | addr > current->mm->start_stack - PAGE_SIZE*(shp->shm_npages + 4)) |
mm | 519 | ipc/shm.c | shmd->vm_mm = current->mm; |
mm | 593 | ipc/shm.c | for (shmd = current->mm->mmap; shmd; shmd = shmdnext) { |
mm | 428 | kernel/exit.c | struct mm_struct * mm = current->mm; |
mm | 431 | kernel/exit.c | if (mm) { |
mm | 432 | kernel/exit.c | if (!--mm->count) { |
mm | 433 | kernel/exit.c | exit_mmap(mm); |
mm | 435 | kernel/exit.c | kfree(mm); |
mm | 437 | kernel/exit.c | current->mm = NULL; |
mm | 79 | kernel/fork.c | static inline int dup_mmap(struct mm_struct * mm) |
mm | 83 | kernel/fork.c | mm->mmap = NULL; |
mm | 84 | kernel/fork.c | p = &mm->mmap; |
mm | 85 | kernel/fork.c | for (mpnt = current->mm->mmap ; mpnt ; mpnt = mpnt->vm_next) { |
mm | 88 | kernel/fork.c | exit_mmap(mm); |
mm | 93 | kernel/fork.c | tmp->vm_mm = mm; |
mm | 104 | kernel/fork.c | if (copy_page_range(mm, current->mm, tmp)) { |
mm | 105 | kernel/fork.c | exit_mmap(mm); |
mm | 111 | kernel/fork.c | build_mmap_avl(mm); |
mm | 118 | kernel/fork.c | SET_PAGE_DIR(tsk, current->mm->pgd); |
mm | 119 | kernel/fork.c | current->mm->count++; |
mm | 122 | kernel/fork.c | tsk->mm = kmalloc(sizeof(*tsk->mm), GFP_KERNEL); |
mm | 123 | kernel/fork.c | if (!tsk->mm) |
mm | 125 | kernel/fork.c | *tsk->mm = *current->mm; |
mm | 126 | kernel/fork.c | tsk->mm->count = 1; |
mm | 127 | kernel/fork.c | tsk->mm->def_flags = 0; |
mm | 133 | kernel/fork.c | if (dup_mmap(tsk->mm)) { |
mm | 552 | kernel/sys.c | if (brk < current->mm->end_code) |
mm | 553 | kernel/sys.c | return current->mm->brk; |
mm | 555 | kernel/sys.c | oldbrk = PAGE_ALIGN(current->mm->brk); |
mm | 557 | kernel/sys.c | return current->mm->brk = brk; |
mm | 562 | kernel/sys.c | if (brk <= current->mm->brk) { |
mm | 563 | kernel/sys.c | current->mm->brk = brk; |
mm | 573 | kernel/sys.c | if (brk - current->mm->end_code > rlim) |
mm | 574 | kernel/sys.c | return current->mm->brk; |
mm | 579 | kernel/sys.c | return current->mm->brk; |
mm | 593 | kernel/sys.c | return current->mm->brk; |
mm | 595 | kernel/sys.c | freepages += current->mm->rss; |
mm | 598 | kernel/sys.c | return current->mm->brk; |
mm | 603 | kernel/sys.c | current->mm->brk = brk; |
mm | 478 | mm/filemap.c | if (offset >= inode->i_size && (area->vm_flags & VM_SHARED) && area->vm_mm == current->mm) |
mm | 707 | mm/filemap.c | dir = pgd_offset(current->mm, address); |
mm | 133 | mm/memory.c | page_dir = tsk->mm->pgd; |
mm | 140 | mm/memory.c | invalidate_mm(tsk->mm); |
mm | 154 | mm/memory.c | page_dir = tsk->mm->pgd; |
mm | 159 | mm/memory.c | invalidate_mm(tsk->mm); |
mm | 161 | mm/memory.c | tsk->mm->pgd = swapper_pg_dir; /* or else... */ |
mm | 176 | mm/memory.c | invalidate_mm(tsk->mm); |
mm | 178 | mm/memory.c | tsk->mm->pgd = new_pg; |
mm | 309 | mm/memory.c | if (current->mm->rss <= 0) |
mm | 311 | mm/memory.c | current->mm->rss--; |
mm | 370 | mm/memory.c | int zap_page_range(struct mm_struct *mm, unsigned long address, unsigned long size) |
mm | 375 | mm/memory.c | dir = pgd_offset(mm, address); |
mm | 381 | mm/memory.c | invalidate_range(mm, end - size, end); |
mm | 430 | mm/memory.c | dir = pgd_offset(current->mm, address); |
mm | 442 | mm/memory.c | invalidate_range(current->mm, beg, end); |
mm | 501 | mm/memory.c | dir = pgd_offset(current->mm, from); |
mm | 513 | mm/memory.c | invalidate_range(current->mm, beg, from); |
mm | 545 | mm/memory.c | pgd = pgd_offset(tsk->mm,address); |
mm | 842 | mm/memory.c | pgd = pgd_offset(tsk->mm, address); |
mm | 194 | mm/mlock.c | locked += current->mm->locked_vm; |
mm | 230 | mm/mlock.c | current->mm->def_flags = def_flags; |
mm | 233 | mm/mlock.c | for (vma = current->mm->mmap; vma ; vma = vma->vm_next) { |
mm | 257 | mm/mlock.c | if (current->mm->total_vm > lock_limit) |
mm | 262 | mm/mlock.c | if (current->mm->total_vm > MAP_NR(high_memory)/2) |
mm | 58 | mm/mmap.c | if (current->mm->def_flags & VM_LOCKED) { |
mm | 59 | mm/mmap.c | unsigned long locked = current->mm->locked_vm << PAGE_SHIFT; |
mm | 121 | mm/mmap.c | vma->vm_mm = current->mm; |
mm | 126 | mm/mmap.c | vma->vm_flags |= current->mm->def_flags; |
mm | 170 | mm/mmap.c | current->mm->total_vm += len >> PAGE_SHIFT; |
mm | 173 | mm/mmap.c | current->mm->locked_vm += len >> PAGE_SHIFT; |
mm | 570 | mm/mmap.c | avl_checkheights(task->mm->mmap_avl); |
mm | 571 | mm/mmap.c | avl_checkorder(task->mm->mmap_avl); |
mm | 696 | mm/mmap.c | avl_neighbours(mpnt, current->mm->mmap_avl, &prev, &next); |
mm | 700 | mm/mmap.c | npp = (prev ? &prev->vm_next : ¤t->mm->mmap); |
mm | 706 | mm/mmap.c | avl_remove(mpnt, ¤t->mm->mmap_avl); |
mm | 732 | mm/mmap.c | zap_page_range(current->mm, st, end-st); |
mm | 737 | mm/mmap.c | zap_page_range(current->mm, addr, len); |
mm | 742 | mm/mmap.c | void build_mmap_avl(struct mm_struct * mm) |
mm | 746 | mm/mmap.c | mm->mmap_avl = NULL; |
mm | 747 | mm/mmap.c | for (vma = mm->mmap; vma; vma = vma->vm_next) |
mm | 748 | mm/mmap.c | avl_insert(vma, &mm->mmap_avl); |
mm | 752 | mm/mmap.c | void exit_mmap(struct mm_struct * mm) |
mm | 756 | mm/mmap.c | mpnt = mm->mmap; |
mm | 757 | mm/mmap.c | mm->mmap = NULL; |
mm | 758 | mm/mmap.c | mm->mmap_avl = NULL; |
mm | 759 | mm/mmap.c | mm->rss = 0; |
mm | 760 | mm/mmap.c | mm->total_vm = 0; |
mm | 761 | mm/mmap.c | mm->locked_vm = 0; |
mm | 771 | mm/mmap.c | zap_page_range(mm, mpnt->vm_start, mpnt->vm_end-mpnt->vm_start); |
mm | 791 | mm/mmap.c | p = &t->mm->mmap; |
mm | 804 | mm/mmap.c | avl_insert_neighbours(vmp, &t->mm->mmap_avl, &prev, &next); |
mm | 805 | mm/mmap.c | if ((prev ? prev->vm_next : t->mm->mmap) != next) |
mm | 810 | mm/mmap.c | t->mm->mmap = vmp; |
mm | 866 | mm/mmap.c | avl_neighbours(mpnt, task->mm->mmap_avl, &prev, &next); |
mm | 910 | mm/mmap.c | avl_remove(mpnt, &task->mm->mmap_avl); |
mm | 77 | mm/mprotect.c | dir = pgd_offset(current->mm, start); |
mm | 83 | mm/mprotect.c | invalidate_range(current->mm, beg, end); |
mm | 22 | mm/mremap.c | static inline pte_t *get_one_pte(struct mm_struct *mm, unsigned long addr) |
mm | 28 | mm/mremap.c | pgd = pgd_offset(mm, addr); |
mm | 53 | mm/mremap.c | static inline pte_t *alloc_one_pte(struct mm_struct *mm, unsigned long addr) |
mm | 58 | mm/mremap.c | pmd = pmd_alloc(pgd_offset(mm, addr), addr); |
mm | 80 | mm/mremap.c | static int move_one_page(struct mm_struct *mm, unsigned long old_addr, unsigned long new_addr) |
mm | 85 | mm/mremap.c | src = get_one_pte(mm, old_addr); |
mm | 87 | mm/mremap.c | error = copy_one_pte(src, alloc_one_pte(mm, new_addr)); |
mm | 91 | mm/mremap.c | static int move_page_tables(struct mm_struct * mm, |
mm | 96 | mm/mremap.c | invalidate_range(mm, old_addr, old_addr + len); |
mm | 105 | mm/mremap.c | if (move_one_page(mm, old_addr + offset, new_addr + offset)) |
mm | 119 | mm/mremap.c | move_one_page(mm, new_addr + offset, old_addr + offset); |
mm | 120 | mm/mremap.c | invalidate_range(mm, new_addr, new_addr + len); |
mm | 121 | mm/mremap.c | zap_page_range(mm, new_addr, new_addr + len); |
mm | 135 | mm/mremap.c | if (new_addr && !move_page_tables(current->mm, new_addr, addr, old_len)) { |
mm | 190 | mm/mremap.c | unsigned long locked = current->mm->locked_vm << PAGE_SHIFT; |
mm | 205 | mm/mremap.c | current->mm->total_vm += pages; |
mm | 207 | mm/mremap.c | current->mm->locked_vm += pages; |
mm | 266 | mm/swapfile.c | static int unuse_process(struct mm_struct * mm, unsigned int type, unsigned long page) |
mm | 273 | mm/swapfile.c | if (!mm || mm == &init_mm) |
mm | 275 | mm/swapfile.c | vma = mm->mmap; |
mm | 277 | mm/swapfile.c | pgd_t * pgd = pgd_offset(mm, vma->vm_start); |
mm | 301 | mm/swapfile.c | if (unuse_process(p->mm, type, page)) { |
mm | 35 | mm/vmalloc.c | if (!p->mm) |
mm | 37 | mm/vmalloc.c | *pgd_offset(p->mm,address) = entry; |
mm | 259 | mm/vmscan.c | int result = swap_out_vma(p, vma, pgd_offset(p->mm, address), address, dma, wait); |
mm | 294 | mm/vmscan.c | if (p && p->swappable && p->mm->rss) |
mm | 306 | mm/vmscan.c | p->swap_cnt = AGE_CLUSTER_SIZE(p->mm->rss); |