/fs/proc/ |
D | task_mmu.c | 17 void task_mem(struct seq_file *m, struct mm_struct *mm) in task_mem() argument 29 hiwater_vm = total_vm = mm->total_vm; in task_mem() 30 if (hiwater_vm < mm->hiwater_vm) in task_mem() 31 hiwater_vm = mm->hiwater_vm; in task_mem() 32 hiwater_rss = total_rss = get_mm_rss(mm); in task_mem() 33 if (hiwater_rss < mm->hiwater_rss) in task_mem() 34 hiwater_rss = mm->hiwater_rss; in task_mem() 36 data = mm->total_vm - mm->shared_vm - mm->stack_vm; in task_mem() 37 text = (PAGE_ALIGN(mm->end_code) - (mm->start_code & PAGE_MASK)) >> 10; in task_mem() 38 lib = (mm->exec_vm << (PAGE_SHIFT-10)) - text; in task_mem() [all …]
|
D | task_nommu.c | 16 void task_mem(struct seq_file *m, struct mm_struct *mm) in task_mem() argument 23 down_read(&mm->mmap_sem); in task_mem() 24 for (p = rb_first(&mm->mm_rb); p; p = rb_next(p)) { in task_mem() 37 if (atomic_read(&mm->mm_count) > 1 || in task_mem() 47 if (atomic_read(&mm->mm_count) > 1) in task_mem() 48 sbytes += kobjsize(mm); in task_mem() 50 bytes += kobjsize(mm); in task_mem() 75 up_read(&mm->mmap_sem); in task_mem() 78 unsigned long task_vsize(struct mm_struct *mm) in task_vsize() argument 84 down_read(&mm->mmap_sem); in task_vsize() [all …]
|
D | array.c | 326 struct mm_struct *mm = get_task_mm(task); in proc_pid_status() local 331 if (mm) { in proc_pid_status() 332 task_mem(m, mm); in proc_pid_status() 333 mmput(mm); in proc_pid_status() 355 struct mm_struct *mm; in do_task_stat() local 367 mm = get_task_mm(task); in do_task_stat() 368 if (mm) { in do_task_stat() 369 vsize = task_vsize(mm); in do_task_stat() 475 mm ? get_mm_rss(mm) : 0, in do_task_stat() 477 mm ? mm->start_code : 0, in do_task_stat() [all …]
|
D | base.c | 253 struct mm_struct *mm = get_task_mm(task); in mm_for_maps() local 254 if (!mm) in mm_for_maps() 256 down_read(&mm->mmap_sem); in mm_for_maps() 258 if (task->mm != mm) in mm_for_maps() 260 if (task->mm != current->mm && in mm_for_maps() 265 return mm; in mm_for_maps() 268 up_read(&mm->mmap_sem); in mm_for_maps() 269 mmput(mm); in mm_for_maps() 277 struct mm_struct *mm = get_task_mm(task); in proc_pid_cmdline() local 278 if (!mm) in proc_pid_cmdline() [all …]
|
/fs/ |
D | binfmt_som.c | 91 p = current->mm->arg_start; in create_som_tables() 97 current->mm->arg_end = current->mm->env_start = p; in create_som_tables() 103 current->mm->env_end = p; in create_som_tables() 148 current->mm->start_code = code_start; in map_som_binary() 149 current->mm->end_code = code_start + code_size; in map_som_binary() 150 down_write(¤t->mm->mmap_sem); in map_som_binary() 153 up_write(¤t->mm->mmap_sem); in map_som_binary() 159 current->mm->start_data = data_start; in map_som_binary() 160 current->mm->end_data = bss_start = data_start + data_size; in map_som_binary() 161 down_write(¤t->mm->mmap_sem); in map_som_binary() [all …]
|
D | binfmt_elf_fdpic.c | 318 current->mm->start_code = 0; in load_elf_fdpic_binary() 319 current->mm->end_code = 0; in load_elf_fdpic_binary() 320 current->mm->start_stack = 0; in load_elf_fdpic_binary() 321 current->mm->start_data = 0; in load_elf_fdpic_binary() 322 current->mm->end_data = 0; in load_elf_fdpic_binary() 323 current->mm->context.exec_fdpic_loadmap = 0; in load_elf_fdpic_binary() 324 current->mm->context.interp_fdpic_loadmap = 0; in load_elf_fdpic_binary() 331 ¤t->mm->start_stack, in load_elf_fdpic_binary() 332 ¤t->mm->start_brk); in load_elf_fdpic_binary() 334 retval = setup_arg_pages(bprm, current->mm->start_stack, in load_elf_fdpic_binary() [all …]
|
D | exec.c | 184 ret = get_user_pages(current, bprm->mm, pos, in get_arg_page() 240 struct mm_struct *mm = bprm->mm; in __bprm_mm_init() local 246 down_write(&mm->mmap_sem); in __bprm_mm_init() 247 vma->vm_mm = mm; in __bprm_mm_init() 259 err = insert_vm_struct(mm, vma); in __bprm_mm_init() 263 mm->stack_vm = mm->total_vm = 1; in __bprm_mm_init() 264 up_write(&mm->mmap_sem); in __bprm_mm_init() 268 up_write(&mm->mmap_sem); in __bprm_mm_init() 344 struct mm_struct *mm = NULL; in bprm_mm_init() local 346 bprm->mm = mm = mm_alloc(); in bprm_mm_init() [all …]
|
D | binfmt_aout.c | 53 down_write(¤t->mm->mmap_sem); in set_brk() 55 up_write(¤t->mm->mmap_sem); in set_brk() 193 current->mm->arg_start = (unsigned long) p; in create_aout_tables() 202 current->mm->arg_end = current->mm->env_start = (unsigned long) p; in create_aout_tables() 211 current->mm->env_end = (unsigned long) p; in create_aout_tables() 267 current->mm->end_code = ex.a_text + in load_aout_binary() 268 (current->mm->start_code = N_TXTADDR(ex)); in load_aout_binary() 269 current->mm->end_data = ex.a_data + in load_aout_binary() 270 (current->mm->start_data = N_DATADDR(ex)); in load_aout_binary() 271 current->mm->brk = ex.a_bss + in load_aout_binary() [all …]
|
D | binfmt_flat.c | 131 current->mm->arg_start = (unsigned long) p; in create_flat_tables() 139 current->mm->arg_end = current->mm->env_start = (unsigned long) p; in create_flat_tables() 147 current->mm->env_end = (unsigned long) p; in create_flat_tables() 380 ptr = (unsigned long *) (current->mm->start_code + r.reloc.offset); in old_reloc() 382 ptr = (unsigned long *) (current->mm->start_data + r.reloc.offset); in old_reloc() 393 *ptr += current->mm->start_code; in old_reloc() 396 *ptr += current->mm->start_data; in old_reloc() 399 *ptr += current->mm->end_data; in old_reloc() 533 down_write(¤t->mm->mmap_sem); in load_flat_file() 536 up_write(¤t->mm->mmap_sem); in load_flat_file() [all …]
|
D | aio.c | 91 down_write(&ctx->mm->mmap_sem); in aio_free_ring() 92 do_munmap(ctx->mm, info->mmap_base, info->mmap_size); in aio_free_ring() 93 up_write(&ctx->mm->mmap_sem); in aio_free_ring() 132 down_write(&ctx->mm->mmap_sem); in aio_setup_ring() 137 up_write(&ctx->mm->mmap_sem); in aio_setup_ring() 144 info->nr_pages = get_user_pages(current, ctx->mm, in aio_setup_ring() 147 up_write(&ctx->mm->mmap_sem); in aio_setup_ring() 220 mmdrop(ctx->mm); in __put_ioctx() 221 ctx->mm = NULL; in __put_ioctx() 241 struct mm_struct *mm; in ioctx_alloc() local [all …]
|
D | binfmt_elf.c | 91 down_write(¤t->mm->mmap_sem); in set_brk() 93 up_write(¤t->mm->mmap_sem); in set_brk() 97 current->mm->start_brk = current->mm->brk = end; in set_brk() 211 elf_info = (elf_addr_t *)current->mm->saved_auxv; in create_elf_tables() 258 sizeof current->mm->saved_auxv - ei_index * sizeof elf_info[0]); in create_elf_tables() 281 vma = find_extend_vma(current->mm, bprm->p); in create_elf_tables() 292 p = current->mm->arg_end = current->mm->arg_start; in create_elf_tables() 304 current->mm->arg_end = current->mm->env_start = p; in create_elf_tables() 316 current->mm->env_end = p; in create_elf_tables() 342 down_write(¤t->mm->mmap_sem); in elf_map() [all …]
|
D | compat.c | 1348 ret = get_user_pages(current, bprm->mm, pos, in compat_copy_strings() 1463 if (bprm->mm) in compat_do_execve() 1464 mmput(bprm->mm); in compat_do_execve()
|
/fs/nfs/ |
D | direct.c | 309 down_read(¤t->mm->mmap_sem); in nfs_direct_read_schedule_segment() 310 result = get_user_pages(current, current->mm, user_addr, in nfs_direct_read_schedule_segment() 312 up_read(¤t->mm->mmap_sem); in nfs_direct_read_schedule_segment() 723 down_read(¤t->mm->mmap_sem); in nfs_direct_write_schedule_segment() 724 result = get_user_pages(current, current->mm, user_addr, in nfs_direct_write_schedule_segment() 726 up_read(¤t->mm->mmap_sem); in nfs_direct_write_schedule_segment()
|
/fs/hugetlbfs/ |
D | inode.c | 134 struct mm_struct *mm = current->mm; in hugetlb_get_unmapped_area() local 152 vma = find_vma(mm, addr); in hugetlb_get_unmapped_area() 158 start_addr = mm->free_area_cache; in hugetlb_get_unmapped_area() 160 if (len <= mm->cached_hole_size) in hugetlb_get_unmapped_area() 166 for (vma = find_vma(mm, addr); ; vma = vma->vm_next) { in hugetlb_get_unmapped_area()
|
/fs/fuse/ |
D | dev.c | 548 down_read(¤t->mm->mmap_sem); in fuse_copy_fill() 549 err = get_user_pages(current, current->mm, cs->addr, 1, cs->write, 0, in fuse_copy_fill() 551 up_read(¤t->mm->mmap_sem); in fuse_copy_fill()
|
D | file.c | 945 if (!current->mm) in fuse_get_user_pages() 951 down_read(¤t->mm->mmap_sem); in fuse_get_user_pages() 952 npages = get_user_pages(current, current->mm, user_addr, npages, write, in fuse_get_user_pages() 954 up_read(¤t->mm->mmap_sem); in fuse_get_user_pages()
|
/fs/ntfs/ |
D | ChangeLog | 671 the generic helper functions provided by mm/filemap.c. 952 - Pages are no longer kmapped by mm/filemap.c::generic_file_write() 1118 the page cache and to use all the normal vfs/mm functionality:
|