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);
vma44arch/alpha/mm/fault.cstruct vm_area_struct * vma;
vma46arch/alpha/mm/fault.cvma = find_vma(current, address);
vma47arch/alpha/mm/fault.cif (!vma)
vma49arch/alpha/mm/fault.cif (vma->vm_start <= address)
vma51arch/alpha/mm/fault.cif (!(vma->vm_flags & VM_GROWSDOWN))
vma53arch/alpha/mm/fault.cif (expand_stack(vma, address))
vma61arch/alpha/mm/fault.cif (!(vma->vm_flags & VM_EXEC))
vma65arch/alpha/mm/fault.cif (!(vma->vm_flags & (VM_READ | VM_WRITE)))
vma68arch/alpha/mm/fault.cif (!(vma->vm_flags & VM_WRITE))
vma72arch/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))
vma59arch/i386/mm/fault.cif (expand_stack(vma, address))
vma70arch/i386/mm/fault.cif (!(vma->vm_flags & VM_WRITE))
vma76arch/i386/mm/fault.cif (!(vma->vm_flags & (VM_READ | VM_EXEC)))
vma92arch/i386/mm/fault.cdo_wp_page(current, vma, address, error_code & 2);
vma95arch/i386/mm/fault.cdo_no_page(current, vma, address, error_code & 2);
vma86arch/mips/kernel/ptrace.cstatic unsigned long get_long(struct vm_area_struct * vma, unsigned long addr)
vma93arch/mips/kernel/ptrace.cpgdir = PAGE_DIR_OFFSET(vma->vm_mm, addr);
vma95arch/mips/kernel/ptrace.cdo_no_page(vma, addr, 0);
vma105arch/mips/kernel/ptrace.cdo_no_page(vma, addr, 0);
vma125arch/mips/kernel/ptrace.cstatic void put_long(struct vm_area_struct * vma, unsigned long addr,
vma133arch/mips/kernel/ptrace.cpgdir = PAGE_DIR_OFFSET(vma->vm_mm, addr);
vma135arch/mips/kernel/ptrace.cdo_no_page(vma, addr, 1);
vma145arch/mips/kernel/ptrace.cdo_no_page(vma, addr, 1);
vma150arch/mips/kernel/ptrace.cdo_wp_page(vma, addr, 1);
vma158arch/mips/kernel/ptrace.cset_pte(pgtable, pte_mkdirty(mk_pte(page, vma->vm_page_prot)));
vma164arch/mips/kernel/ptrace.cstruct vm_area_struct * vma;
vma167arch/mips/kernel/ptrace.cvma = find_vma(tsk, addr);
vma168arch/mips/kernel/ptrace.cif (!vma)
vma170arch/mips/kernel/ptrace.cif (vma->vm_start <= addr)
vma171arch/mips/kernel/ptrace.creturn vma;
vma172arch/mips/kernel/ptrace.cif (!(vma->vm_flags & VM_GROWSDOWN))
vma174arch/mips/kernel/ptrace.cif (vma->vm_end - addr > tsk->rlim[RLIMIT_STACK].rlim_cur)
vma176arch/mips/kernel/ptrace.cvma->vm_offset -= vma->vm_start - addr;
vma177arch/mips/kernel/ptrace.cvma->vm_start = addr;
vma178arch/mips/kernel/ptrace.creturn vma;
vma188arch/mips/kernel/ptrace.cstruct vm_area_struct * vma = find_extend_vma(tsk, addr);
vma190arch/mips/kernel/ptrace.cif (!vma)
vma194arch/mips/kernel/ptrace.cstruct vm_area_struct * vma_high = vma;
vma196arch/mips/kernel/ptrace.cif (addr + sizeof(long) >= vma->vm_end) {
vma197arch/mips/kernel/ptrace.cvma_high = vma->vm_next;
vma198arch/mips/kernel/ptrace.cif (!vma_high || vma_high->vm_start != vma->vm_end)
vma201arch/mips/kernel/ptrace.clow = get_long(vma, addr & ~(sizeof(long)-1));
vma219arch/mips/kernel/ptrace.c*result = get_long(vma, addr);
vma230arch/mips/kernel/ptrace.cstruct vm_area_struct * vma = find_extend_vma(tsk, addr);
vma232arch/mips/kernel/ptrace.cif (!vma)
vma236arch/mips/kernel/ptrace.cstruct vm_area_struct * vma_high = vma;
vma238arch/mips/kernel/ptrace.cif (addr + sizeof(long) >= vma->vm_end) {
vma239arch/mips/kernel/ptrace.cvma_high = vma->vm_next;
vma240arch/mips/kernel/ptrace.cif (!vma_high || vma_high->vm_start != vma->vm_end)
vma243arch/mips/kernel/ptrace.clow = get_long(vma, addr & ~(sizeof(long)-1));
vma268arch/mips/kernel/ptrace.cput_long(vma, addr & ~(sizeof(long)-1),low);
vma271arch/mips/kernel/ptrace.cput_long(vma, addr, data);
vma36arch/mips/kernel/sysmips.cstruct vm_area_struct * vma;
vma38arch/mips/kernel/sysmips.cvma = find_vma(current, address);
vma39arch/mips/kernel/sysmips.cif (!vma || vma->vm_start > address || !(vma->vm_flags & VM_READ))
vma41arch/mips/kernel/sysmips.caddress = vma->vm_end - address;
vma44arch/mips/kernel/sysmips.cif (vma->vm_next && vma->vm_next->vm_start == vma->vm_end &&
vma45arch/mips/kernel/sysmips.c(vma->vm_next->vm_flags & VM_READ))
vma31arch/mips/mm/fault.cstruct vm_area_struct * vma;
vma38arch/mips/mm/fault.cvma = find_vma(current, address);
vma39arch/mips/mm/fault.cif (!vma)
vma41arch/mips/mm/fault.cif (vma->vm_start <= address)
vma43arch/mips/mm/fault.cif (!(vma->vm_flags & VM_GROWSDOWN))
vma45arch/mips/mm/fault.cif (expand_stack(vma, address))
vma53arch/mips/mm/fault.cif (!(vma->vm_flags & VM_WRITE))
vma56arch/mips/mm/fault.cif (!(vma->vm_flags & (VM_READ | VM_EXEC)))
vma59arch/mips/mm/fault.chandle_mm_fault(vma, address, writeaccess);
vma185arch/ppc/mm/fault.cstruct vm_area_struct * vma;
vma190arch/ppc/mm/fault.cfor (vma = current->mm->mmap ; ; vma = vma->vm_next)
vma192arch/ppc/mm/fault.cif (!vma)
vma198arch/ppc/mm/fault.cif (vma->vm_end > address)
vma202arch/ppc/mm/fault.cvma = find_vma(current, address);
vma203arch/ppc/mm/fault.cif (!vma)
vma208arch/ppc/mm/fault.cif (vma->vm_start <= address){
vma211arch/ppc/mm/fault.cif (!(vma->vm_flags & VM_GROWSDOWN))
vma217arch/ppc/mm/fault.cif (vma->vm_end - address > current->rlim[RLIMIT_STACK].rlim_cur)
vma219arch/ppc/mm/fault.cprintk("stack2: vma->vm_end-addres %x rlim %x\n", vma->vm_end - address,
vma221arch/ppc/mm/fault.cprintk("stack2: vm_end %x address = %x\n", vma->vm_end,address);
vma226arch/ppc/mm/fault.cvma->vm_offset -= vma->vm_start - (address & PAGE_MASK);
vma227arch/ppc/mm/fault.cvma->vm_start = (address & PAGE_MASK);
vma238arch/ppc/mm/fault.cif (!(vma->vm_flags & VM_WRITE))
vma242arch/ppc/mm/fault.ccurrent,address,vma->vm_flags,current->mm,vma,vma->vm_start,vma->vm_end);
vma252arch/ppc/mm/fault.cif (!(vma->vm_flags & (VM_READ | VM_EXEC)))
vma255arch/ppc/mm/fault.c_printk("vma = %x\n", vma);
vma256arch/ppc/mm/fault.c_printk("vma->vm_flags = %x\n", vma->vm_flags);      
vma261arch/ppc/mm/fault.cvma, VM_READ,VM_EXEC);
vma263arch/ppc/mm/fault.cvma->vm_start, vma->vm_end);
vma266arch/ppc/mm/fault.cprintk("vma->vm_flags = %x\n", vma->vm_flags);
vma273arch/ppc/mm/fault.chandle_mm_fault(vma, address, error_code & 2); 
vma296arch/ppc/mm/fault.ccurrent,address,vma->vm_flags,current->mm,vma,vma->vm_start,vma->vm_end);
vma122arch/sparc/mm/fault.cstruct vm_area_struct *vma;
vma138arch/sparc/mm/fault.cvma = find_vma(current, address);
vma139arch/sparc/mm/fault.cif(!vma)
vma141arch/sparc/mm/fault.cif(vma->vm_start <= address)
vma143arch/sparc/mm/fault.cif(!(vma->vm_flags & VM_GROWSDOWN))
vma145arch/sparc/mm/fault.cif(expand_stack(vma, address))
vma153arch/sparc/mm/fault.cif(!(vma->vm_flags & VM_WRITE))
vma157arch/sparc/mm/fault.cif(!(vma->vm_flags & (VM_READ | VM_EXEC)))
vma160arch/sparc/mm/fault.chandle_mm_fault(vma, address, write);
vma198arch/sparc/mm/fault.cstruct vm_area_struct *vma;
vma200arch/sparc/mm/fault.cvma = find_vma(current, address);
vma201arch/sparc/mm/fault.cif(!vma)
vma203arch/sparc/mm/fault.cif(vma->vm_start <= address)
vma205arch/sparc/mm/fault.cif(!(vma->vm_flags & VM_GROWSDOWN))
vma207arch/sparc/mm/fault.cif(expand_stack(vma, address))
vma211arch/sparc/mm/fault.cif(!(vma->vm_flags & VM_WRITE))
vma214arch/sparc/mm/fault.cif(!(vma->vm_flags & (VM_READ | VM_EXEC)))
vma216arch/sparc/mm/fault.chandle_mm_fault(vma, address, write);
vma35arch/sparc/mm/loadmmu.cvoid (*update_mmu_cache)(struct vm_area_struct *vma, unsigned long address, pte_t pte);
vma1126arch/sparc/mm/srmmu.cstatic void srmmu_update_mmu_cache(struct vm_area_struct * vma, unsigned long address, pte_t pte)
vma555arch/sparc/mm/sun4c.cstatic void sun4c_update_mmu_cache(struct vm_area_struct *vma, unsigned long address, pte_t pte)
vma925arch/sparc/mm/sun4c.cstatic void sun4c_invalidate_page(struct vm_area_struct *vma, unsigned long page)
vma927arch/sparc/mm/sun4c.cstruct mm_struct *mm = vma->vm_mm;
vma99drivers/char/mem.cstatic int mmap_mem(struct inode * inode, struct file * file, struct vm_area_struct * vma)
vma101drivers/char/mem.cif (vma->vm_offset & ~PAGE_MASK)
vma110drivers/char/mem.cif (x86 > 3 && vma->vm_offset >= high_memory)
vma111drivers/char/mem.cpgprot_val(vma->vm_page_prot) |= _PAGE_PCD;
vma113drivers/char/mem.cif (remap_page_range(vma->vm_start, vma->vm_offset, vma->vm_end - vma->vm_start, vma->vm_page_prot))
vma115drivers/char/mem.cvma->vm_inode = inode;
vma183drivers/char/mem.cstatic int mmap_zero(struct inode * inode, struct file * file, struct vm_area_struct * vma)
vma185drivers/char/mem.cif (vma->vm_flags & VM_SHARED)
vma187drivers/char/mem.cif (zeromap_page_range(vma->vm_start, vma->vm_end - vma->vm_start, vma->vm_page_prot))
vma234drivers/sound/soundcard.csound_mmap (inode_handle * inode, file_handle * file, vm_area_handle * vma)
vma253drivers/sound/soundcard.cif ((vma_get_flags (vma) & (VM_READ | VM_WRITE)) == (VM_READ | VM_WRITE))
vma259drivers/sound/soundcard.cif (vma_get_flags (vma) & VM_READ)
vma263drivers/sound/soundcard.celse if (vma_get_flags (vma) & VM_WRITE)
vma291drivers/sound/soundcard.cif (vma_get_offset (vma) != 0)
vma297drivers/sound/soundcard.csize = vma_get_end (vma) - vma_get_start (vma);
vma306drivers/sound/soundcard.cif (remap_page_range (vma_get_start (vma), dmap->raw_buf_phys,
vma307drivers/sound/soundcard.cvma_get_end (vma) - vma_get_start (vma),
vma308drivers/sound/soundcard.cvma_get_page_prot (vma)))
vma311drivers/sound/soundcard.cvma_set_inode (vma, inode);
vma842fs/binfmt_elf.cstatic inline int maydump(struct vm_area_struct *vma)
vma844fs/binfmt_elf.cif (!(vma->vm_flags & (VM_READ|VM_WRITE|VM_EXEC)))
vma847fs/binfmt_elf.cif (vma->vm_flags & (VM_WRITE|VM_GROWSUP|VM_GROWSDOWN))
vma849fs/binfmt_elf.cif (vma->vm_flags & (VM_READ|VM_EXEC|VM_EXECUTABLE|VM_SHARED))
vma945fs/binfmt_elf.cstruct vm_area_struct *vma;
vma966fs/binfmt_elf.cfor(vma = current->mm->mmap; vma != NULL; vma = vma->vm_next) {
vma967fs/binfmt_elf.cint sz = vma->vm_end-vma->vm_start;
vma969fs/binfmt_elf.cif (!maydump(vma))
vma1150fs/binfmt_elf.cfor(vma = current->mm->mmap, i = 0;
vma1151fs/binfmt_elf.ci < segs && vma != NULL; vma = vma->vm_next) {
vma1155fs/binfmt_elf.cif (!maydump(vma))
vma1159fs/binfmt_elf.csz = vma->vm_end - vma->vm_start;
vma1163fs/binfmt_elf.cphdr.p_vaddr = vma->vm_start;
vma1168fs/binfmt_elf.cphdr.p_flags = vma->vm_flags & VM_READ ? PF_R : 0;
vma1169fs/binfmt_elf.cif (vma->vm_flags & VM_WRITE) phdr.p_flags |= PF_W;
vma1170fs/binfmt_elf.cif (vma->vm_flags & VM_EXEC) phdr.p_flags |= PF_X;
vma1184fs/binfmt_elf.cfor(i = 0, vma = current->mm->mmap;
vma1185fs/binfmt_elf.ci < segs && vma != NULL;
vma1186fs/binfmt_elf.cvma = vma->vm_next) {
vma1187fs/binfmt_elf.cunsigned long addr = vma->vm_start;
vma1188fs/binfmt_elf.cunsigned long len = vma->vm_end - vma->vm_start;
vma1190fs/binfmt_elf.cif (!maydump(vma))
vma94fs/fat/mmap.cint fat_mmap(struct inode * inode, struct file * file, struct vm_area_struct * vma)
vma96fs/fat/mmap.cif (vma->vm_flags & VM_SHARED)  /* only PAGE_COW or read-only supported now */
vma98fs/fat/mmap.cif (vma->vm_offset & (inode->i_sb->s_blocksize - 1))
vma107fs/fat/mmap.cvma->vm_inode = inode;
vma109fs/fat/mmap.cvma->vm_ops = &fat_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))
vma132fs/ncpfs/mmap.cncp_mmap(struct inode * inode, struct file * file, struct vm_area_struct * vma)
vma142fs/ncpfs/mmap.cif (vma->vm_flags & VM_SHARED)  
vma151fs/ncpfs/mmap.cvma->vm_inode = inode;
vma153fs/ncpfs/mmap.cvma->vm_ops = &ncp_file_mmap;
vma94fs/nfs/file.cstatic int nfs_file_mmap(struct inode * inode, struct file * file, struct vm_area_struct * vma)
vma97fs/nfs/file.creturn generic_file_mmap(inode, file, vma);
vma550fs/proc/array.cstruct vm_area_struct * vma = mm->mmap;
vma554fs/proc/array.cfor (vma = mm->mmap; vma; vma = vma->vm_next) {
vma555fs/proc/array.cunsigned long len = (vma->vm_end - vma->vm_start) >> 10;
vma556fs/proc/array.cif (!vma->vm_inode) {
vma558fs/proc/array.cif (vma->vm_flags & VM_GROWSDOWN)
vma562fs/proc/array.cif (vma->vm_flags & VM_WRITE)
vma564fs/proc/array.cif (vma->vm_flags & VM_EXEC) {
vma566fs/proc/array.cif (vma->vm_flags & VM_EXECUTABLE)
vma653fs/proc/array.cstruct vm_area_struct *vma = tsk->mm->mmap;
vma654fs/proc/array.cwhile (vma) {
vma655fs/proc/array.cvsize += vma->vm_end - vma->vm_start;
vma656fs/proc/array.cvma = vma->vm_next;
vma812fs/proc/array.cstruct vm_area_struct * vma = tsk->mm->mmap;
vma814fs/proc/array.cwhile (vma) {
vma815fs/proc/array.cpgd_t *pgd = pgd_offset(tsk->mm, vma->vm_start);
vma818fs/proc/array.cstatm_pgd_range(pgd, vma->vm_start, vma->vm_end, &pages, &shared, &dirty, &total);
vma823fs/proc/array.cif (vma->vm_flags & VM_EXECUTABLE)
vma825fs/proc/array.celse if (vma->vm_flags & VM_GROWSDOWN)
vma827fs/proc/array.celse if (vma->vm_end > 0x60000000)
vma831fs/proc/array.cvma = vma->vm_next;
vma105fs/proc/link.cstruct vm_area_struct * vma;
vma108fs/proc/link.cvma = p->mm->mmap;
vma109fs/proc/link.cwhile (vma) {
vma110fs/proc/link.cif (vma->vm_flags & VM_EXECUTABLE) {
vma111fs/proc/link.cnew_inode = vma->vm_inode;
vma114fs/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.cflush_cache_range(vma->vm_mm, vma->vm_start, vma->vm_end);
vma272fs/proc/mem.cwhile (dtmp < vma->vm_end) {
vma291fs/proc/mem.cif ((vma->vm_flags & VM_WRITE) && !pte_write(*src_table))
vma302fs/proc/mem.cflush_tlb_range(vma->vm_mm, vma->vm_start, vma->vm_end);
vma104fs/smbfs/mmap.csmb_mmap(struct inode * inode, struct file * file, struct vm_area_struct * vma)
vma109fs/smbfs/mmap.cif (vma->vm_flags & VM_SHARED)  
vma118fs/smbfs/mmap.cvma->vm_inode = inode;
vma120fs/smbfs/mmap.cvma->vm_ops = &smb_file_mmap;
vma705fs/super.cstruct vm_area_struct * vma;
vma711fs/super.cvma = find_vma(current, (unsigned long) data);
vma712fs/super.cif (!vma || (unsigned long) data < vma->vm_start)
vma714fs/super.ci = vma->vm_end - (unsigned long) data;
vma18include/asm-alpha/pgtable.h#define flush_cache_page(vma, vmaddr)    do { } while (0)
vma57include/asm-alpha/pgtable.hstatic inline void flush_tlb_page(struct vm_area_struct *vma,
vma60include/asm-alpha/pgtable.hstruct mm_struct * mm = vma->vm_mm;
vma65include/asm-alpha/pgtable.htbi(2 + ((vma->vm_flags & VM_EXEC) != 0), addr);
vma455include/asm-alpha/pgtable.hextern inline void update_mmu_cache(struct vm_area_struct * vma,
vma26include/asm-i386/pgtable.h#define flush_cache_page(vma, vmaddr)    do { } while (0)
vma63include/asm-i386/pgtable.hstatic inline void flush_tlb_page(struct vm_area_struct *vma,
vma66include/asm-i386/pgtable.hif (vma->vm_mm == current->mm)
vma124include/asm-i386/pgtable.hstatic inline void flush_tlb_page(struct vm_area_struct * vma,
vma127include/asm-i386/pgtable.hif (vma->vm_mm == current->mm && current->mm->count == 1)
vma152include/asm-i386/pgtable.hstatic inline void flush_tlb_page(struct vm_area_struct *vma,
vma475include/asm-i386/pgtable.hextern inline void update_mmu_cache(struct vm_area_struct * vma,
vma551include/asm-mips/pgtable.hextern void update_mmu_cache(struct vm_area_struct * vma,
vma483include/asm-ppc/pgtable.hextern inline void update_mmu_cache(struct vm_area_struct * vma,
vma487include/asm-ppc/pgtable.hprintk("Update MMU cache - VMA: %x, Addr: %x, PTE: %x\n", vma, address, *(long *)&_pte);
vma488include/asm-ppc/pgtable.h_printk("Update MMU cache - VMA: %x, Addr: %x, PTE: %x\n", vma, address, *(long *)&_pte);
vma269include/asm-sparc/pgtable.hextern void (*update_mmu_cache)(struct vm_area_struct *vma, unsigned long address, pte_t pte);
vma178include/linux/mm.hextern int copy_page_range(struct mm_struct *dst, struct mm_struct *src, struct vm_area_struct *vma);
vma183include/linux/mm.hextern void handle_mm_fault(struct vm_area_struct *vma, unsigned long address, int write_access);
vma184include/linux/mm.hextern void do_wp_page(struct task_struct * tsk, struct vm_area_struct * vma, unsigned long address, int write_access);
vma185include/linux/mm.hextern void do_no_page(struct task_struct * tsk, struct vm_area_struct * vma, unsigned long address, int write_access);
vma232include/linux/mm.hstatic inline int expand_stack(struct vm_area_struct * vma, unsigned long address)
vma237include/linux/mm.hif (vma->vm_end - address > current->rlim[RLIMIT_STACK].rlim_cur)
vma239include/linux/mm.hgrow = vma->vm_start - address;
vma240include/linux/mm.hvma->vm_start = address;
vma241include/linux/mm.hvma->vm_offset -= grow;
vma242include/linux/mm.hvma->vm_mm->total_vm += grow >> PAGE_SHIFT;
vma243include/linux/mm.hif (vma->vm_flags & VM_LOCKED)
vma244include/linux/mm.hvma->vm_mm->locked_vm += grow >> PAGE_SHIFT;
vma275include/linux/mm.hstruct vm_area_struct * vma;
vma277include/linux/mm.hvma = find_vma(task,start_addr);
vma278include/linux/mm.hif (!vma || end_addr <= vma->vm_start)
vma280include/linux/mm.hreturn vma;
vma161include/linux/ncp_fs.hint ncp_mmap(struct inode * inode, struct file * file, struct vm_area_struct * vma);
vma134include/linux/nfs_fs.hextern int nfs_mmap(struct inode * inode, struct file * file, struct vm_area_struct * vma);
vma177include/linux/smb_fs.hint smb_mmap(struct inode * inode, struct file * file, struct vm_area_struct * vma);
vma526mm/filemap.cstatic int filemap_write_page(struct vm_area_struct * vma,
vma546mm/filemap.cinode = vma->vm_inode;
vma574mm/filemap.cint filemap_swapout(struct vm_area_struct * vma,
vma582mm/filemap.cflush_cache_page(vma, (offset + vma->vm_start - vma->vm_offset));
vma584mm/filemap.cflush_tlb_page(vma, (offset + vma->vm_start - vma->vm_offset));
vma585mm/filemap.cerror = filemap_write_page(vma, offset, page);
vma597mm/filemap.cstatic pte_t filemap_swapin(struct vm_area_struct * vma,
vma605mm/filemap.creturn mk_pte(page,vma->vm_page_prot);
vma609mm/filemap.cstatic inline int filemap_sync_pte(pte_t * ptep, struct vm_area_struct *vma,
vma621mm/filemap.cflush_cache_page(vma, address);
vma623mm/filemap.cflush_tlb_page(vma, address);
vma629mm/filemap.cflush_cache_page(vma, address);
vma631mm/filemap.cflush_tlb_page(vma, address);
vma642mm/filemap.cerror = filemap_write_page(vma, address - vma->vm_start + vma->vm_offset, page);
vma649mm/filemap.cstruct vm_area_struct *vma, unsigned long offset, unsigned int flags)
vma670mm/filemap.cerror |= filemap_sync_pte(pte, vma, address + offset, flags);
vma679mm/filemap.cstruct vm_area_struct *vma, unsigned int flags)
vma700mm/filemap.cerror |= filemap_sync_pte_range(pmd, address, end - address, vma, offset, flags);
vma707mm/filemap.cstatic int filemap_sync(struct vm_area_struct * vma, unsigned long address,
vma715mm/filemap.cflush_cache_range(vma->vm_mm, end - size, end);
vma717mm/filemap.cerror |= filemap_sync_pmd_range(dir, address, end - address, vma, flags);
vma721mm/filemap.cflush_tlb_range(vma->vm_mm, end - size, end);
vma728mm/filemap.cstatic void filemap_unmap(struct vm_area_struct *vma, unsigned long start, size_t len)
vma730mm/filemap.cfilemap_sync(vma, start, len, MS_ASYNC);
vma771mm/filemap.cint generic_file_mmap(struct inode * inode, struct file * file, struct vm_area_struct * vma)
vma775mm/filemap.cif ((vma->vm_flags & VM_SHARED) && (vma->vm_flags & VM_MAYWRITE)) {
vma779mm/filemap.cif (vma->vm_offset & (PAGE_SIZE - 1))
vma783mm/filemap.cif (vma->vm_offset & (inode->i_sb->s_blocksize - 1))
vma794mm/filemap.cvma->vm_inode = inode;
vma796mm/filemap.cvma->vm_ops = ops;
vma805mm/filemap.cstatic int msync_interval(struct vm_area_struct * vma,
vma808mm/filemap.cif (!vma->vm_inode)
vma810mm/filemap.cif (vma->vm_ops->sync) {
vma812mm/filemap.cerror = vma->vm_ops->sync(vma, start, end-start, flags);
vma816mm/filemap.creturn file_fsync(vma->vm_inode, NULL);
vma825mm/filemap.cstruct vm_area_struct * vma;
vma842mm/filemap.cvma = find_vma(current, start);
vma846mm/filemap.cif (!vma)
vma849mm/filemap.cif (start < vma->vm_start) {
vma851mm/filemap.cstart = vma->vm_start;
vma854mm/filemap.cif (end <= vma->vm_end) {
vma856mm/filemap.cerror = msync_interval(vma, start, end, flags);
vma863mm/filemap.cerror = msync_interval(vma, start, vma->vm_end, flags);
vma866mm/filemap.cstart = vma->vm_end;
vma867mm/filemap.cvma = vma->vm_next;
vma281mm/memory.cstruct vm_area_struct *vma)
vma284mm/memory.cunsigned long address = vma->vm_start;
vma285mm/memory.cunsigned long end = vma->vm_end;
vma288mm/memory.ccow = (vma->vm_flags & (VM_SHARED | VM_WRITE)) == VM_WRITE;
vma291mm/memory.cflush_cache_range(src, vma->vm_start, vma->vm_end);
vma292mm/memory.cflush_cache_range(dst, vma->vm_start, vma->vm_end);
vma300mm/memory.cflush_tlb_range(src, vma->vm_start, vma->vm_end);
vma301mm/memory.cflush_tlb_range(dst, vma->vm_start, vma->vm_end);
vma593mm/memory.cvoid do_wp_page(struct task_struct * tsk, struct vm_area_struct * vma,
vma602mm/memory.cpage_dir = pgd_offset(vma->vm_mm, address);
vma628mm/memory.c++vma->vm_mm->rss;
vma632mm/memory.cflush_cache_page(vma, address);
vma633mm/memory.cset_pte(page_table, pte_mkwrite(pte_mkdirty(mk_pte(new_page, vma->vm_page_prot))));
vma635mm/memory.cflush_tlb_page(vma, address);
vma638mm/memory.cflush_cache_page(vma, address);
vma640mm/memory.cflush_tlb_page(vma, address);
vma645mm/memory.cflush_cache_page(vma, address);
vma647mm/memory.cflush_tlb_page(vma, address);
vma673mm/memory.cstruct vm_area_struct * vma;
vma683mm/memory.cvma = find_vma(current, start);
vma684mm/memory.cif (!vma)
vma686mm/memory.cif (vma->vm_start <= start)
vma688mm/memory.cif (!(vma->vm_flags & VM_GROWSDOWN))
vma690mm/memory.cif (expand_stack(vma, start))
vma698mm/memory.cif (!(vma->vm_flags & VM_READ))
vma700mm/memory.cif (vma->vm_end - start >= size)
vma702mm/memory.cnext = vma->vm_next;
vma703mm/memory.cif (!next || vma->vm_end != next->vm_start)
vma705mm/memory.cvma = next;
vma709mm/memory.cif (!(vma->vm_flags & VM_WRITE))
vma714mm/memory.cif (vma->vm_end - start >= size)
vma716mm/memory.cif (!vma->vm_next || vma->vm_end != vma->vm_next->vm_start)
vma718mm/memory.cvma = vma->vm_next;
vma719mm/memory.cif (!(vma->vm_flags & VM_WRITE))
vma731mm/memory.cdo_wp_page(current, vma, start, 1);
vma736mm/memory.cif (start < vma->vm_end)
vma738mm/memory.cvma = vma->vm_next;
vma739mm/memory.cif (!vma || vma->vm_start != start)
vma741mm/memory.cif (!(vma->vm_flags & VM_WRITE))
vma750mm/memory.cstatic inline void get_empty_page(struct task_struct * tsk, struct vm_area_struct * vma,
vma755mm/memory.cpte = pte_wrprotect(mk_pte(ZERO_PAGE, vma->vm_page_prot));
vma758mm/memory.cpte = pte_mkwrite(mk_pte(page, vma->vm_page_prot));
vma759mm/memory.cvma->vm_mm->rss++;
vma772mm/memory.cstatic void partial_clear(struct vm_area_struct *vma, unsigned long address)
vma778mm/memory.cpage_dir = pgd_offset(vma->vm_mm, address);
vma870mm/memory.cstruct vm_area_struct * vma, unsigned long address,
vma875mm/memory.cif (!vma->vm_ops || !vma->vm_ops->swapin) {
vma876mm/memory.cswap_in(tsk, vma, page_table, pte_val(entry), write_access);
vma879mm/memory.cpage = vma->vm_ops->swapin(vma, address - vma->vm_start + vma->vm_offset, pte_val(entry));
vma884mm/memory.cif (mem_map[MAP_NR(pte_page(page))].count > 1 && !(vma->vm_flags & VM_SHARED))
vma886mm/memory.c++vma->vm_mm->rss;
vma898mm/memory.cvoid do_no_page(struct task_struct * tsk, struct vm_area_struct * vma,
vma912mm/memory.cdo_swap_page(tsk, vma, address, page_table, entry, write_access);
vma916mm/memory.cif (!vma->vm_ops || !vma->vm_ops->nopage) {
vma917mm/memory.cflush_cache_page(vma, address);
vma918mm/memory.cget_empty_page(tsk, vma, page_table, write_access);
vma922mm/memory.c++vma->vm_mm->rss;
vma928mm/memory.cpage = vma->vm_ops->nopage(vma, address, write_access && !(vma->vm_flags & VM_SHARED));
vma931mm/memory.cflush_cache_page(vma, address);
vma933mm/memory.cflush_tlb_page(vma, address);
vma946mm/memory.centry = mk_pte(page, vma->vm_page_prot);
vma949mm/memory.c} else if (mem_map[MAP_NR(page)].count > 1 && !(vma->vm_flags & VM_SHARED))
vma951mm/memory.cflush_cache_page(vma, address);
vma953mm/memory.cflush_tlb_page(vma, address);
vma969mm/memory.cstatic inline void handle_pte_fault(struct vm_area_struct * vma, unsigned long address,
vma973mm/memory.cdo_no_page(current, vma, address, write_access);
vma983mm/memory.cdo_wp_page(current, vma, address, write_access);
vma986mm/memory.cvoid handle_mm_fault(struct vm_area_struct * vma, unsigned long address,
vma993mm/memory.cpgd = pgd_offset(vma->vm_mm, address);
vma1000mm/memory.chandle_pte_fault(vma, address, write_access, pte);
vma1001mm/memory.cupdate_mmu_cache(vma, address, *pte);
vma20mm/mlock.cstatic inline int mlock_fixup_all(struct vm_area_struct * vma, int newflags)
vma22mm/mlock.cvma->vm_flags = newflags;
vma26mm/mlock.cstatic inline int mlock_fixup_start(struct vm_area_struct * vma,
vma34mm/mlock.c*n = *vma;
vma35mm/mlock.cvma->vm_start = end;
vma37mm/mlock.cvma->vm_offset += vma->vm_start - n->vm_start;
vma47mm/mlock.cstatic inline int mlock_fixup_end(struct vm_area_struct * vma,
vma55mm/mlock.c*n = *vma;
vma56mm/mlock.cvma->vm_end = start;
vma58mm/mlock.cn->vm_offset += n->vm_start - vma->vm_start;
vma68mm/mlock.cstatic inline int mlock_fixup_middle(struct vm_area_struct * vma,
vma81mm/mlock.c*left = *vma;
vma82mm/mlock.c*right = *vma;
vma84mm/mlock.cvma->vm_start = start;
vma85mm/mlock.cvma->vm_end = end;
vma87mm/mlock.cvma->vm_offset += vma->vm_start - left->vm_start;
vma89mm/mlock.cvma->vm_flags = newflags;
vma90mm/mlock.cif (vma->vm_inode)
vma91mm/mlock.cvma->vm_inode->i_count += 2;
vma92mm/mlock.cif (vma->vm_ops && vma->vm_ops->open) {
vma93mm/mlock.cvma->vm_ops->open(left);
vma94mm/mlock.cvma->vm_ops->open(right);
vma101mm/mlock.cstatic int mlock_fixup(struct vm_area_struct * vma, 
vma106mm/mlock.cif (newflags == vma->vm_flags)
vma109mm/mlock.cif (start == vma->vm_start) {
vma110mm/mlock.cif (end == vma->vm_end)
vma111mm/mlock.cretval = mlock_fixup_all(vma, newflags);
vma113mm/mlock.cretval = mlock_fixup_start(vma, end, newflags);
vma115mm/mlock.cif (end == vma->vm_end)
vma116mm/mlock.cretval = mlock_fixup_end(vma, start, newflags);
vma118mm/mlock.cretval = mlock_fixup_middle(vma, start, end, newflags);
vma125mm/mlock.cvma->vm_mm->locked_vm += pages;
vma140mm/mlock.cstruct vm_area_struct * vma, * next;
vma151mm/mlock.cvma = find_vma(current, start);
vma152mm/mlock.cif (!vma || vma->vm_start > start)
vma160mm/mlock.cnewflags = vma->vm_flags | VM_LOCKED;
vma164mm/mlock.cif (vma->vm_end >= end) {
vma165mm/mlock.cerror = mlock_fixup(vma, nstart, end, newflags);
vma169mm/mlock.ctmp = vma->vm_end;
vma170mm/mlock.cnext = vma->vm_next;
vma171mm/mlock.cerror = mlock_fixup(vma, nstart, tmp, newflags);
vma175mm/mlock.cvma = next;
vma176mm/mlock.cif (!vma || vma->vm_start != nstart) {
vma222mm/mlock.cstruct vm_area_struct * vma;
vma233mm/mlock.cfor (vma = current->mm->mmap; vma ; vma = vma->vm_next) {
vma236mm/mlock.cnewflags = vma->vm_flags | VM_LOCKED;
vma239mm/mlock.cerror = mlock_fixup(vma, vma->vm_start, vma->vm_end, newflags);
vma45mm/mmap.cstruct vm_area_struct * vma;
vma116mm/mmap.cvma = (struct vm_area_struct *)kmalloc(sizeof(struct vm_area_struct),
vma118mm/mmap.cif (!vma)
vma121mm/mmap.cvma->vm_mm = current->mm;
vma122mm/mmap.cvma->vm_start = addr;
vma123mm/mmap.cvma->vm_end = addr + len;
vma124mm/mmap.cvma->vm_flags = prot & (VM_READ | VM_WRITE | VM_EXEC);
vma125mm/mmap.cvma->vm_flags |= flags & (VM_GROWSDOWN | VM_DENYWRITE | VM_EXECUTABLE);
vma126mm/mmap.cvma->vm_flags |= current->mm->def_flags;
vma130mm/mmap.cvma->vm_flags |= VM_MAYREAD | VM_MAYWRITE | VM_MAYEXEC;
vma132mm/mmap.cvma->vm_flags |= VM_SHARED | VM_MAYSHARE;
vma144mm/mmap.cvma->vm_flags &= ~(VM_MAYWRITE | VM_SHARED);
vma147mm/mmap.cvma->vm_flags |= VM_MAYREAD | VM_MAYWRITE | VM_MAYEXEC;
vma148mm/mmap.cvma->vm_page_prot = protection_map[vma->vm_flags & 0x0f];
vma149mm/mmap.cvma->vm_ops = NULL;
vma150mm/mmap.cvma->vm_offset = off;
vma151mm/mmap.cvma->vm_inode = NULL;
vma152mm/mmap.cvma->vm_pte = 0;
vma157mm/mmap.cint error = file->f_op->mmap(file->f_inode, file, vma);
vma160mm/mmap.ckfree(vma);
vma165mm/mmap.cflags = vma->vm_flags;
vma166mm/mmap.cinsert_vm_struct(current, vma);
vma167mm/mmap.cmerge_segments(current, vma->vm_start, vma->vm_end);
vma476mm/mmap.cstatic void printk_list (struct vm_area_struct * vma)
vma479mm/mmap.cwhile (vma) {
vma480mm/mmap.cprintk("%08lX-%08lX", vma->vm_start, vma->vm_end);
vma481mm/mmap.cvma = vma->vm_next;
vma482mm/mmap.cif (!vma)
vma744mm/mmap.cstruct vm_area_struct * vma;
vma747mm/mmap.cfor (vma = mm->mmap; vma; vma = vma->vm_next)
vma748mm/mmap.cavl_insert(vma, &mm->mmap_avl);
vma88mm/mprotect.cstatic inline int mprotect_fixup_all(struct vm_area_struct * vma,
vma91mm/mprotect.cvma->vm_flags = newflags;
vma92mm/mprotect.cvma->vm_page_prot = prot;
vma96mm/mprotect.cstatic inline int mprotect_fixup_start(struct vm_area_struct * vma,
vma105mm/mprotect.c*n = *vma;
vma106mm/mprotect.cvma->vm_start = end;
vma108mm/mprotect.cvma->vm_offset += vma->vm_start - n->vm_start;
vma119mm/mprotect.cstatic inline int mprotect_fixup_end(struct vm_area_struct * vma,
vma128mm/mprotect.c*n = *vma;
vma129mm/mprotect.cvma->vm_end = start;
vma131mm/mprotect.cn->vm_offset += n->vm_start - vma->vm_start;
vma142mm/mprotect.cstatic inline int mprotect_fixup_middle(struct vm_area_struct * vma,
vma156mm/mprotect.c*left = *vma;
vma157mm/mprotect.c*right = *vma;
vma159mm/mprotect.cvma->vm_start = start;
vma160mm/mprotect.cvma->vm_end = end;
vma162mm/mprotect.cvma->vm_offset += vma->vm_start - left->vm_start;
vma164mm/mprotect.cvma->vm_flags = newflags;
vma165mm/mprotect.cvma->vm_page_prot = prot;
vma166mm/mprotect.cif (vma->vm_inode)
vma167mm/mprotect.cvma->vm_inode->i_count += 2;
vma168mm/mprotect.cif (vma->vm_ops && vma->vm_ops->open) {
vma169mm/mprotect.cvma->vm_ops->open(left);
vma170mm/mprotect.cvma->vm_ops->open(right);
vma177mm/mprotect.cstatic int mprotect_fixup(struct vm_area_struct * vma, 
vma183mm/mprotect.cif (newflags == vma->vm_flags)
vma186mm/mprotect.cif (start == vma->vm_start)
vma187mm/mprotect.cif (end == vma->vm_end)
vma188mm/mprotect.cerror = mprotect_fixup_all(vma, newflags, newprot);
vma190mm/mprotect.cerror = mprotect_fixup_start(vma, end, newflags, newprot);
vma191mm/mprotect.celse if (end == vma->vm_end)
vma192mm/mprotect.cerror = mprotect_fixup_end(vma, start, newflags, newprot);
vma194mm/mprotect.cerror = mprotect_fixup_middle(vma, start, end, newflags, newprot);
vma206mm/mprotect.cstruct vm_area_struct * vma, * next;
vma219mm/mprotect.cvma = find_vma(current, start);
vma220mm/mprotect.cif (!vma || vma->vm_start > start)
vma228mm/mprotect.cnewflags = prot | (vma->vm_flags & ~(PROT_READ | PROT_WRITE | PROT_EXEC));
vma234mm/mprotect.cif (vma->vm_end >= end) {
vma235mm/mprotect.cerror = mprotect_fixup(vma, nstart, end, newflags);
vma239mm/mprotect.ctmp = vma->vm_end;
vma240mm/mprotect.cnext = vma->vm_next;
vma241mm/mprotect.cerror = mprotect_fixup(vma, nstart, tmp, newflags);
vma245mm/mprotect.cvma = next;
vma246mm/mprotect.cif (!vma || vma->vm_start != nstart) {
vma127mm/mremap.cstatic inline unsigned long move_vma(struct vm_area_struct * vma,
vma138mm/mremap.c*new_vma = *vma;
vma141mm/mremap.cnew_vma->vm_offset = vma->vm_offset + (addr - vma->vm_start);
vma164mm/mremap.cstruct vm_area_struct *vma;
vma185mm/mremap.cvma = find_vma(current, addr);
vma186mm/mremap.cif (!vma || vma->vm_start > addr)
vma189mm/mremap.cif (old_len > vma->vm_end - addr)
vma191mm/mremap.cif (vma->vm_flags & VM_LOCKED) {
vma199mm/mremap.cif (old_len == vma->vm_end - addr) {
vma201mm/mremap.cif (vma->vm_next)
vma202mm/mremap.cmax_addr = vma->vm_next->vm_start;
vma206mm/mremap.cvma->vm_end = addr + new_len;
vma208mm/mremap.cif (vma->vm_flags & VM_LOCKED)
vma220mm/mremap.creturn move_vma(vma, addr, old_len, new_len);
vma311mm/page_alloc.cvoid swap_in(struct task_struct * tsk, struct vm_area_struct * vma,
vma331mm/page_alloc.cvma->vm_mm->rss++;
vma334mm/page_alloc.cset_pte(page_table, mk_pte(page, vma->vm_page_prot));
vma337mm/page_alloc.cset_pte(page_table, pte_mkwrite(pte_mkdirty(mk_pte(page, vma->vm_page_prot))));
vma163mm/swapfile.cstatic inline int unuse_pte(struct vm_area_struct * vma, unsigned long address,
vma189mm/swapfile.cset_pte(dir, pte_mkwrite(pte_mkdirty(mk_pte(page, vma->vm_page_prot))));
vma190mm/swapfile.c++vma->vm_mm->rss;
vma195mm/swapfile.cstatic inline int unuse_pmd(struct vm_area_struct * vma, pmd_t *dir,
vma216mm/swapfile.cif (unuse_pte(vma, offset+address-vma->vm_start, pte, type, page))
vma224mm/swapfile.cstatic inline int unuse_pgd(struct vm_area_struct * vma, pgd_t *dir,
vma245mm/swapfile.cif (unuse_pmd(vma, pmd, address, end - address, offset, type, page))
vma253mm/swapfile.cstatic int unuse_vma(struct vm_area_struct * vma, pgd_t *pgdir,
vma258mm/swapfile.cif (unuse_pgd(vma, pgdir, start, end - start, type, page))
vma268mm/swapfile.cstruct vm_area_struct* vma;
vma275mm/swapfile.cvma = mm->mmap;
vma276mm/swapfile.cwhile (vma) {
vma277mm/swapfile.cpgd_t * pgd = pgd_offset(mm, vma->vm_start);
vma278mm/swapfile.cif (unuse_vma(vma, pgd, vma->vm_start, vma->vm_end, type, page))
vma280mm/swapfile.cvma = vma->vm_next;
vma70mm/vmscan.cstatic inline int try_to_swap_out(struct task_struct * tsk, struct vm_area_struct* vma,
vma102mm/vmscan.cif (vma->vm_ops && vma->vm_ops->swapout) {
vma104mm/vmscan.cvma->vm_mm->rss--;
vma105mm/vmscan.cif (vma->vm_ops->swapout(vma, address - vma->vm_start + vma->vm_offset, page_table))
vma112mm/vmscan.cvma->vm_mm->rss--;
vma113mm/vmscan.cflush_cache_page(vma, address);
vma115mm/vmscan.cflush_tlb_page(vma, address);
vma128mm/vmscan.cvma->vm_mm->rss--;
vma129mm/vmscan.cflush_cache_page(vma, address);
vma131mm/vmscan.cflush_tlb_page(vma, address);
vma135mm/vmscan.cvma->vm_mm->rss--;
vma136mm/vmscan.cflush_cache_page(vma, address);
vma138mm/vmscan.cflush_tlb_page(vma, address);
vma158mm/vmscan.cstatic inline int swap_out_pmd(struct task_struct * tsk, struct vm_area_struct * vma,
vma181mm/vmscan.cresult = try_to_swap_out(tsk, vma, address, pte, dma, wait);
vma190mm/vmscan.cstatic inline int swap_out_pgd(struct task_struct * tsk, struct vm_area_struct * vma,
vma211mm/vmscan.cint result = swap_out_pmd(tsk, vma, pmd, address, end, dma, wait);
vma220mm/vmscan.cstatic int swap_out_vma(struct task_struct * tsk, struct vm_area_struct * vma,
vma227mm/vmscan.cif (vma->vm_flags & (VM_SHM | VM_LOCKED))
vma230mm/vmscan.cend = vma->vm_end;
vma232mm/vmscan.cint result = swap_out_pgd(tsk, vma, pgdir, start, end, dma, wait);
vma244mm/vmscan.cstruct vm_area_struct* vma;
vma255mm/vmscan.cvma = find_vma(p, address);
vma256mm/vmscan.cif (!vma)
vma258mm/vmscan.cif (address < vma->vm_start)
vma259mm/vmscan.caddress = vma->vm_start;
vma262mm/vmscan.cint result = swap_out_vma(p, vma, pgd_offset(p->mm, address), address, dma, wait);
vma265mm/vmscan.cvma = vma->vm_next;
vma266mm/vmscan.cif (!vma)
vma268mm/vmscan.caddress = vma->vm_start;