tag | line | file | source code |
mm | 227 | arch/i386/kernel/process.c | dump->u_tsize = ((unsigned long) current->mm->end_code) >> 12; |
mm | 228 | arch/i386/kernel/process.c | dump->u_dsize = ((unsigned long) (current->mm->brk + (PAGE_SIZE-1))) >> 12; |
mm | 100 | arch/i386/kernel/setup.c | init_task.mm->start_code = TASK_SIZE; |
mm | 101 | arch/i386/kernel/setup.c | init_task.mm->end_code = TASK_SIZE + (unsigned long) &_etext; |
mm | 102 | arch/i386/kernel/setup.c | init_task.mm->end_data = TASK_SIZE + (unsigned long) &_edata; |
mm | 103 | 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 | 129 | arch/mips/kernel/process.c | dump->u_tsize = ((unsigned long) current->mm->end_code) >> 12; |
mm | 130 | arch/mips/kernel/process.c | dump->u_dsize = ((unsigned long) (current->mm->brk + (PAGE_SIZE-1))) >> 12; |
mm | 47 | arch/mips/mm/fault.c | for (vma = current->mm->mmap ; ; vma = vma->vm_next) { |
mm | 249 | arch/sparc/kernel/setup.c | init_task.mm->start_code = PAGE_OFFSET; |
mm | 250 | arch/sparc/kernel/setup.c | init_task.mm->end_code = PAGE_OFFSET + (unsigned long) &etext; |
mm | 251 | arch/sparc/kernel/setup.c | init_task.mm->end_data = PAGE_OFFSET + (unsigned long) &edata; |
mm | 252 | arch/sparc/kernel/setup.c | init_task.mm->brk = PAGE_OFFSET + (unsigned long) &end; |
mm | 253 | arch/sparc/kernel/setup.c | init_task.mm->mmap->vm_page_prot = PAGE_SHARED; |
mm | 3780 | drivers/block/floppy.c | for(i=current->mm->env_start; |
mm | 3781 | drivers/block/floppy.c | i< current->mm->env_end; |
mm | 812 | drivers/block/sbpcd.c | u_int mm; |
mm | 816 | drivers/block/sbpcd.c | mm = (blk + CD_MSF_OFFSET) % (CD_SECS * CD_FRAMES); |
mm | 817 | drivers/block/sbpcd.c | msf.c[1] = mm / CD_FRAMES; |
mm | 818 | drivers/block/sbpcd.c | msf.c[0] = mm % CD_FRAMES; |
mm | 100 | fs/binfmt_elf.c | mpnt->vm_mm = current->mm; |
mm | 117 | fs/binfmt_elf.c | current->mm->stk_vma = mpnt; |
mm | 156 | fs/binfmt_elf.c | current->mm->arg_start = (unsigned long) p; |
mm | 162 | fs/binfmt_elf.c | current->mm->arg_end = current->mm->env_start = (unsigned long) p; |
mm | 168 | fs/binfmt_elf.c | current->mm->env_end = (unsigned long) p; |
mm | 297 | fs/binfmt_elf.c | current->mm->brk = interp_ex->a_bss + |
mm | 298 | fs/binfmt_elf.c | (current->mm->end_data = interp_ex->a_data + |
mm | 299 | fs/binfmt_elf.c | (current->mm->end_code = interp_ex->a_text)); |
mm | 531 | fs/binfmt_elf.c | current->mm->end_data = 0; |
mm | 532 | fs/binfmt_elf.c | current->mm->end_code = 0; |
mm | 533 | fs/binfmt_elf.c | current->mm->start_mmap = ELF_START_MMAP; |
mm | 534 | fs/binfmt_elf.c | current->mm->mmap = NULL; |
mm | 539 | fs/binfmt_elf.c | current->mm->rss = 0; |
mm | 541 | fs/binfmt_elf.c | current->mm->start_stack = bprm->p; |
mm | 646 | fs/binfmt_elf.c | current->mm->arg_start += strlen(passed_fileno) + 1; |
mm | 647 | fs/binfmt_elf.c | current->mm->start_brk = current->mm->brk = elf_brk; |
mm | 648 | fs/binfmt_elf.c | current->mm->end_code = end_code; |
mm | 649 | fs/binfmt_elf.c | current->mm->start_code = start_code; |
mm | 650 | fs/binfmt_elf.c | current->mm->end_data = end_data; |
mm | 651 | fs/binfmt_elf.c | current->mm->start_stack = bprm->p; |
mm | 657 | fs/binfmt_elf.c | current->mm->brk = (elf_bss + 0xfff) & 0xfffff000; |
mm | 663 | fs/binfmt_elf.c | printk("(start_brk) %x\n" , current->mm->start_brk); |
mm | 664 | fs/binfmt_elf.c | printk("(end_code) %x\n" , current->mm->end_code); |
mm | 665 | fs/binfmt_elf.c | printk("(start_code) %x\n" , current->mm->start_code); |
mm | 666 | fs/binfmt_elf.c | printk("(end_data) %x\n" , current->mm->end_data); |
mm | 667 | fs/binfmt_elf.c | printk("(start_stack) %x\n" , current->mm->start_stack); |
mm | 668 | fs/binfmt_elf.c | printk("(brk) %x\n" , current->mm->brk); |
mm | 955 | fs/binfmt_elf.c | for(vma = current->mm->mmap; vma != NULL; vma = vma->vm_next) { |
mm | 1081 | fs/binfmt_elf.c | len = current->mm->arg_end - current->mm->arg_start; |
mm | 1084 | fs/binfmt_elf.c | (const char *)current->mm->arg_start, len); |
mm | 1138 | fs/binfmt_elf.c | for(vma = current->mm->mmap, i = 0; |
mm | 1172 | fs/binfmt_elf.c | for(i = 0, vma = current->mm->mmap; |
mm | 315 | fs/exec.c | mpnt->vm_mm = current->mm; |
mm | 351 | fs/exec.c | current->mm->arg_start = (unsigned long) p; |
mm | 357 | fs/exec.c | current->mm->arg_end = current->mm->env_start = (unsigned long) p; |
mm | 363 | fs/exec.c | current->mm->env_end = (unsigned long) p; |
mm | 467 | fs/exec.c | current->mm->start_code = code_base; |
mm | 472 | fs/exec.c | current->mm->rss++; |
mm | 534 | fs/exec.c | if (current->mm->count > 1) { |
mm | 535 | fs/exec.c | struct mm_struct *mm = kmalloc(sizeof(*mm), GFP_KERNEL); |
mm | 536 | fs/exec.c | if (!mm) { |
mm | 541 | fs/exec.c | *mm = *current->mm; |
mm | 542 | fs/exec.c | mm->count = 1; |
mm | 543 | fs/exec.c | mm->mmap = NULL; |
mm | 544 | fs/exec.c | mm->mmap_avl = NULL; |
mm | 545 | fs/exec.c | current->mm->count--; |
mm | 546 | fs/exec.c | current->mm = mm; |
mm | 550 | fs/exec.c | exit_mmap(current->mm); |
mm | 843 | fs/exec.c | current->mm->end_code = ex.a_text + |
mm | 844 | fs/exec.c | (current->mm->start_code = N_TXTADDR(ex)); |
mm | 845 | fs/exec.c | current->mm->end_data = ex.a_data + |
mm | 846 | fs/exec.c | (current->mm->start_data = N_DATADDR(ex)); |
mm | 847 | fs/exec.c | current->mm->brk = ex.a_bss + |
mm | 848 | fs/exec.c | (current->mm->start_brk = N_BSSADDR(ex)); |
mm | 850 | fs/exec.c | current->mm->rss = 0; |
mm | 851 | fs/exec.c | current->mm->mmap = NULL; |
mm | 911 | fs/exec.c | set_brk(current->mm->start_brk, current->mm->brk); |
mm | 921 | fs/exec.c | current->mm->start_stack = p; |
mm | 132 | fs/namei.c | for(mpnt = (*p)->mm->mmap; mpnt; mpnt = mpnt->vm_next) { |
mm | 291 | fs/proc/array.c | if (!p || !p->mm || ptr >= TASK_SIZE) |
mm | 293 | fs/proc/array.c | page_dir = pgd_offset(p->mm,ptr); |
mm | 352 | fs/proc/array.c | if (!p || !*p || !(*p)->mm) |
mm | 354 | fs/proc/array.c | return get_array(p, (*p)->mm->env_start, (*p)->mm->env_end, buffer); |
mm | 361 | fs/proc/array.c | if (!p || !*p || !(*p)->mm) |
mm | 363 | fs/proc/array.c | return get_array(p, (*p)->mm->arg_start, (*p)->mm->arg_end, buffer); |
mm | 410 | fs/proc/array.c | if (tsk->mm) { |
mm | 415 | fs/proc/array.c | vsize = tsk->mm->brk - tsk->mm->start_code + PAGE_SIZE-1; |
mm | 468 | fs/proc/array.c | tsk->mm ? tsk->mm->rss : 0, /* you might want to shift this left 3 */ |
mm | 470 | fs/proc/array.c | tsk->mm ? tsk->mm->start_code : 0, |
mm | 471 | fs/proc/array.c | tsk->mm ? tsk->mm->end_code : 0, |
mm | 472 | fs/proc/array.c | tsk->mm ? tsk->mm->start_stack : 0, |
mm | 562 | fs/proc/array.c | if (tsk->mm) { |
mm | 563 | fs/proc/array.c | struct vm_area_struct * vma = tsk->mm->mmap; |
mm | 566 | fs/proc/array.c | pgd_t *pgd = pgd_offset(tsk->mm, vma->vm_start); |
mm | 626 | fs/proc/array.c | if (!(*p)->mm || count == 0) |
mm | 634 | fs/proc/array.c | for (map = (*p)->mm->mmap, i = 0; map && (i < lineno); map = map->vm_next, i++) |
mm | 137 | fs/proc/link.c | struct vm_area_struct * 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 | 252 | include/asm-alpha/pgtable.h | extern inline pgd_t * pgd_offset(struct mm_struct * mm, unsigned long address) |
mm | 254 | include/asm-alpha/pgtable.h | return mm->pgd + ((address >> PGDIR_SHIFT) & (PTRS_PER_PAGE - 1)); |
mm | 68 | include/asm-i386/page.h | do { if ((task)->mm == current->mm) invalidate(); } while (0) |
mm | 70 | include/asm-i386/page.h | do { if ((task)->mm == current->mm) invalidate(); } while (0) |
mm | 222 | include/asm-i386/pgtable.h | extern inline pgd_t * pgd_offset(struct mm_struct * mm, unsigned long address) |
mm | 224 | include/asm-i386/pgtable.h | return mm->pgd + (address >> PGDIR_SHIFT); |
mm | 184 | include/linux/mm.h | extern int zap_page_range(struct mm_struct *mm, unsigned long address, unsigned long size); |
mm | 215 | include/linux/sched.h | struct mm_struct *mm; |
mm | 488 | ipc/shm.c | if (addr < current->mm->start_stack && |
mm | 489 | ipc/shm.c | addr > current->mm->start_stack - PAGE_SIZE*(shp->shm_npages + 4)) |
mm | 517 | ipc/shm.c | shmd->vm_mm = current->mm; |
mm | 593 | ipc/shm.c | for (shmd = current->mm->mmap; shmd; shmd = shmdnext) { |
mm | 408 | kernel/exit.c | struct mm_struct * mm = current->mm; |
mm | 411 | kernel/exit.c | if (mm) { |
mm | 412 | kernel/exit.c | if (!--mm->count) { |
mm | 413 | kernel/exit.c | exit_mmap(mm); |
mm | 415 | kernel/exit.c | kfree(mm); |
mm | 417 | kernel/exit.c | current->mm = NULL; |
mm | 64 | kernel/fork.c | static int dup_mmap(struct mm_struct * mm) |
mm | 68 | kernel/fork.c | mm->mmap = NULL; |
mm | 69 | kernel/fork.c | p = &mm->mmap; |
mm | 70 | kernel/fork.c | for (mpnt = current->mm->mmap ; mpnt ; mpnt = mpnt->vm_next) { |
mm | 73 | kernel/fork.c | exit_mmap(mm); |
mm | 77 | kernel/fork.c | tmp->vm_mm = mm; |
mm | 88 | kernel/fork.c | if (copy_page_range(mm, current->mm, tmp)) { |
mm | 89 | kernel/fork.c | exit_mmap(mm); |
mm | 95 | kernel/fork.c | build_mmap_avl(mm); |
mm | 102 | kernel/fork.c | SET_PAGE_DIR(tsk, current->mm->pgd); |
mm | 103 | kernel/fork.c | current->mm->count++; |
mm | 106 | kernel/fork.c | tsk->mm = kmalloc(sizeof(*tsk->mm), GFP_KERNEL); |
mm | 107 | kernel/fork.c | if (!tsk->mm) |
mm | 109 | kernel/fork.c | *tsk->mm = *current->mm; |
mm | 110 | kernel/fork.c | tsk->mm->count = 1; |
mm | 115 | kernel/fork.c | if (dup_mmap(tsk->mm)) { |
mm | 403 | kernel/sys.c | if (brk < current->mm->end_code) |
mm | 404 | kernel/sys.c | return current->mm->brk; |
mm | 406 | kernel/sys.c | oldbrk = PAGE_ALIGN(current->mm->brk); |
mm | 408 | kernel/sys.c | return current->mm->brk = brk; |
mm | 413 | kernel/sys.c | if (brk <= current->mm->brk) { |
mm | 414 | kernel/sys.c | current->mm->brk = brk; |
mm | 424 | kernel/sys.c | if (brk - current->mm->end_code > rlim) |
mm | 425 | kernel/sys.c | return current->mm->brk; |
mm | 430 | kernel/sys.c | return current->mm->brk; |
mm | 442 | kernel/sys.c | return current->mm->brk; |
mm | 444 | kernel/sys.c | freepages += current->mm->rss; |
mm | 447 | kernel/sys.c | return current->mm->brk; |
mm | 452 | kernel/sys.c | current->mm->brk = brk; |
mm | 264 | mm/filemap.c | dir = pgd_offset(current->mm, address); |
mm | 133 | mm/memory.c | tsk->mm->pgd = new_pg; |
mm | 153 | mm/memory.c | page_dir = pgd_offset(tsk->mm, 0); |
mm | 182 | mm/memory.c | page_dir = tsk->mm->pgd; |
mm | 192 | mm/memory.c | tsk->mm->pgd = swapper_pg_dir; /* or else... */ |
mm | 320 | mm/memory.c | if (current->mm->rss <= 0) |
mm | 322 | mm/memory.c | current->mm->rss--; |
mm | 381 | mm/memory.c | int zap_page_range(struct mm_struct *mm, unsigned long address, unsigned long size) |
mm | 386 | mm/memory.c | dir = pgd_offset(mm, address); |
mm | 402 | mm/memory.c | return zap_page_range(current->mm, address, size); |
mm | 449 | mm/memory.c | dir = pgd_offset(current->mm, address); |
mm | 519 | mm/memory.c | dir = pgd_offset(current->mm, from); |
mm | 563 | mm/memory.c | pgd = pgd_offset(tsk->mm,address); |
mm | 940 | mm/memory.c | pgd = pgd_offset(tsk->mm, address); |
mm | 116 | mm/mmap.c | vma->vm_mm = current->mm; |
mm | 179 | mm/mmap.c | for (vmm = current->mm->mmap; ; vmm = vmm->vm_next) { |
mm | 234 | mm/mmap.c | if (!task->mm) |
mm | 236 | mm/mmap.c | for (vma = task->mm->mmap ; ; vma = vma->vm_next) { |
mm | 246 | mm/mmap.c | if (!task->mm) |
mm | 248 | mm/mmap.c | for (tree = task->mm->mmap_avl ; ; ) { |
mm | 269 | mm/mmap.c | for (vma = task->mm->mmap; vma; vma = vma->vm_next) { |
mm | 612 | mm/mmap.c | avl_checkheights(task->mm->mmap_avl); |
mm | 613 | mm/mmap.c | avl_checkorder(task->mm->mmap_avl); |
mm | 735 | mm/mmap.c | avl_neighbours(mpnt, current->mm->mmap_avl, &prev, &next); |
mm | 739 | mm/mmap.c | npp = (prev ? &prev->vm_next : ¤t->mm->mmap); |
mm | 745 | mm/mmap.c | avl_remove(mpnt, ¤t->mm->mmap_avl); |
mm | 781 | mm/mmap.c | void build_mmap_avl(struct mm_struct * mm) |
mm | 785 | mm/mmap.c | mm->mmap_avl = NULL; |
mm | 786 | mm/mmap.c | for (vma = mm->mmap; vma; vma = vma->vm_next) |
mm | 787 | mm/mmap.c | avl_insert(vma, &mm->mmap_avl); |
mm | 791 | mm/mmap.c | void exit_mmap(struct mm_struct * mm) |
mm | 795 | mm/mmap.c | mpnt = mm->mmap; |
mm | 796 | mm/mmap.c | mm->mmap = NULL; |
mm | 797 | mm/mmap.c | mm->mmap_avl = NULL; |
mm | 805 | mm/mmap.c | zap_page_range(mm, mpnt->vm_start, mpnt->vm_end-mpnt->vm_start); |
mm | 823 | mm/mmap.c | p = &t->mm->mmap; |
mm | 836 | mm/mmap.c | avl_insert_neighbours(vmp, &t->mm->mmap_avl, &prev, &next); |
mm | 837 | mm/mmap.c | if ((prev ? prev->vm_next : t->mm->mmap) != next) |
mm | 842 | mm/mmap.c | t->mm->mmap = vmp; |
mm | 898 | mm/mmap.c | avl_neighbours(mpnt, task->mm->mmap_avl, &prev, &next); |
mm | 942 | mm/mmap.c | avl_remove(mpnt, &task->mm->mmap_avl); |
mm | 76 | mm/mprotect.c | dir = pgd_offset(current->mm, start); |
mm | 546 | mm/swap.c | int result = swap_out_vma(p, vma, pgd_offset(p->mm, address), address, limit); |
mm | 581 | mm/swap.c | if (p && p->swappable && p->mm->rss) |
mm | 958 | mm/swap.c | vma = p->mm->mmap; |
mm | 960 | mm/swap.c | pgd_t * pgd = pgd_offset(p->mm, vma->vm_start); |
mm | 35 | mm/vmalloc.c | *pgd_offset(p->mm,address) = entry; |