taglinefilesource code
vma164arch/alpha/kernel/ptrace.cstruct vm_area_struct * vma, unsigned long addr)
vma173arch/alpha/kernel/ptrace.cpgdir = pgd_offset(vma->vm_mm, addr);
vma175arch/alpha/kernel/ptrace.cdo_no_page(tsk, vma, addr, 0);
vma185arch/alpha/kernel/ptrace.cdo_no_page(tsk, vma, addr, 0);
vma195arch/alpha/kernel/ptrace.cdo_no_page(tsk, vma, addr, 0);
vma215arch/alpha/kernel/ptrace.cstatic void put_long(struct task_struct * tsk, struct vm_area_struct * vma,
vma224arch/alpha/kernel/ptrace.cpgdir = pgd_offset(vma->vm_mm, addr);
vma226arch/alpha/kernel/ptrace.cdo_no_page(tsk, vma, addr, 1);
vma236arch/alpha/kernel/ptrace.cdo_no_page(tsk, vma, addr, 1);
vma246arch/alpha/kernel/ptrace.cdo_no_page(tsk, vma, addr, 1);
vma251arch/alpha/kernel/ptrace.cdo_wp_page(tsk, vma, addr, 1);
vma259arch/alpha/kernel/ptrace.cset_pte(pgtable, pte_mkdirty(mk_pte(page, vma->vm_page_prot)));
vma266arch/alpha/kernel/ptrace.cstruct vm_area_struct * vma;
vma269arch/alpha/kernel/ptrace.cvma = find_vma(tsk,addr);
vma270arch/alpha/kernel/ptrace.cif (!vma)
vma272arch/alpha/kernel/ptrace.cif (vma->vm_start <= addr)
vma273arch/alpha/kernel/ptrace.creturn vma;
vma274arch/alpha/kernel/ptrace.cif (!(vma->vm_flags & VM_GROWSDOWN))
vma276arch/alpha/kernel/ptrace.cif (vma->vm_end - addr > tsk->rlim[RLIMIT_STACK].rlim_cur)
vma278arch/alpha/kernel/ptrace.cvma->vm_offset -= vma->vm_start - addr;
vma279arch/alpha/kernel/ptrace.cvma->vm_start = addr;
vma280arch/alpha/kernel/ptrace.creturn vma;
vma290arch/alpha/kernel/ptrace.cstruct vm_area_struct * vma = find_extend_vma(tsk, addr);
vma293arch/alpha/kernel/ptrace.cif (!vma) {
vma298arch/alpha/kernel/ptrace.cstruct vm_area_struct * vma_high = vma;
vma301arch/alpha/kernel/ptrace.cif (addr + sizeof(long) >= vma->vm_end) {
vma302arch/alpha/kernel/ptrace.cvma_high = vma->vm_next;
vma303arch/alpha/kernel/ptrace.cif (!vma_high || vma_high->vm_start != vma->vm_end)
vma308arch/alpha/kernel/ptrace.clow = get_long(tsk, vma, addr);
vma318arch/alpha/kernel/ptrace.clong l = get_long(tsk, vma, addr);
vma333arch/alpha/kernel/ptrace.cstruct vm_area_struct * vma = find_extend_vma(tsk, addr);
vma335arch/alpha/kernel/ptrace.cif (!vma)
vma339arch/alpha/kernel/ptrace.cstruct vm_area_struct * vma_high = vma;
vma341arch/alpha/kernel/ptrace.cif (addr + sizeof(long) >= vma->vm_end) {
vma342arch/alpha/kernel/ptrace.cvma_high = vma->vm_next;
vma343arch/alpha/kernel/ptrace.cif (!vma_high || vma_high->vm_start != vma->vm_end)
vma348arch/alpha/kernel/ptrace.clow  = get_long(tsk, vma, addr);
vma354arch/alpha/kernel/ptrace.cput_long(tsk, vma, addr, low);
vma357arch/alpha/kernel/ptrace.cput_long(tsk, vma, addr, data);
vma49arch/alpha/mm/fault.cstruct vm_area_struct * vma;
vma51arch/alpha/mm/fault.cvma = find_vma(current, address);
vma52arch/alpha/mm/fault.cif (!vma)
vma54arch/alpha/mm/fault.cif (vma->vm_start <= address)
vma56arch/alpha/mm/fault.cif (!(vma->vm_flags & VM_GROWSDOWN))
vma58arch/alpha/mm/fault.cif (vma->vm_end - address > current->rlim[RLIMIT_STACK].rlim_cur)
vma60arch/alpha/mm/fault.cvma->vm_offset -= vma->vm_start - (address & PAGE_MASK);
vma61arch/alpha/mm/fault.cvma->vm_start = (address & PAGE_MASK);
vma68arch/alpha/mm/fault.cif (!(vma->vm_flags & VM_EXEC))
vma72arch/alpha/mm/fault.cif (!(vma->vm_flags & (VM_READ | VM_WRITE)))
vma75arch/alpha/mm/fault.cif (!(vma->vm_flags & VM_WRITE))
vma79arch/alpha/mm/fault.chandle_mm_fault(vma, address, cause > 0);
vma87arch/i386/kernel/ptrace.cstruct vm_area_struct * vma, unsigned long addr)
vma95arch/i386/kernel/ptrace.cpgdir = pgd_offset(vma->vm_mm, addr);
vma97arch/i386/kernel/ptrace.cdo_no_page(tsk, vma, addr, 0);
vma107arch/i386/kernel/ptrace.cdo_no_page(tsk, vma, addr, 0);
vma117arch/i386/kernel/ptrace.cdo_no_page(tsk, vma, addr, 0);
vma137arch/i386/kernel/ptrace.cstatic void put_long(struct task_struct * tsk, struct vm_area_struct * vma, unsigned long addr,
vma146arch/i386/kernel/ptrace.cpgdir = pgd_offset(vma->vm_mm, addr);
vma148arch/i386/kernel/ptrace.cdo_no_page(tsk, vma, addr, 1);
vma158arch/i386/kernel/ptrace.cdo_no_page(tsk, vma, addr, 1);
vma168arch/i386/kernel/ptrace.cdo_no_page(tsk, vma, addr, 1);
vma173arch/i386/kernel/ptrace.cdo_wp_page(tsk, vma, addr, 1);
vma181arch/i386/kernel/ptrace.cset_pte(pgtable, pte_mkdirty(mk_pte(page, vma->vm_page_prot)));
vma187arch/i386/kernel/ptrace.cstruct vm_area_struct * vma;
vma190arch/i386/kernel/ptrace.cvma = find_vma(tsk,addr);
vma191arch/i386/kernel/ptrace.cif (!vma)
vma193arch/i386/kernel/ptrace.cif (vma->vm_start <= addr)
vma194arch/i386/kernel/ptrace.creturn vma;
vma195arch/i386/kernel/ptrace.cif (!(vma->vm_flags & VM_GROWSDOWN))
vma197arch/i386/kernel/ptrace.cif (vma->vm_end - addr > tsk->rlim[RLIMIT_STACK].rlim_cur)
vma199arch/i386/kernel/ptrace.cvma->vm_offset -= vma->vm_start - addr;
vma200arch/i386/kernel/ptrace.cvma->vm_start = addr;
vma201arch/i386/kernel/ptrace.creturn vma;
vma211arch/i386/kernel/ptrace.cstruct vm_area_struct * vma = find_extend_vma(tsk, addr);
vma213arch/i386/kernel/ptrace.cif (!vma)
vma217arch/i386/kernel/ptrace.cstruct vm_area_struct * vma_high = vma;
vma219arch/i386/kernel/ptrace.cif (addr + sizeof(long) >= vma->vm_end) {
vma220arch/i386/kernel/ptrace.cvma_high = vma->vm_next;
vma221arch/i386/kernel/ptrace.cif (!vma_high || vma_high->vm_start != vma->vm_end)
vma224arch/i386/kernel/ptrace.clow = get_long(tsk, vma, addr & ~(sizeof(long)-1));
vma242arch/i386/kernel/ptrace.c*result = get_long(tsk, vma, addr);
vma253arch/i386/kernel/ptrace.cstruct vm_area_struct * vma = find_extend_vma(tsk, addr);
vma255arch/i386/kernel/ptrace.cif (!vma)
vma259arch/i386/kernel/ptrace.cstruct vm_area_struct * vma_high = vma;
vma261arch/i386/kernel/ptrace.cif (addr + sizeof(long) >= vma->vm_end) {
vma262arch/i386/kernel/ptrace.cvma_high = vma->vm_next;
vma263arch/i386/kernel/ptrace.cif (!vma_high || vma_high->vm_start != vma->vm_end)
vma266arch/i386/kernel/ptrace.clow = get_long(tsk, vma, addr & ~(sizeof(long)-1));
vma291arch/i386/kernel/ptrace.cput_long(tsk, vma, addr & ~(sizeof(long)-1),low);
vma294arch/i386/kernel/ptrace.cput_long(tsk, vma, addr, data);
vma36arch/i386/mm/fault.cstruct vm_area_struct * vma;
vma42arch/i386/mm/fault.cvma = find_vma(current, address);
vma43arch/i386/mm/fault.cif (!vma)
vma45arch/i386/mm/fault.cif (vma->vm_start <= address)
vma47arch/i386/mm/fault.cif (!(vma->vm_flags & VM_GROWSDOWN))
vma49arch/i386/mm/fault.cif (vma->vm_end - address > current->rlim[RLIMIT_STACK].rlim_cur)
vma61arch/i386/mm/fault.cvma->vm_offset -= vma->vm_start - (address & PAGE_MASK);
vma62arch/i386/mm/fault.cvma->vm_start = (address & PAGE_MASK);
vma72arch/i386/mm/fault.cif (!(vma->vm_flags & VM_WRITE))
vma78arch/i386/mm/fault.cif (!(vma->vm_flags & (VM_READ | VM_EXEC)))
vma94arch/i386/mm/fault.cdo_wp_page(current, vma, address, error_code & 2);
vma97arch/i386/mm/fault.cdo_no_page(current, vma, address, error_code & 2);
vma85arch/mips/kernel/ptrace.cstatic unsigned long get_long(struct vm_area_struct * vma, unsigned long addr)
vma92arch/mips/kernel/ptrace.cpgdir = PAGE_DIR_OFFSET(vma->vm_mm, addr);
vma94arch/mips/kernel/ptrace.cdo_no_page(vma, addr, 0);
vma104arch/mips/kernel/ptrace.cdo_no_page(vma, addr, 0);
vma124arch/mips/kernel/ptrace.cstatic void put_long(struct vm_area_struct * vma, unsigned long addr,
vma132arch/mips/kernel/ptrace.cpgdir = PAGE_DIR_OFFSET(vma->vm_mm, addr);
vma134arch/mips/kernel/ptrace.cdo_no_page(vma, addr, 1);
vma144arch/mips/kernel/ptrace.cdo_no_page(vma, addr, 1);
vma149arch/mips/kernel/ptrace.cdo_wp_page(vma, addr, 1);
vma159arch/mips/kernel/ptrace.cset_pte(pgtable, pte_mkdirty(mk_pte(page, vma->vm_page_prot)));
vma165arch/mips/kernel/ptrace.cstruct vm_area_struct * vma;
vma168arch/mips/kernel/ptrace.cvma = find_vma(tsk, addr);
vma169arch/mips/kernel/ptrace.cif (!vma)
vma171arch/mips/kernel/ptrace.cif (vma->vm_start <= addr)
vma172arch/mips/kernel/ptrace.creturn vma;
vma173arch/mips/kernel/ptrace.cif (!(vma->vm_flags & VM_GROWSDOWN))
vma175arch/mips/kernel/ptrace.cif (vma->vm_end - addr > tsk->rlim[RLIMIT_STACK].rlim_cur)
vma177arch/mips/kernel/ptrace.cvma->vm_offset -= vma->vm_start - addr;
vma178arch/mips/kernel/ptrace.cvma->vm_start = addr;
vma179arch/mips/kernel/ptrace.creturn vma;
vma189arch/mips/kernel/ptrace.cstruct vm_area_struct * vma = find_extend_vma(tsk, addr);
vma191arch/mips/kernel/ptrace.cif (!vma)
vma195arch/mips/kernel/ptrace.cstruct vm_area_struct * vma_high = vma;
vma197arch/mips/kernel/ptrace.cif (addr + sizeof(long) >= vma->vm_end) {
vma198arch/mips/kernel/ptrace.cvma_high = vma->vm_next;
vma199arch/mips/kernel/ptrace.cif (!vma_high || vma_high->vm_start != vma->vm_end)
vma202arch/mips/kernel/ptrace.clow = get_long(vma, addr & ~(sizeof(long)-1));
vma220arch/mips/kernel/ptrace.c*result = get_long(vma, addr);
vma231arch/mips/kernel/ptrace.cstruct vm_area_struct * vma = find_extend_vma(tsk, addr);
vma233arch/mips/kernel/ptrace.cif (!vma)
vma237arch/mips/kernel/ptrace.cstruct vm_area_struct * vma_high = vma;
vma239arch/mips/kernel/ptrace.cif (addr + sizeof(long) >= vma->vm_end) {
vma240arch/mips/kernel/ptrace.cvma_high = vma->vm_next;
vma241arch/mips/kernel/ptrace.cif (!vma_high || vma_high->vm_start != vma->vm_end)
vma244arch/mips/kernel/ptrace.clow = get_long(vma, addr & ~(sizeof(long)-1));
vma269arch/mips/kernel/ptrace.cput_long(vma, addr & ~(sizeof(long)-1),low);
vma272arch/mips/kernel/ptrace.cput_long(vma, addr, data);
vma39arch/mips/mm/fault.cstruct vm_area_struct * vma;
vma47arch/mips/mm/fault.cfor (vma = current->mm->mmap ; ; vma = vma->vm_next) {
vma48arch/mips/mm/fault.cif (!vma)
vma50arch/mips/mm/fault.cif (vma->vm_end > address)
vma53arch/mips/mm/fault.cif (vma->vm_start <= address)
vma55arch/mips/mm/fault.cif (!(vma->vm_flags & VM_GROWSDOWN))
vma57arch/mips/mm/fault.cif (vma->vm_end - address > current->rlim[RLIMIT_STACK].rlim_cur)
vma59arch/mips/mm/fault.cvma->vm_offset -= vma->vm_start - (address & PAGE_MASK);
vma60arch/mips/mm/fault.cvma->vm_start = (address & PAGE_MASK);
vma70arch/mips/mm/fault.cif (!(vma->vm_flags & VM_WRITE))
vma76arch/mips/mm/fault.cif (!(vma->vm_flags & (VM_READ | VM_EXEC)))
vma80arch/mips/mm/fault.cdo_wp_page(vma, address, error_code & 2);
vma83arch/mips/mm/fault.cdo_no_page(vma, address, error_code & 2);
vma130arch/sparc/mm/fault.cstruct vm_area_struct *vma;
vma141arch/sparc/mm/fault.cvma = find_vma(current, address);
vma142arch/sparc/mm/fault.cif(!vma) {
vma145arch/sparc/mm/fault.cif(vma->vm_start <= address)
vma154arch/sparc/mm/fault.chandle_mm_fault(vma, address, 0);
vma194arch/sparc/mm/fault.cstruct vm_area_struct *vma;
vma205arch/sparc/mm/fault.cvma = find_vma(current, address);
vma206arch/sparc/mm/fault.cif(!vma) {
vma212arch/sparc/mm/fault.cif(vma->vm_start <= address)
vma215arch/sparc/mm/fault.cif(!(vma->vm_flags & VM_GROWSDOWN)) {
vma218arch/sparc/mm/fault.cif(vma->vm_end - address > current->rlim[RLIMIT_STACK].rlim_cur) {
vma222arch/sparc/mm/fault.cvma->vm_offset -= vma->vm_start - (address & PAGE_MASK);
vma223arch/sparc/mm/fault.cvma->vm_start = (address & PAGE_MASK);
vma235arch/sparc/mm/fault.cif(!(vma->vm_flags & VM_WRITE)) {
vma248arch/sparc/mm/fault.cif(!(vma->vm_flags & (VM_READ | VM_EXEC))) {
vma263arch/sparc/mm/fault.c(unsigned long) vma, (unsigned long) address,
vma266arch/sparc/mm/fault.chandle_mm_fault(vma, address, error_code);
vma362arch/sparc/mm/fault.cstruct vm_area_struct *vma;
vma401arch/sparc/mm/fault.cvma = find_vma(current, address);
vma402arch/sparc/mm/fault.cif(!vma) {
vma405arch/sparc/mm/fault.cif(vma->vm_start <= address)
vma414arch/sparc/mm/fault.cdo_no_page(vma, address, 0);
vma440arch/sparc/mm/fault.cstruct vm_area_struct *vma;
vma470arch/sparc/mm/fault.cvma = find_vma(current, address);
vma471arch/sparc/mm/fault.cif(!vma) {
vma477arch/sparc/mm/fault.cif(vma->vm_start <= address)
vma480arch/sparc/mm/fault.cif(!(vma->vm_flags & VM_GROWSDOWN)) {
vma483arch/sparc/mm/fault.cif(vma->vm_end - address > current->rlim[RLIMIT_STACK].rlim_cur) {
vma487arch/sparc/mm/fault.cvma->vm_offset -= vma->vm_start - (address & PAGE_MASK);
vma488arch/sparc/mm/fault.cvma->vm_start = (address & PAGE_MASK);
vma500arch/sparc/mm/fault.cif(!(vma->vm_flags & VM_WRITE)) {
vma513arch/sparc/mm/fault.cif(!(vma->vm_flags & (VM_READ | VM_EXEC))) {
vma528arch/sparc/mm/fault.c(unsigned long) vma, (unsigned long) address,
vma531arch/sparc/mm/fault.cdo_no_page(vma, address, error_code);
vma95drivers/char/mem.cstatic int mmap_mem(struct inode * inode, struct file * file, struct vm_area_struct * vma)
vma97drivers/char/mem.cif (vma->vm_offset & ~PAGE_MASK)
vma106drivers/char/mem.cif (x86 > 3 && vma->vm_offset >= high_memory)
vma107drivers/char/mem.cpgprot_val(vma->vm_page_prot) |= _PAGE_PCD;
vma109drivers/char/mem.cif (remap_page_range(vma->vm_start, vma->vm_offset, vma->vm_end - vma->vm_start, vma->vm_page_prot))
vma111drivers/char/mem.cvma->vm_inode = inode;
vma179drivers/char/mem.cstatic int mmap_zero(struct inode * inode, struct file * file, struct vm_area_struct * vma)
vma181drivers/char/mem.cif (vma->vm_flags & VM_SHARED)
vma183drivers/char/mem.cif (zeromap_page_range(vma->vm_start, vma->vm_end - vma->vm_start, vma->vm_page_prot))
vma852fs/binfmt_elf.cstatic inline int maydump(struct vm_area_struct *vma)
vma855fs/binfmt_elf.cif (vma->vm_flags & (VM_WRITE|VM_GROWSUP|VM_GROWSDOWN))
vma857fs/binfmt_elf.cif (vma->vm_flags & (VM_READ|VM_EXEC|VM_EXECUTABLE|VM_SHARED))
vma953fs/binfmt_elf.cstruct vm_area_struct *vma;
vma974fs/binfmt_elf.cfor(vma = current->mm->mmap; vma != NULL; vma = vma->vm_next) {
vma975fs/binfmt_elf.cint sz = vma->vm_end-vma->vm_start;
vma977fs/binfmt_elf.cif (!maydump(vma))
vma1157fs/binfmt_elf.cfor(vma = current->mm->mmap, i = 0;
vma1158fs/binfmt_elf.ci < segs && vma != NULL; vma = vma->vm_next) {
vma1162fs/binfmt_elf.cif (!maydump(vma))
vma1166fs/binfmt_elf.csz = vma->vm_end - vma->vm_start;
vma1170fs/binfmt_elf.cphdr.p_vaddr = vma->vm_start;
vma1175fs/binfmt_elf.cphdr.p_flags = vma->vm_flags & VM_READ ? PF_R : 0;
vma1176fs/binfmt_elf.cif (vma->vm_flags & VM_WRITE) phdr.p_flags |= PF_W;
vma1177fs/binfmt_elf.cif (vma->vm_flags & VM_EXEC) phdr.p_flags |= PF_X;
vma1191fs/binfmt_elf.cfor(i = 0, vma = current->mm->mmap;
vma1192fs/binfmt_elf.ci < segs && vma != NULL;
vma1193fs/binfmt_elf.cvma = vma->vm_next) {
vma1194fs/binfmt_elf.cunsigned long addr = vma->vm_start;
vma1195fs/binfmt_elf.cunsigned long len = vma->vm_end - vma->vm_start;
vma1197fs/binfmt_elf.cif (!maydump(vma))
vma91fs/msdos/mmap.cint msdos_mmap(struct inode * inode, struct file * file, struct vm_area_struct * vma)
vma93fs/msdos/mmap.cif (vma->vm_flags & VM_SHARED)  /* only PAGE_COW or read-only supported now */
vma95fs/msdos/mmap.cif (vma->vm_offset & (inode->i_sb->s_blocksize - 1))
vma104fs/msdos/mmap.cvma->vm_inode = inode;
vma106fs/msdos/mmap.cvma->vm_ops = &msdos_file_mmap;
vma31fs/namei.cstruct vm_area_struct * vma;
vma35fs/namei.cvma = find_vma(current, address);
vma36fs/namei.cif (!vma || vma->vm_start > address || !(vma->vm_flags & VM_READ))
vma38fs/namei.caddress = vma->vm_end - address;
vma41fs/namei.cif (vma->vm_next && vma->vm_next->vm_start == vma->vm_end &&
vma42fs/namei.c(vma->vm_next->vm_flags & VM_READ))
vma95fs/nfs/mmap.cint nfs_mmap(struct inode * inode, struct file * file, struct vm_area_struct * vma)
vma97fs/nfs/mmap.cif (vma->vm_flags & VM_SHARED)  /* only PAGE_COW or read-only supported now */
vma106fs/nfs/mmap.cvma->vm_inode = inode;
vma108fs/nfs/mmap.cvma->vm_ops = &nfs_file_mmap;
vma453fs/proc/array.cstruct vm_area_struct *vma = tsk->mm->mmap;
vma454fs/proc/array.cwhile (vma) {
vma455fs/proc/array.cvsize += vma->vm_end - vma->vm_start;
vma456fs/proc/array.cvma = vma->vm_next;
vma612fs/proc/array.cstruct vm_area_struct * vma = tsk->mm->mmap;
vma614fs/proc/array.cwhile (vma) {
vma615fs/proc/array.cpgd_t *pgd = pgd_offset(tsk->mm, vma->vm_start);
vma618fs/proc/array.cstatm_pgd_range(pgd, vma->vm_start, vma->vm_end, &pages, &shared, &dirty, &total);
vma623fs/proc/array.cif (vma->vm_flags & VM_EXECUTABLE)
vma625fs/proc/array.celse if (vma->vm_flags & VM_GROWSDOWN)
vma627fs/proc/array.celse if (vma->vm_end > 0x60000000)
vma631fs/proc/array.cvma = vma->vm_next;
vma103fs/proc/link.cstruct vm_area_struct * vma;
vma106fs/proc/link.cvma = p->mm->mmap;
vma107fs/proc/link.cwhile (vma) {
vma108fs/proc/link.cif (vma->vm_flags & VM_EXECUTABLE) {
vma109fs/proc/link.cnew_inode = vma->vm_inode;
vma112fs/proc/link.cvma = vma->vm_next;
vma28fs/proc/mem.cstruct vm_area_struct *vma;
vma31fs/proc/mem.cvma = find_vma(tsk, addr);
vma32fs/proc/mem.cif (!vma)
vma34fs/proc/mem.cif (vma->vm_start > addr)
vma36fs/proc/mem.cif (!(vma->vm_flags & VM_READ))
vma38fs/proc/mem.cwhile ((retval = vma->vm_end - addr) < count) {
vma39fs/proc/mem.cstruct vm_area_struct *next = vma->vm_next;
vma42fs/proc/mem.cif (vma->vm_end != next->vm_start)
vma46fs/proc/mem.cvma = next;
vma204fs/proc/mem.cstruct vm_area_struct * vma)
vma232fs/proc/mem.cstmp = vma->vm_offset;
vma233fs/proc/mem.cwhile (stmp < vma->vm_offset + (vma->vm_end - vma->vm_start)) {
vma267fs/proc/mem.cstmp    = vma->vm_offset;
vma268fs/proc/mem.cdtmp    = vma->vm_start;
vma270fs/proc/mem.cwhile (dtmp < vma->vm_end) {
vma289fs/proc/mem.cif ((vma->vm_flags & VM_WRITE) && !pte_write(*src_table))
vma100fs/smbfs/mmap.csmb_mmap(struct inode * inode, struct file * file, struct vm_area_struct * vma)
vma105fs/smbfs/mmap.cif (vma->vm_flags & VM_SHARED)  
vma114fs/smbfs/mmap.cvma->vm_inode = inode;
vma116fs/smbfs/mmap.cvma->vm_ops = &smb_file_mmap;
vma547fs/super.cstruct vm_area_struct * vma;
vma553fs/super.cvma = find_vma(current, (unsigned long) data);
vma554fs/super.cif (!vma || (unsigned long) data < vma->vm_start)
vma556fs/super.ci = vma->vm_end - (unsigned long) data;
vma401include/asm-alpha/pgtable.hextern inline void update_mmu_cache(struct vm_area_struct * vma,
vma341include/asm-i386/pgtable.hextern inline void update_mmu_cache(struct vm_area_struct * vma,
vma327include/asm-sparc/pgtable.hextern inline void update_mmu_cache(struct vm_area_struct * vma,
vma184include/linux/mm.hextern int copy_page_range(struct mm_struct *dst, struct mm_struct *src, struct vm_area_struct *vma);
vma189include/linux/mm.hextern void handle_mm_fault(struct vm_area_struct *vma, unsigned long address, int write_access);
vma190include/linux/mm.hextern void do_wp_page(struct task_struct * tsk, struct vm_area_struct * vma, unsigned long address, int write_access);
vma191include/linux/mm.hextern void do_no_page(struct task_struct * tsk, struct vm_area_struct * vma, unsigned long address, int write_access);
vma117include/linux/nfs_fs.hextern int nfs_mmap(struct inode * inode, struct file * file, struct vm_area_struct * vma);
vma180include/linux/smb_fs.hint smb_mmap(struct inode * inode, struct file * file, struct vm_area_struct * vma);
vma74mm/filemap.cstatic int filemap_write_page(struct vm_area_struct * vma,
vma95mm/filemap.cinode = vma->vm_inode;
vma135mm/filemap.cint filemap_swapout(struct vm_area_struct * vma,
vma145mm/filemap.cerror = filemap_write_page(vma, offset, page);
vma157mm/filemap.cstatic pte_t filemap_swapin(struct vm_area_struct * vma,
vma165mm/filemap.creturn mk_pte(page,vma->vm_page_prot);
vma169mm/filemap.cstatic inline int filemap_sync_pte(pte_t * ptep, struct vm_area_struct *vma,
vma199mm/filemap.cerror = filemap_write_page(vma, address - vma->vm_start + vma->vm_offset, page);
vma206mm/filemap.cstruct vm_area_struct *vma, unsigned long offset, unsigned int flags)
vma227mm/filemap.cerror |= filemap_sync_pte(pte, vma, address + offset, flags);
vma236mm/filemap.cstruct vm_area_struct *vma, unsigned int flags)
vma257mm/filemap.cerror |= filemap_sync_pte_range(pmd, address, end - address, vma, offset, flags);
vma264mm/filemap.cstatic int filemap_sync(struct vm_area_struct * vma, unsigned long address,
vma273mm/filemap.cerror |= filemap_sync_pmd_range(dir, address, end - address, vma, flags);
vma284mm/filemap.cstatic void filemap_unmap(struct vm_area_struct *vma, unsigned long start, size_t len)
vma286mm/filemap.cfilemap_sync(vma, start, len, MS_ASYNC);
vma327mm/filemap.cint generic_mmap(struct inode * inode, struct file * file, struct vm_area_struct * vma)
vma331mm/filemap.cif ((vma->vm_flags & VM_SHARED) && (vma->vm_flags & VM_MAYWRITE)) {
vma335mm/filemap.cif (vma->vm_offset & (PAGE_SIZE - 1))
vma339mm/filemap.cif (vma->vm_offset & (inode->i_sb->s_blocksize - 1))
vma350mm/filemap.cvma->vm_inode = inode;
vma352mm/filemap.cvma->vm_ops = ops;
vma361mm/filemap.cstatic int msync_interval(struct vm_area_struct * vma,
vma364mm/filemap.cif (!vma->vm_inode)
vma366mm/filemap.cif (vma->vm_ops->sync) {
vma368mm/filemap.cerror = vma->vm_ops->sync(vma, start, end-start, flags);
vma372mm/filemap.creturn file_fsync(vma->vm_inode, NULL);
vma381mm/filemap.cstruct vm_area_struct * vma;
vma398mm/filemap.cvma = find_vma(current, start);
vma402mm/filemap.cif (!vma)
vma405mm/filemap.cif (start < vma->vm_start) {
vma407mm/filemap.cstart = vma->vm_start;
vma410mm/filemap.cif (end <= vma->vm_end) {
vma412mm/filemap.cerror = msync_interval(vma, start, end, flags);
vma419mm/filemap.cerror = msync_interval(vma, start, vma->vm_end, flags);
vma422mm/filemap.cstart = vma->vm_end;
vma423mm/filemap.cvma = vma->vm_next;
vma273mm/memory.cstruct vm_area_struct *vma)
vma276mm/memory.cunsigned long address = vma->vm_start;
vma277mm/memory.cunsigned long end = vma->vm_end;
vma574mm/memory.cvoid do_wp_page(struct task_struct * tsk, struct vm_area_struct * vma,
vma583mm/memory.cpage_dir = pgd_offset(vma->vm_mm, address);
vma609mm/memory.c++vma->vm_mm->rss;
vma611mm/memory.cset_pte(page_table, pte_mkwrite(pte_mkdirty(mk_pte(new_page, vma->vm_page_prot))));
vma649mm/memory.cstruct vm_area_struct * vma;
vma659mm/memory.cvma = find_vma(current, start);
vma660mm/memory.cif (!vma)
vma662mm/memory.cif (vma->vm_start <= start)
vma664mm/memory.cif (!(vma->vm_flags & VM_GROWSDOWN))
vma666mm/memory.cif (vma->vm_end - start > current->rlim[RLIMIT_STACK].rlim_cur)
vma674mm/memory.cif (!(vma->vm_flags & VM_READ))
vma676mm/memory.cif (vma->vm_end - start >= size)
vma678mm/memory.cnext = vma->vm_next;
vma679mm/memory.cif (!next || vma->vm_end != next->vm_start)
vma681mm/memory.cvma = next;
vma685mm/memory.cif (!(vma->vm_flags & VM_WRITE))
vma690mm/memory.cif (vma->vm_end - start >= size)
vma692mm/memory.cif (!vma->vm_next || vma->vm_end != vma->vm_next->vm_start)
vma694mm/memory.cvma = vma->vm_next;
vma695mm/memory.cif (!(vma->vm_flags & VM_WRITE))
vma707mm/memory.cdo_wp_page(current, vma, start, 1);
vma712mm/memory.cif (start < vma->vm_end)
vma714mm/memory.cvma = vma->vm_next;
vma715mm/memory.cif (!vma || vma->vm_start != start)
vma717mm/memory.cif (!(vma->vm_flags & VM_WRITE))
vma726mm/memory.cstatic inline void get_empty_page(struct task_struct * tsk, struct vm_area_struct * vma, pte_t * page_table)
vma735mm/memory.cput_page(page_table, pte_mkwrite(mk_pte(tmp, vma->vm_page_prot)));
vma908mm/memory.cstatic int unshare(struct vm_area_struct *vma, unsigned long address, unsigned long new_page)
vma916mm/memory.cpage_dir = pgd_offset(vma->vm_mm, address);
vma1034mm/memory.cstruct vm_area_struct * vma, unsigned long address,
vma1039mm/memory.cif (!vma->vm_ops || !vma->vm_ops->swapin) {
vma1040mm/memory.cswap_in(tsk, vma, page_table, pte_val(entry), write_access);
vma1043mm/memory.cpage = vma->vm_ops->swapin(vma, address - vma->vm_start + vma->vm_offset, pte_val(entry));
vma1048mm/memory.cif (mem_map[MAP_NR(pte_page(page))].count > 1 && !(vma->vm_flags & VM_SHARED))
vma1050mm/memory.c++vma->vm_mm->rss;
vma1062mm/memory.cvoid do_no_page(struct task_struct * tsk, struct vm_area_struct * vma,
vma1076mm/memory.cdo_swap_page(tsk, vma, address, page_table, entry, write_access);
vma1080mm/memory.cif (!vma->vm_ops || !vma->vm_ops->nopage) {
vma1081mm/memory.c++vma->vm_mm->rss;
vma1083mm/memory.cget_empty_page(tsk, vma, page_table);
vma1087mm/memory.cif (share_page(vma, address, write_access, page)) {
vma1088mm/memory.c++vma->vm_mm->rss;
vma1098mm/memory.c++vma->vm_mm->rss;
vma1104mm/memory.cpage = vma->vm_ops->nopage(vma, address, page,
vma1105mm/memory.cwrite_access && !(vma->vm_flags & VM_SHARED));
vma1106mm/memory.cif (share_page(vma, address, write_access, 0)) {
vma1120mm/memory.centry = mk_pte(page, vma->vm_page_prot);
vma1123mm/memory.c} else if (mem_map[MAP_NR(page)].count > 1 && !(vma->vm_flags & VM_SHARED))
vma1141mm/memory.cstatic inline void handle_pte_fault(struct vm_area_struct * vma, unsigned long address,
vma1145mm/memory.cdo_no_page(current, vma, address, write_access);
vma1155mm/memory.cdo_wp_page(current, vma, address, write_access);
vma1158mm/memory.cvoid handle_mm_fault(struct vm_area_struct * vma, unsigned long address,
vma1165mm/memory.cpgd = pgd_offset(vma->vm_mm, address);
vma1172mm/memory.chandle_pte_fault(vma, address, write_access, pte);
vma1173mm/memory.cupdate_mmu_cache(vma, address, *pte);
vma48mm/mmap.cstruct vm_area_struct * vma;
vma111mm/mmap.cvma = (struct vm_area_struct *)kmalloc(sizeof(struct vm_area_struct),
vma113mm/mmap.cif (!vma)
vma116mm/mmap.cvma->vm_mm = current->mm;
vma117mm/mmap.cvma->vm_start = addr;
vma118mm/mmap.cvma->vm_end = addr + len;
vma119mm/mmap.cvma->vm_flags = prot & (VM_READ | VM_WRITE | VM_EXEC);
vma120mm/mmap.cvma->vm_flags |= flags & (VM_GROWSDOWN | VM_DENYWRITE | VM_EXECUTABLE);
vma124mm/mmap.cvma->vm_flags |= VM_MAYREAD | VM_MAYWRITE | VM_MAYEXEC;
vma126mm/mmap.cvma->vm_flags |= VM_SHARED | VM_MAYSHARE;
vma138mm/mmap.cvma->vm_flags &= ~(VM_MAYWRITE | VM_SHARED);
vma141mm/mmap.cvma->vm_flags |= VM_MAYREAD | VM_MAYWRITE | VM_MAYEXEC;
vma142mm/mmap.cvma->vm_page_prot = protection_map[vma->vm_flags & 0x0f];
vma143mm/mmap.cvma->vm_ops = NULL;
vma144mm/mmap.cvma->vm_offset = off;
vma145mm/mmap.cvma->vm_inode = NULL;
vma146mm/mmap.cvma->vm_pte = 0;
vma151mm/mmap.cerror = file->f_op->mmap(file->f_inode, file, vma);
vma153mm/mmap.cerror = anon_map(NULL, NULL, vma);
vma156mm/mmap.ckfree(vma);
vma159mm/mmap.cinsert_vm_struct(current, vma);
vma160mm/mmap.cmerge_segments(current, vma->vm_start, vma->vm_end);
vma232mm/mmap.cstruct vm_area_struct * vma;
vma236mm/mmap.cfor (vma = task->mm->mmap ; ; vma = vma->vm_next) {
vma237mm/mmap.cif (!vma)
vma239mm/mmap.cif (vma->vm_end > addr)
vma240mm/mmap.creturn vma;
vma266mm/mmap.cstruct vm_area_struct * vma;
vma269mm/mmap.cfor (vma = task->mm->mmap; vma; vma = vma->vm_next) {
vma270mm/mmap.cif (end_addr <= vma->vm_start)
vma272mm/mmap.cif (start_addr < vma->vm_end)
vma273mm/mmap.creturn vma;
vma277mm/mmap.cvma = find_vma(task,start_addr);
vma278mm/mmap.cif (!vma || end_addr <= vma->vm_start)
vma280mm/mmap.creturn vma;
vma518mm/mmap.cstatic void printk_list (struct vm_area_struct * vma)
vma521mm/mmap.cwhile (vma) {
vma522mm/mmap.cprintk("%08lX-%08lX", vma->vm_start, vma->vm_end);
vma523mm/mmap.cvma = vma->vm_next;
vma524mm/mmap.cif (!vma)
vma783mm/mmap.cstruct vm_area_struct * vma;
vma786mm/mmap.cfor (vma = mm->mmap; vma; vma = vma->vm_next)
vma787mm/mmap.cavl_insert(vma, &mm->mmap_avl);
vma966mm/mmap.cstatic int anon_map(struct inode *ino, struct file * file, struct vm_area_struct * vma)
vma968mm/mmap.cif (zeromap_page_range(vma->vm_start, vma->vm_end - vma->vm_start, vma->vm_page_prot))
vma86mm/mprotect.cstatic inline int mprotect_fixup_all(struct vm_area_struct * vma,
vma89mm/mprotect.cvma->vm_flags = newflags;
vma90mm/mprotect.cvma->vm_page_prot = prot;
vma94mm/mprotect.cstatic inline int mprotect_fixup_start(struct vm_area_struct * vma,
vma103mm/mprotect.c*n = *vma;
vma104mm/mprotect.cvma->vm_start = end;
vma106mm/mprotect.cvma->vm_offset += vma->vm_start - n->vm_start;
vma117mm/mprotect.cstatic inline int mprotect_fixup_end(struct vm_area_struct * vma,
vma126mm/mprotect.c*n = *vma;
vma127mm/mprotect.cvma->vm_end = start;
vma129mm/mprotect.cn->vm_offset += n->vm_start - vma->vm_start;
vma140mm/mprotect.cstatic inline int mprotect_fixup_middle(struct vm_area_struct * vma,
vma154mm/mprotect.c*left = *vma;
vma155mm/mprotect.c*right = *vma;
vma157mm/mprotect.cvma->vm_start = start;
vma158mm/mprotect.cvma->vm_end = end;
vma160mm/mprotect.cvma->vm_offset += vma->vm_start - left->vm_start;
vma162mm/mprotect.cvma->vm_flags = newflags;
vma163mm/mprotect.cvma->vm_page_prot = prot;
vma164mm/mprotect.cif (vma->vm_inode)
vma165mm/mprotect.cvma->vm_inode->i_count += 2;
vma166mm/mprotect.cif (vma->vm_ops && vma->vm_ops->open) {
vma167mm/mprotect.cvma->vm_ops->open(left);
vma168mm/mprotect.cvma->vm_ops->open(right);
vma175mm/mprotect.cstatic int mprotect_fixup(struct vm_area_struct * vma, 
vma181mm/mprotect.cif (newflags == vma->vm_flags)
vma184mm/mprotect.cif (start == vma->vm_start)
vma185mm/mprotect.cif (end == vma->vm_end)
vma186mm/mprotect.cerror = mprotect_fixup_all(vma, newflags, newprot);
vma188mm/mprotect.cerror = mprotect_fixup_start(vma, end, newflags, newprot);
vma189mm/mprotect.celse if (end == vma->vm_end)
vma190mm/mprotect.cerror = mprotect_fixup_end(vma, start, newflags, newprot);
vma192mm/mprotect.cerror = mprotect_fixup_middle(vma, start, end, newflags, newprot);
vma204mm/mprotect.cstruct vm_area_struct * vma, * next;
vma217mm/mprotect.cvma = find_vma(current, start);
vma218mm/mprotect.cif (!vma || vma->vm_start > start)
vma226mm/mprotect.cnewflags = prot | (vma->vm_flags & ~(PROT_READ | PROT_WRITE | PROT_EXEC));
vma232mm/mprotect.cif (vma->vm_end >= end) {
vma233mm/mprotect.cerror = mprotect_fixup(vma, nstart, end, newflags);
vma237mm/mprotect.ctmp = vma->vm_end;
vma238mm/mprotect.cnext = vma->vm_next;
vma239mm/mprotect.cerror = mprotect_fixup(vma, nstart, tmp, newflags);
vma243mm/mprotect.cvma = next;
vma244mm/mprotect.cif (!vma || vma->vm_start != nstart) {
vma375mm/swap.cvoid swap_in(struct task_struct * tsk, struct vm_area_struct * vma,
vma395mm/swap.cvma->vm_mm->rss++;
vma398mm/swap.cset_pte(page_table, mk_pte(page, vma->vm_page_prot));
vma401mm/swap.cset_pte(page_table, pte_mkwrite(pte_mkdirty(mk_pte(page, vma->vm_page_prot))));
vma417mm/swap.cstatic inline int try_to_swap_out(struct task_struct * tsk, struct vm_area_struct* vma,
vma448mm/swap.cif (vma->vm_ops && vma->vm_ops->swapout) {
vma450mm/swap.cvma->vm_mm->rss--;
vma451mm/swap.cif (vma->vm_ops->swapout(vma, address - vma->vm_start + vma->vm_offset, page_table))
vma458mm/swap.cvma->vm_mm->rss--;
vma473mm/swap.cvma->vm_mm->rss--;
vma479mm/swap.cvma->vm_mm->rss--;
vma501mm/swap.cstatic inline int swap_out_pmd(struct task_struct * tsk, struct vm_area_struct * vma,
vma524mm/swap.cresult = try_to_swap_out(tsk, vma, address, pte, limit);
vma533mm/swap.cstatic inline int swap_out_pgd(struct task_struct * tsk, struct vm_area_struct * vma,
vma554mm/swap.cint result = swap_out_pmd(tsk, vma, pmd, address, end, limit);
vma563mm/swap.cstatic int swap_out_vma(struct task_struct * tsk, struct vm_area_struct * vma,
vma570mm/swap.cif (vma->vm_flags & VM_SHM)
vma575mm/swap.cif (vma->vm_flags & VM_DONTSWAP)
vma578mm/swap.cend = vma->vm_end;
vma580mm/swap.cint result = swap_out_pgd(tsk, vma, pgdir, start, end, limit);
vma592mm/swap.cstruct vm_area_struct* vma;
vma603mm/swap.cvma = find_vma(p, address);
vma604mm/swap.cif (!vma)
vma606mm/swap.cif (address < vma->vm_start)
vma607mm/swap.caddress = vma->vm_start;
vma610mm/swap.cint result = swap_out_vma(p, vma, pgd_offset(p->mm, address), address, limit);
vma613mm/swap.cvma = vma->vm_next;
vma614mm/swap.cif (!vma)
vma616mm/swap.caddress = vma->vm_start;
vma905mm/swap.cstatic inline int unuse_pte(struct vm_area_struct * vma, unsigned long address,
vma931mm/swap.cset_pte(dir, pte_mkwrite(pte_mkdirty(mk_pte(page, vma->vm_page_prot))));
vma932mm/swap.c++vma->vm_mm->rss;
vma937mm/swap.cstatic inline int unuse_pmd(struct vm_area_struct * vma, pmd_t *dir,
vma958mm/swap.cif (unuse_pte(vma, offset+address-vma->vm_start, pte, type, page))
vma966mm/swap.cstatic inline int unuse_pgd(struct vm_area_struct * vma, pgd_t *dir,
vma987mm/swap.cif (unuse_pmd(vma, pmd, address, end - address, offset, type, page))
vma995mm/swap.cstatic int unuse_vma(struct vm_area_struct * vma, pgd_t *pgdir,
vma1000mm/swap.cif (unuse_pgd(vma, pgdir, start, end - start, type, page))
vma1010mm/swap.cstruct vm_area_struct* vma;
vma1017mm/swap.cvma = p->mm->mmap;
vma1018mm/swap.cwhile (vma) {
vma1019mm/swap.cpgd_t * pgd = pgd_offset(p->mm, vma->vm_start);
vma1020mm/swap.cif (unuse_vma(vma, pgd, vma->vm_start, vma->vm_end, type, page))
vma1022mm/swap.cvma = vma->vm_next;