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 | 345 | arch/i386/kernel/process.c | dump->u_tsize = ((unsigned long) current->mm->end_code) >> PAGE_SHIFT; |
mm | 346 | arch/i386/kernel/process.c | dump->u_dsize = ((unsigned long) (current->mm->brk + (PAGE_SIZE-1))) >> PAGE_SHIFT; |
mm | 142 | arch/i386/kernel/setup.c | init_task.mm->start_code = TASK_SIZE; |
mm | 143 | arch/i386/kernel/setup.c | init_task.mm->end_code = TASK_SIZE + (unsigned long) &_etext; |
mm | 144 | arch/i386/kernel/setup.c | init_task.mm->end_data = TASK_SIZE + (unsigned long) &_edata; |
mm | 145 | 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 | 237 | fs/binfmt_aout.c | current->mm->arg_start = (unsigned long) p; |
mm | 243 | fs/binfmt_aout.c | current->mm->arg_end = current->mm->env_start = (unsigned long) p; |
mm | 249 | fs/binfmt_aout.c | current->mm->env_end = (unsigned long) p; |
mm | 306 | fs/binfmt_aout.c | current->mm->end_code = ex.a_text + |
mm | 307 | fs/binfmt_aout.c | (current->mm->start_code = N_TXTADDR(ex)); |
mm | 308 | fs/binfmt_aout.c | current->mm->end_data = ex.a_data + |
mm | 309 | fs/binfmt_aout.c | (current->mm->start_data = N_DATADDR(ex)); |
mm | 310 | fs/binfmt_aout.c | current->mm->brk = ex.a_bss + |
mm | 311 | fs/binfmt_aout.c | (current->mm->start_brk = N_BSSADDR(ex)); |
mm | 313 | fs/binfmt_aout.c | current->mm->rss = 0; |
mm | 314 | fs/binfmt_aout.c | current->mm->mmap = NULL; |
mm | 384 | fs/binfmt_aout.c | set_brk(current->mm->start_brk, current->mm->brk); |
mm | 390 | 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 | 338 | fs/proc/array.c | if (!p || !p->mm || ptr >= TASK_SIZE) |
mm | 340 | fs/proc/array.c | page_dir = pgd_offset(p->mm,ptr); |
mm | 399 | fs/proc/array.c | if (!p || !*p || !(*p)->mm) |
mm | 401 | fs/proc/array.c | return get_array(p, (*p)->mm->env_start, (*p)->mm->env_end, buffer); |
mm | 408 | fs/proc/array.c | if (!p || !*p || !(*p)->mm) |
mm | 410 | fs/proc/array.c | return get_array(p, (*p)->mm->arg_start, (*p)->mm->arg_end, buffer); |
mm | 544 | fs/proc/array.c | struct mm_struct * mm = p->mm; |
mm | 546 | fs/proc/array.c | if (mm && mm != &init_mm) { |
mm | 547 | fs/proc/array.c | struct vm_area_struct * vma = mm->mmap; |
mm | 551 | fs/proc/array.c | for (vma = mm->mmap; vma; vma = vma->vm_next) { |
mm | 576 | fs/proc/array.c | mm->total_vm << (PAGE_SHIFT-10), |
mm | 577 | fs/proc/array.c | mm->locked_vm << (PAGE_SHIFT-10), |
mm | 578 | fs/proc/array.c | mm->rss << (PAGE_SHIFT-10), |
mm | 649 | fs/proc/array.c | if (tsk->mm && tsk->mm != &init_mm) { |
mm | 650 | fs/proc/array.c | struct vm_area_struct *vma = tsk->mm->mmap; |
mm | 714 | fs/proc/array.c | tsk->mm ? tsk->mm->rss : 0, /* you might want to shift this left 3 */ |
mm | 716 | fs/proc/array.c | tsk->mm ? tsk->mm->start_code : 0, |
mm | 717 | fs/proc/array.c | tsk->mm ? tsk->mm->end_code : 0, |
mm | 718 | fs/proc/array.c | tsk->mm ? tsk->mm->start_stack : 0, |
mm | 808 | fs/proc/array.c | if (tsk->mm && tsk->mm != &init_mm) { |
mm | 809 | fs/proc/array.c | struct vm_area_struct * vma = tsk->mm->mmap; |
mm | 812 | fs/proc/array.c | pgd_t *pgd = pgd_offset(tsk->mm, vma->vm_start); |
mm | 872 | fs/proc/array.c | if (!(*p)->mm || (*p)->mm == &init_mm || count == 0) |
mm | 880 | 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 | 426 | kernel/exit.c | struct mm_struct * mm = current->mm; |
mm | 429 | kernel/exit.c | if (mm) { |
mm | 430 | kernel/exit.c | if (!--mm->count) { |
mm | 431 | kernel/exit.c | exit_mmap(mm); |
mm | 433 | kernel/exit.c | kfree(mm); |
mm | 435 | kernel/exit.c | current->mm = NULL; |
mm | 78 | kernel/fork.c | static inline int dup_mmap(struct mm_struct * mm) |
mm | 82 | kernel/fork.c | mm->mmap = NULL; |
mm | 83 | kernel/fork.c | p = &mm->mmap; |
mm | 84 | kernel/fork.c | for (mpnt = current->mm->mmap ; mpnt ; mpnt = mpnt->vm_next) { |
mm | 87 | kernel/fork.c | exit_mmap(mm); |
mm | 92 | kernel/fork.c | tmp->vm_mm = mm; |
mm | 103 | kernel/fork.c | if (copy_page_range(mm, current->mm, tmp)) { |
mm | 104 | kernel/fork.c | exit_mmap(mm); |
mm | 110 | kernel/fork.c | build_mmap_avl(mm); |
mm | 117 | kernel/fork.c | SET_PAGE_DIR(tsk, current->mm->pgd); |
mm | 118 | kernel/fork.c | current->mm->count++; |
mm | 121 | kernel/fork.c | tsk->mm = kmalloc(sizeof(*tsk->mm), GFP_KERNEL); |
mm | 122 | kernel/fork.c | if (!tsk->mm) |
mm | 124 | kernel/fork.c | *tsk->mm = *current->mm; |
mm | 125 | kernel/fork.c | tsk->mm->count = 1; |
mm | 126 | kernel/fork.c | tsk->mm->def_flags = 0; |
mm | 132 | kernel/fork.c | if (dup_mmap(tsk->mm)) { |
mm | 553 | kernel/sys.c | if (brk < current->mm->end_code) |
mm | 554 | kernel/sys.c | return current->mm->brk; |
mm | 556 | kernel/sys.c | oldbrk = PAGE_ALIGN(current->mm->brk); |
mm | 558 | kernel/sys.c | return current->mm->brk = brk; |
mm | 563 | kernel/sys.c | if (brk <= current->mm->brk) { |
mm | 564 | kernel/sys.c | current->mm->brk = brk; |
mm | 574 | kernel/sys.c | if (brk - current->mm->end_code > rlim) |
mm | 575 | kernel/sys.c | return current->mm->brk; |
mm | 580 | kernel/sys.c | return current->mm->brk; |
mm | 594 | kernel/sys.c | return current->mm->brk; |
mm | 596 | kernel/sys.c | freepages += current->mm->rss; |
mm | 599 | kernel/sys.c | return current->mm->brk; |
mm | 604 | 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 | 695 | 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 | 835 | 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 | 70 | mm/mmap.c | if (current->mm->def_flags & VM_LOCKED) { |
mm | 71 | mm/mmap.c | unsigned long locked = current->mm->locked_vm << PAGE_SHIFT; |
mm | 133 | mm/mmap.c | vma->vm_mm = current->mm; |
mm | 138 | mm/mmap.c | vma->vm_flags |= current->mm->def_flags; |
mm | 182 | mm/mmap.c | current->mm->total_vm += len >> PAGE_SHIFT; |
mm | 185 | mm/mmap.c | current->mm->locked_vm += len >> PAGE_SHIFT; |
mm | 582 | mm/mmap.c | avl_checkheights(task->mm->mmap_avl); |
mm | 583 | mm/mmap.c | avl_checkorder(task->mm->mmap_avl); |
mm | 708 | mm/mmap.c | avl_neighbours(mpnt, current->mm->mmap_avl, &prev, &next); |
mm | 712 | mm/mmap.c | npp = (prev ? &prev->vm_next : ¤t->mm->mmap); |
mm | 718 | mm/mmap.c | avl_remove(mpnt, ¤t->mm->mmap_avl); |
mm | 744 | mm/mmap.c | zap_page_range(current->mm, st, end-st); |
mm | 749 | mm/mmap.c | zap_page_range(current->mm, addr, len); |
mm | 754 | mm/mmap.c | void build_mmap_avl(struct mm_struct * mm) |
mm | 758 | mm/mmap.c | mm->mmap_avl = NULL; |
mm | 759 | mm/mmap.c | for (vma = mm->mmap; vma; vma = vma->vm_next) |
mm | 760 | mm/mmap.c | avl_insert(vma, &mm->mmap_avl); |
mm | 764 | mm/mmap.c | void exit_mmap(struct mm_struct * mm) |
mm | 768 | mm/mmap.c | mpnt = mm->mmap; |
mm | 769 | mm/mmap.c | mm->mmap = NULL; |
mm | 770 | mm/mmap.c | mm->mmap_avl = NULL; |
mm | 771 | mm/mmap.c | mm->rss = 0; |
mm | 772 | mm/mmap.c | mm->total_vm = 0; |
mm | 773 | mm/mmap.c | mm->locked_vm = 0; |
mm | 783 | mm/mmap.c | zap_page_range(mm, mpnt->vm_start, mpnt->vm_end-mpnt->vm_start); |
mm | 803 | mm/mmap.c | p = &t->mm->mmap; |
mm | 816 | mm/mmap.c | avl_insert_neighbours(vmp, &t->mm->mmap_avl, &prev, &next); |
mm | 817 | mm/mmap.c | if ((prev ? prev->vm_next : t->mm->mmap) != next) |
mm | 822 | mm/mmap.c | t->mm->mmap = vmp; |
mm | 878 | mm/mmap.c | avl_neighbours(mpnt, task->mm->mmap_avl, &prev, &next); |
mm | 922 | 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 | 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 | 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); |