taglinefilesource code
vma126arch/alpha/kernel/ptrace.cstatic unsigned long get_long(struct vm_area_struct * vma, unsigned long addr)
vma137arch/alpha/kernel/ptrace.cpgdir = pgd_offset(vma->vm_task, addr);
vma139arch/alpha/kernel/ptrace.cdo_no_page(vma, addr, 0);
vma149arch/alpha/kernel/ptrace.cdo_no_page(vma, addr, 0);
vma159arch/alpha/kernel/ptrace.cdo_no_page(vma, addr, 0);
vma179arch/alpha/kernel/ptrace.cstatic void put_long(struct vm_area_struct * vma, unsigned long addr,
vma188arch/alpha/kernel/ptrace.cpgdir = pgd_offset(vma->vm_task, addr);
vma190arch/alpha/kernel/ptrace.cdo_no_page(vma, addr, 1);
vma200arch/alpha/kernel/ptrace.cdo_no_page(vma, addr, 1);
vma210arch/alpha/kernel/ptrace.cdo_no_page(vma, addr, 1);
vma215arch/alpha/kernel/ptrace.cdo_wp_page(vma, addr, 1);
vma225arch/alpha/kernel/ptrace.c*pgtable = pte_mkdirty(mk_pte(page, vma->vm_page_prot));
vma231arch/alpha/kernel/ptrace.cstruct vm_area_struct * vma;
vma234arch/alpha/kernel/ptrace.cvma = find_vma(tsk,addr);
vma235arch/alpha/kernel/ptrace.cif (!vma)
vma237arch/alpha/kernel/ptrace.cif (vma->vm_start <= addr)
vma238arch/alpha/kernel/ptrace.creturn vma;
vma239arch/alpha/kernel/ptrace.cif (!(vma->vm_flags & VM_GROWSDOWN))
vma241arch/alpha/kernel/ptrace.cif (vma->vm_end - addr > tsk->rlim[RLIMIT_STACK].rlim_cur)
vma243arch/alpha/kernel/ptrace.cvma->vm_offset -= vma->vm_start - addr;
vma244arch/alpha/kernel/ptrace.cvma->vm_start = addr;
vma245arch/alpha/kernel/ptrace.creturn vma;
vma255arch/alpha/kernel/ptrace.cstruct vm_area_struct * vma = find_extend_vma(tsk, addr);
vma260arch/alpha/kernel/ptrace.cif (!vma) {
vma266arch/alpha/kernel/ptrace.cstruct vm_area_struct * vma_high = vma;
vma268arch/alpha/kernel/ptrace.cif (addr + sizeof(long) >= vma->vm_end) {
vma269arch/alpha/kernel/ptrace.cvma_high = vma->vm_next;
vma270arch/alpha/kernel/ptrace.cif (!vma_high || vma_high->vm_start != vma->vm_end)
vma273arch/alpha/kernel/ptrace.clow = get_long(vma, addr & ~(sizeof(long)-1));
vma307arch/alpha/kernel/ptrace.clong l =get_long(vma, addr);
vma324arch/alpha/kernel/ptrace.cstruct vm_area_struct * vma = find_extend_vma(tsk, addr);
vma326arch/alpha/kernel/ptrace.cif (!vma)
vma330arch/alpha/kernel/ptrace.cstruct vm_area_struct * vma_high = vma;
vma332arch/alpha/kernel/ptrace.cif (addr + sizeof(long) >= vma->vm_end) {
vma333arch/alpha/kernel/ptrace.cvma_high = vma->vm_next;
vma334arch/alpha/kernel/ptrace.cif (!vma_high || vma_high->vm_start != vma->vm_end)
vma337arch/alpha/kernel/ptrace.clow = get_long(vma, addr & ~(sizeof(long)-1));
vma387arch/alpha/kernel/ptrace.cput_long(vma, addr & ~(sizeof(long)-1),low);
vma390arch/alpha/kernel/ptrace.cput_long(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);
vma86arch/i386/kernel/ptrace.cstatic unsigned long get_long(struct vm_area_struct * vma, unsigned long addr)
vma94arch/i386/kernel/ptrace.cpgdir = pgd_offset(vma->vm_task, addr);
vma96arch/i386/kernel/ptrace.cdo_no_page(vma, addr, 0);
vma106arch/i386/kernel/ptrace.cdo_no_page(vma, addr, 0);
vma116arch/i386/kernel/ptrace.cdo_no_page(vma, addr, 0);
vma136arch/i386/kernel/ptrace.cstatic void put_long(struct vm_area_struct * vma, unsigned long addr,
vma145arch/i386/kernel/ptrace.cpgdir = pgd_offset(vma->vm_task, addr);
vma147arch/i386/kernel/ptrace.cdo_no_page(vma, addr, 1);
vma157arch/i386/kernel/ptrace.cdo_no_page(vma, addr, 1);
vma167arch/i386/kernel/ptrace.cdo_no_page(vma, addr, 1);
vma172arch/i386/kernel/ptrace.cdo_wp_page(vma, addr, 1);
vma182arch/i386/kernel/ptrace.c*pgtable = pte_mkdirty(mk_pte(page, vma->vm_page_prot));
vma188arch/i386/kernel/ptrace.cstruct vm_area_struct * vma;
vma191arch/i386/kernel/ptrace.cvma = find_vma(tsk,addr);
vma192arch/i386/kernel/ptrace.cif (!vma)
vma194arch/i386/kernel/ptrace.cif (vma->vm_start <= addr)
vma195arch/i386/kernel/ptrace.creturn vma;
vma196arch/i386/kernel/ptrace.cif (!(vma->vm_flags & VM_GROWSDOWN))
vma198arch/i386/kernel/ptrace.cif (vma->vm_end - addr > tsk->rlim[RLIMIT_STACK].rlim_cur)
vma200arch/i386/kernel/ptrace.cvma->vm_offset -= vma->vm_start - addr;
vma201arch/i386/kernel/ptrace.cvma->vm_start = addr;
vma202arch/i386/kernel/ptrace.creturn vma;
vma212arch/i386/kernel/ptrace.cstruct vm_area_struct * vma = find_extend_vma(tsk, addr);
vma214arch/i386/kernel/ptrace.cif (!vma)
vma218arch/i386/kernel/ptrace.cstruct vm_area_struct * vma_high = vma;
vma220arch/i386/kernel/ptrace.cif (addr + sizeof(long) >= vma->vm_end) {
vma221arch/i386/kernel/ptrace.cvma_high = vma->vm_next;
vma222arch/i386/kernel/ptrace.cif (!vma_high || vma_high->vm_start != vma->vm_end)
vma225arch/i386/kernel/ptrace.clow = get_long(vma, addr & ~(sizeof(long)-1));
vma243arch/i386/kernel/ptrace.c*result = get_long(vma, addr);
vma254arch/i386/kernel/ptrace.cstruct vm_area_struct * vma = find_extend_vma(tsk, addr);
vma256arch/i386/kernel/ptrace.cif (!vma)
vma260arch/i386/kernel/ptrace.cstruct vm_area_struct * vma_high = vma;
vma262arch/i386/kernel/ptrace.cif (addr + sizeof(long) >= vma->vm_end) {
vma263arch/i386/kernel/ptrace.cvma_high = vma->vm_next;
vma264arch/i386/kernel/ptrace.cif (!vma_high || vma_high->vm_start != vma->vm_end)
vma267arch/i386/kernel/ptrace.clow = get_long(vma, addr & ~(sizeof(long)-1));
vma292arch/i386/kernel/ptrace.cput_long(vma, addr & ~(sizeof(long)-1),low);
vma295arch/i386/kernel/ptrace.cput_long(vma, addr, data);
vma37arch/i386/mm/fault.cstruct vm_area_struct * vma;
vma43arch/i386/mm/fault.cvma = find_vma(current, address);
vma44arch/i386/mm/fault.cif (!vma)
vma46arch/i386/mm/fault.cif (vma->vm_start <= address)
vma48arch/i386/mm/fault.cif (!(vma->vm_flags & VM_GROWSDOWN))
vma50arch/i386/mm/fault.cif (vma->vm_end - address > current->rlim[RLIMIT_STACK].rlim_cur)
vma52arch/i386/mm/fault.cvma->vm_offset -= vma->vm_start - (address & PAGE_MASK);
vma53arch/i386/mm/fault.cvma->vm_start = (address & PAGE_MASK);
vma63arch/i386/mm/fault.cif (!(vma->vm_flags & VM_WRITE))
vma69arch/i386/mm/fault.cif (!(vma->vm_flags & (VM_READ | VM_EXEC)))
vma85arch/i386/mm/fault.cdo_wp_page(vma, address, error_code & 2);
vma88arch/i386/mm/fault.cdo_no_page(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_task, 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_task, 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.c*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);
vma88drivers/char/mem.cstatic int mmap_mem(struct inode * inode, struct file * file, struct vm_area_struct * vma)
vma90drivers/char/mem.cif (vma->vm_offset & ~PAGE_MASK)
vma99drivers/char/mem.cif (x86 > 3 && vma->vm_offset >= high_memory)
vma100drivers/char/mem.cpgprot_val(vma->vm_page_prot) |= _PAGE_PCD;
vma102drivers/char/mem.cif (remap_page_range(vma->vm_start, vma->vm_offset, vma->vm_end - vma->vm_start, vma->vm_page_prot))
vma104drivers/char/mem.cvma->vm_inode = inode;
vma172drivers/char/mem.cstatic int mmap_zero(struct inode * inode, struct file * file, struct vm_area_struct * vma)
vma174drivers/char/mem.cif (vma->vm_flags & VM_SHARED)
vma176drivers/char/mem.cif (zeromap_page_range(vma->vm_start, vma->vm_end - vma->vm_start, vma->vm_page_prot))
vma805fs/binfmt_elf.cstatic inline int maydump(struct vm_area_struct *vma)
vma808fs/binfmt_elf.cif (vma->vm_flags & (VM_WRITE|VM_GROWSUP|VM_GROWSDOWN))
vma810fs/binfmt_elf.cif (vma->vm_flags & (VM_READ|VM_EXEC|VM_EXECUTABLE|VM_SHARED))
vma906fs/binfmt_elf.cstruct vm_area_struct *vma;
vma927fs/binfmt_elf.cfor(vma = current->mm->mmap; vma != NULL; vma = vma->vm_next) {
vma928fs/binfmt_elf.cint sz = vma->vm_end-vma->vm_start;
vma930fs/binfmt_elf.cif (!maydump(vma))
vma1110fs/binfmt_elf.cfor(vma = current->mm->mmap, i = 0;
vma1111fs/binfmt_elf.ci < segs && vma != NULL; vma = vma->vm_next) {
vma1115fs/binfmt_elf.cif (!maydump(vma))
vma1119fs/binfmt_elf.csz = vma->vm_end - vma->vm_start;
vma1123fs/binfmt_elf.cphdr.p_vaddr = vma->vm_start;
vma1128fs/binfmt_elf.cphdr.p_flags = vma->vm_flags & VM_READ ? PF_R : 0;
vma1129fs/binfmt_elf.cif (vma->vm_flags & VM_WRITE) phdr.p_flags |= PF_W;
vma1130fs/binfmt_elf.cif (vma->vm_flags & VM_EXEC) phdr.p_flags |= PF_X;
vma1144fs/binfmt_elf.cfor(i = 0, vma = current->mm->mmap;
vma1145fs/binfmt_elf.ci < segs && vma != NULL;
vma1146fs/binfmt_elf.cvma = vma->vm_next) {
vma1147fs/binfmt_elf.cunsigned long addr = vma->vm_start;
vma1148fs/binfmt_elf.cunsigned long len = vma->vm_end - vma->vm_start;
vma1150fs/binfmt_elf.cif (!maydump(vma))
vma93fs/msdos/mmap.cint msdos_mmap(struct inode * inode, struct file * file, struct vm_area_struct * vma)
vma95fs/msdos/mmap.cif (vma->vm_flags & VM_SHARED)  /* only PAGE_COW or read-only supported now */
vma97fs/msdos/mmap.cif (vma->vm_offset & (inode->i_sb->s_blocksize - 1))
vma106fs/msdos/mmap.cvma->vm_inode = inode;
vma108fs/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))
vma98fs/nfs/mmap.cint nfs_mmap(struct inode * inode, struct file * file, struct vm_area_struct * vma)
vma100fs/nfs/mmap.cif (vma->vm_flags & VM_SHARED)  /* only PAGE_COW or read-only supported now */
vma109fs/nfs/mmap.cvma->vm_inode = inode;
vma111fs/nfs/mmap.cvma->vm_ops = &nfs_file_mmap;
vma555fs/proc/array.cstruct vm_area_struct * vma = (*p)->mm->mmap;
vma557fs/proc/array.cwhile (vma) {
vma558fs/proc/array.cpgd_t *pgd = pgd_offset(*p, vma->vm_start);
vma561fs/proc/array.cstatm_pgd_range(pgd, vma->vm_start, vma->vm_end, &pages, &shared, &dirty, &total);
vma566fs/proc/array.cif (vma->vm_flags & VM_EXECUTABLE)
vma568fs/proc/array.celse if (vma->vm_flags & VM_GROWSDOWN)
vma570fs/proc/array.celse if (vma->vm_end > 0x60000000)
vma574fs/proc/array.cvma = vma->vm_next;
vma137fs/proc/link.cstruct vm_area_struct * vma = p->mm->mmap;
vma138fs/proc/link.cwhile (vma) {
vma139fs/proc/link.cif (vma->vm_flags & VM_EXECUTABLE) {
vma140fs/proc/link.cnew_inode = vma->vm_inode;
vma143fs/proc/link.cvma = vma->vm_next;
vma174fs/proc/mem.cstruct vm_area_struct * vma)
vma202fs/proc/mem.cstmp = vma->vm_offset;
vma203fs/proc/mem.cwhile (stmp < vma->vm_offset + (vma->vm_end - vma->vm_start)) {
vma237fs/proc/mem.cstmp    = vma->vm_offset;
vma238fs/proc/mem.cdtmp    = vma->vm_start;
vma240fs/proc/mem.cwhile (dtmp < vma->vm_end) {
vma259fs/proc/mem.cif ((vma->vm_flags & VM_WRITE) && !pte_write(*src_table))
vma106fs/smbfs/mmap.csmb_mmap(struct inode * inode, struct file * file, struct vm_area_struct * vma)
vma111fs/smbfs/mmap.cif (vma->vm_flags & VM_SHARED)  
vma120fs/smbfs/mmap.cvma->vm_inode = inode;
vma122fs/smbfs/mmap.cvma->vm_ops = &smb_file_mmap;
vma515fs/super.cstruct vm_area_struct * vma;
vma521fs/super.cvma = find_vma(current, (unsigned long) data);
vma522fs/super.cif (!vma || (unsigned long) data < vma->vm_start)
vma524fs/super.ci = vma->vm_end - (unsigned long) data;
vma407include/asm-alpha/pgtable.hextern inline void update_mmu_cache(struct vm_area_struct * vma,
vma328include/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,
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 vm_area_struct * vma, unsigned long address, int write_access);
vma185include/linux/mm.hextern void do_no_page(struct vm_area_struct * vma, unsigned long address, int write_access);
vma116include/linux/nfs_fs.hextern int nfs_mmap(struct inode * inode, struct file * file, struct vm_area_struct * vma);
vma171include/linux/smb_fs.hint smb_mmap(struct inode * inode, struct file * file, struct vm_area_struct * vma);
vma65mm/filemap.cstatic void filemap_sync_page(struct vm_area_struct * vma,
vma83mm/filemap.cinode = vma->vm_inode;
vma98mm/filemap.cvoid filemap_swapout(struct vm_area_struct * vma,
vma107mm/filemap.cfilemap_sync_page(vma, offset, page);
vma118mm/filemap.cstatic pte_t filemap_swapin(struct vm_area_struct * vma,
vma126mm/filemap.creturn pte_mkdirty(mk_pte(page,vma->vm_page_prot));
vma129mm/filemap.cstatic inline void filemap_sync_pte(pte_t * pte, struct vm_area_struct *vma,
vma144mm/filemap.cfilemap_sync_page(vma, address - vma->vm_start, pte_page(page));
vma150mm/filemap.cstruct vm_area_struct *vma, unsigned long offset, unsigned int flags)
vma169mm/filemap.cfilemap_sync_pte(pte, vma, address + offset, flags);
vma177mm/filemap.cstruct vm_area_struct *vma, unsigned int flags)
vma196mm/filemap.cfilemap_sync_pte_range(pmd, address, end - address, vma, offset, flags);
vma202mm/filemap.cstatic void filemap_sync(struct vm_area_struct * vma, unsigned long address,
vma210mm/filemap.cfilemap_sync_pmd_range(dir, address, end - address, vma, flags);
vma221mm/filemap.cstatic void filemap_unmap(struct vm_area_struct *vma, unsigned long start, size_t len)
vma223mm/filemap.cfilemap_sync(vma, start, len, MS_ASYNC);
vma229mm/filemap.cstatic void filemap_close(struct vm_area_struct * vma)
vma231mm/filemap.cfilemap_sync(vma, vma->vm_start, vma->vm_end - vma->vm_start, MS_ASYNC);
vma272mm/filemap.cint generic_mmap(struct inode * inode, struct file * file, struct vm_area_struct * vma)
vma276mm/filemap.cif (vma->vm_offset & (inode->i_sb->s_blocksize - 1))
vma283mm/filemap.cif (vma->vm_flags & VM_SHARED) {
vma284mm/filemap.cif (vma->vm_flags & (VM_WRITE | VM_MAYWRITE))
vma291mm/filemap.cvma->vm_inode = inode;
vma293mm/filemap.cvma->vm_ops = ops;
vma626mm/memory.cvoid do_wp_page(struct vm_area_struct * vma, unsigned long address,
vma635mm/memory.cpage_dir = pgd_offset(vma->vm_task,address);
vma654mm/memory.cvma->vm_task->mm->min_flt++;
vma661mm/memory.c++vma->vm_task->mm->rss;
vma663mm/memory.c*page_table = pte_mkwrite(pte_mkdirty(mk_pte(new_page, vma->vm_page_prot)));
vma670mm/memory.coom(vma->vm_task);
vma681mm/memory.csend_sig(SIGKILL, vma->vm_task, 1);
vma685mm/memory.csend_sig(SIGKILL, vma->vm_task, 1);
vma689mm/memory.csend_sig(SIGKILL, vma->vm_task, 1);
vma701mm/memory.cstruct vm_area_struct * vma;
vma711mm/memory.cvma = find_vma(current, start);
vma712mm/memory.cif (!vma)
vma714mm/memory.cif (vma->vm_start <= start)
vma716mm/memory.cif (!(vma->vm_flags & VM_GROWSDOWN))
vma718mm/memory.cif (vma->vm_end - start > current->rlim[RLIMIT_STACK].rlim_cur)
vma726mm/memory.cif (!(vma->vm_flags & VM_READ))
vma728mm/memory.cif (vma->vm_end - start >= size)
vma730mm/memory.cnext = vma->vm_next;
vma731mm/memory.cif (!next || vma->vm_end != next->vm_start)
vma733mm/memory.cvma = next;
vma737mm/memory.cif (!(vma->vm_flags & VM_WRITE))
vma742mm/memory.cif (vma->vm_end - start >= size)
vma744mm/memory.cif (!vma->vm_next || vma->vm_end != vma->vm_next->vm_start)
vma746mm/memory.cvma = vma->vm_next;
vma747mm/memory.cif (!(vma->vm_flags & VM_WRITE))
vma759mm/memory.cdo_wp_page(vma, start, 1);
vma764mm/memory.cif (start < vma->vm_end)
vma766mm/memory.cvma = vma->vm_next;
vma767mm/memory.cif (!vma || vma->vm_start != start)
vma769mm/memory.cif (!(vma->vm_flags & VM_WRITE))
vma778mm/memory.cstatic inline void get_empty_page(struct vm_area_struct * vma, pte_t * page_table)
vma783mm/memory.coom(vma->vm_task);
vma787mm/memory.cput_page(page_table, pte_mkwrite(mk_pte(tmp, vma->vm_page_prot)));
vma977mm/memory.cstatic inline void do_swap_page(struct vm_area_struct * vma, unsigned long address,
vma982mm/memory.cif (!vma->vm_ops || !vma->vm_ops->swapin) {
vma983mm/memory.cswap_in(vma, page_table, pte_val(entry), write_access);
vma986mm/memory.cpage = vma->vm_ops->swapin(vma, address - vma->vm_start + vma->vm_offset, pte_val(entry));
vma991mm/memory.cif (mem_map[MAP_NR(pte_page(page))] > 1 && !(vma->vm_flags & VM_SHARED))
vma993mm/memory.c++vma->vm_task->mm->rss;
vma994mm/memory.c++vma->vm_task->mm->maj_flt;
vma1005mm/memory.cvoid do_no_page(struct vm_area_struct * vma, unsigned long address,
vma1012mm/memory.cpage_table = get_empty_pgtable(vma->vm_task,address);
vma1019mm/memory.cdo_swap_page(vma, address, page_table, entry, write_access);
vma1023mm/memory.cif (!vma->vm_ops || !vma->vm_ops->nopage) {
vma1024mm/memory.c++vma->vm_task->mm->rss;
vma1025mm/memory.c++vma->vm_task->mm->min_flt;
vma1026mm/memory.cget_empty_page(vma, page_table);
vma1030mm/memory.cif (share_page(vma, address, write_access, page)) {
vma1031mm/memory.c++vma->vm_task->mm->min_flt;
vma1032mm/memory.c++vma->vm_task->mm->rss;
vma1040mm/memory.c++vma->vm_task->mm->maj_flt;
vma1041mm/memory.c++vma->vm_task->mm->rss;
vma1047mm/memory.cpage = vma->vm_ops->nopage(vma, address, page,
vma1048mm/memory.cwrite_access && !(vma->vm_flags & VM_SHARED));
vma1049mm/memory.cif (share_page(vma, address, write_access, 0)) {
vma1063mm/memory.centry = mk_pte(page, vma->vm_page_prot);
vma1066mm/memory.c} else if (mem_map[MAP_NR(page)] > 1 && !(vma->vm_flags & VM_SHARED))
vma1084mm/memory.cstatic inline void handle_pte_fault(struct vm_area_struct * vma, unsigned long address,
vma1088mm/memory.cdo_no_page(vma, address, write_access);
vma1098mm/memory.cdo_wp_page(vma, address, write_access);
vma1101mm/memory.cvoid handle_mm_fault(struct vm_area_struct * vma, unsigned long address,
vma1108mm/memory.cpgd = pgd_offset(vma->vm_task, address);
vma1115mm/memory.chandle_pte_fault(vma, address, write_access, pte);
vma1116mm/memory.cupdate_mmu_cache(vma, address, *pte);
vma1119mm/memory.coom(vma->vm_task);
vma48mm/mmap.cstruct vm_area_struct * vma;
vma109mm/mmap.cvma = (struct vm_area_struct *)kmalloc(sizeof(struct vm_area_struct),
vma111mm/mmap.cif (!vma)
vma114mm/mmap.cvma->vm_task = current;
vma115mm/mmap.cvma->vm_start = addr;
vma116mm/mmap.cvma->vm_end = addr + len;
vma117mm/mmap.cvma->vm_flags = prot & (VM_READ | VM_WRITE | VM_EXEC);
vma118mm/mmap.cvma->vm_flags |= flags & (VM_GROWSDOWN | VM_DENYWRITE | VM_EXECUTABLE);
vma122mm/mmap.cvma->vm_flags |= VM_MAYREAD | VM_MAYWRITE | VM_MAYEXEC;
vma124mm/mmap.cvma->vm_flags |= VM_SHARED | VM_MAYSHARE;
vma136mm/mmap.cvma->vm_flags &= ~(VM_MAYWRITE | VM_SHARED);
vma139mm/mmap.cvma->vm_flags |= VM_MAYREAD | VM_MAYWRITE | VM_MAYEXEC;
vma140mm/mmap.cvma->vm_page_prot = protection_map[vma->vm_flags & 0x0f];
vma141mm/mmap.cvma->vm_ops = NULL;
vma142mm/mmap.cvma->vm_offset = off;
vma143mm/mmap.cvma->vm_inode = NULL;
vma144mm/mmap.cvma->vm_pte = 0;
vma149mm/mmap.cerror = file->f_op->mmap(file->f_inode, file, vma);
vma151mm/mmap.cerror = anon_map(NULL, NULL, vma);
vma154mm/mmap.ckfree(vma);
vma157mm/mmap.cinsert_vm_struct(current, vma);
vma158mm/mmap.cmerge_segments(current, vma->vm_start, vma->vm_end);
vma230mm/mmap.cstruct vm_area_struct * vma;
vma232mm/mmap.cfor (vma = task->mm->mmap ; ; vma = vma->vm_next) {
vma233mm/mmap.cif (!vma)
vma235mm/mmap.cif (vma->vm_end > addr)
vma236mm/mmap.creturn vma;
vma260mm/mmap.cstruct vm_area_struct * vma;
vma263mm/mmap.cfor (vma = task->mm->mmap; vma; vma = vma->vm_next) {
vma264mm/mmap.cif (end_addr <= vma->vm_start)
vma266mm/mmap.cif (start_addr < vma->vm_end)
vma267mm/mmap.creturn vma;
vma271mm/mmap.cvma = find_vma(task,start_addr);
vma272mm/mmap.cif (!vma || end_addr <= vma->vm_start)
vma274mm/mmap.creturn vma;
vma512mm/mmap.cstatic void printk_list (struct vm_area_struct * vma)
vma515mm/mmap.cwhile (vma) {
vma516mm/mmap.cprintk("%08lX-%08lX", vma->vm_start, vma->vm_end);
vma517mm/mmap.cvma = vma->vm_next;
vma518mm/mmap.cif (!vma)
vma777mm/mmap.cstruct vm_area_struct * vma;
vma780mm/mmap.cfor (vma = task->mm->mmap; vma; vma = vma->vm_next)
vma781mm/mmap.cavl_insert(vma, &task->mm->mmap_avl);
vma955mm/mmap.cstatic int anon_map(struct inode *ino, struct file * file, struct vm_area_struct * vma)
vma957mm/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) {
vma306mm/swap.cvoid swap_in(struct vm_area_struct * vma, pte_t * page_table,
vma326mm/swap.cvma->vm_task->mm->rss++;
vma327mm/swap.cvma->vm_task->mm->maj_flt++;
vma329mm/swap.c*page_table = mk_pte(page, vma->vm_page_prot);
vma332mm/swap.c*page_table = pte_mkwrite(pte_mkdirty(mk_pte(page, vma->vm_page_prot)));
vma348mm/swap.cstatic inline int try_to_swap_out(struct vm_area_struct* vma, unsigned long address, pte_t * page_table, unsigned long limit)
vma371mm/swap.cif (vma->vm_ops && vma->vm_ops->swapout) {
vma372mm/swap.cvma->vm_task->mm->rss--;
vma373mm/swap.cvma->vm_ops->swapout(vma, address-vma->vm_start, page_table);
vma377mm/swap.cvma->vm_task->mm->rss--;
vma391mm/swap.cvma->vm_task->mm->rss--;
vma397mm/swap.cvma->vm_task->mm->rss--;
vma432mm/swap.cstatic inline int swap_out_pmd(struct vm_area_struct * vma, pmd_t *dir,
vma454mm/swap.cvma->vm_task->mm->swap_address = address + PAGE_SIZE;
vma455mm/swap.cresult = try_to_swap_out(vma, address, pte, limit);
vma464mm/swap.cstatic inline int swap_out_pgd(struct vm_area_struct * vma, pgd_t *dir,
vma485mm/swap.cint result = swap_out_pmd(vma, pmd, address, end, limit);
vma494mm/swap.cstatic int swap_out_vma(struct vm_area_struct * vma, pgd_t *pgdir,
vma501mm/swap.cif (vma->vm_flags & VM_SHM)
vma504mm/swap.cend = vma->vm_end;
vma506mm/swap.cint result = swap_out_pgd(vma, pgdir, start, end, limit);
vma518mm/swap.cstruct vm_area_struct* vma;
vma529mm/swap.cvma = find_vma(p, address);
vma530mm/swap.cif (!vma)
vma532mm/swap.cif (address < vma->vm_start)
vma533mm/swap.caddress = vma->vm_start;
vma536mm/swap.cint result = swap_out_vma(vma, pgd_offset(p, address), address, limit);
vma539mm/swap.cvma = vma->vm_next;
vma540mm/swap.cif (!vma)
vma542mm/swap.caddress = vma->vm_start;
vma838mm/swap.cstatic inline int unuse_pte(struct vm_area_struct * vma, unsigned long address,
vma864mm/swap.c*dir = pte_mkwrite(pte_mkdirty(mk_pte(page, vma->vm_page_prot)));
vma865mm/swap.c++vma->vm_task->mm->rss;
vma870mm/swap.cstatic inline int unuse_pmd(struct vm_area_struct * vma, pmd_t *dir,
vma891mm/swap.cif (unuse_pte(vma, offset+address-vma->vm_start, pte, type, page))
vma899mm/swap.cstatic inline int unuse_pgd(struct vm_area_struct * vma, pgd_t *dir,
vma920mm/swap.cif (unuse_pmd(vma, pmd, address, end - address, offset, type, page))
vma928mm/swap.cstatic int unuse_vma(struct vm_area_struct * vma, pgd_t *pgdir,
vma933mm/swap.cif (unuse_pgd(vma, pgdir, start, end - start, type, page))
vma943mm/swap.cstruct vm_area_struct* vma;
vma948mm/swap.cvma = p->mm->mmap;
vma949mm/swap.cwhile (vma) {
vma950mm/swap.cpgd_t * pgd = pgd_offset(p, vma->vm_start);
vma951mm/swap.cif (unuse_vma(vma, pgd, vma->vm_start, vma->vm_end, type, page))
vma953mm/swap.cvma = vma->vm_next;