taglinefilesource code
vma45arch/alpha/mm/fault.cstruct vm_area_struct * vma;
vma47arch/alpha/mm/fault.cvma = find_vma(current, address);
vma48arch/alpha/mm/fault.cif (!vma)
vma50arch/alpha/mm/fault.cif (vma->vm_start <= address)
vma52arch/alpha/mm/fault.cif (!(vma->vm_flags & VM_GROWSDOWN))
vma54arch/alpha/mm/fault.cif (vma->vm_end - address > current->rlim[RLIMIT_STACK].rlim_cur)
vma56arch/alpha/mm/fault.cvma->vm_offset -= vma->vm_start - (address & PAGE_MASK);
vma57arch/alpha/mm/fault.cvma->vm_start = (address & PAGE_MASK);
vma64arch/alpha/mm/fault.cif (!(vma->vm_flags & VM_EXEC))
vma67arch/alpha/mm/fault.cif (!(vma->vm_flags & VM_READ))
vma70arch/alpha/mm/fault.cif (!(vma->vm_flags & VM_WRITE))
vma74arch/alpha/mm/fault.chandle_mm_fault(vma, address, cause > 0);
vma87arch/i386/kernel/ptrace.cstatic unsigned long get_long(struct vm_area_struct * vma, unsigned long addr)
vma95arch/i386/kernel/ptrace.cpgdir = pgd_offset(vma->vm_task, addr);
vma97arch/i386/kernel/ptrace.cdo_no_page(vma, addr, 0);
vma107arch/i386/kernel/ptrace.cdo_no_page(vma, addr, 0);
vma117arch/i386/kernel/ptrace.cdo_no_page(vma, addr, 0);
vma137arch/i386/kernel/ptrace.cstatic void put_long(struct vm_area_struct * vma, unsigned long addr,
vma146arch/i386/kernel/ptrace.cpgdir = pgd_offset(vma->vm_task, addr);
vma148arch/i386/kernel/ptrace.cdo_no_page(vma, addr, 1);
vma158arch/i386/kernel/ptrace.cdo_no_page(vma, addr, 1);
vma168arch/i386/kernel/ptrace.cdo_no_page(vma, addr, 1);
vma173arch/i386/kernel/ptrace.cdo_wp_page(vma, addr, 1);
vma183arch/i386/kernel/ptrace.c*pgtable = pte_mkdirty(mk_pte(page, vma->vm_page_prot));
vma189arch/i386/kernel/ptrace.cstruct vm_area_struct * vma;
vma192arch/i386/kernel/ptrace.cvma = find_vma(tsk,addr);
vma193arch/i386/kernel/ptrace.cif (!vma)
vma195arch/i386/kernel/ptrace.cif (vma->vm_start <= addr)
vma196arch/i386/kernel/ptrace.creturn vma;
vma197arch/i386/kernel/ptrace.cif (!(vma->vm_flags & VM_GROWSDOWN))
vma199arch/i386/kernel/ptrace.cif (vma->vm_end - addr > tsk->rlim[RLIMIT_STACK].rlim_cur)
vma201arch/i386/kernel/ptrace.cvma->vm_offset -= vma->vm_start - addr;
vma202arch/i386/kernel/ptrace.cvma->vm_start = addr;
vma203arch/i386/kernel/ptrace.creturn vma;
vma213arch/i386/kernel/ptrace.cstruct vm_area_struct * vma = find_extend_vma(tsk, addr);
vma215arch/i386/kernel/ptrace.cif (!vma)
vma219arch/i386/kernel/ptrace.cstruct vm_area_struct * vma_high = vma;
vma221arch/i386/kernel/ptrace.cif (addr + sizeof(long) >= vma->vm_end) {
vma222arch/i386/kernel/ptrace.cvma_high = vma->vm_next;
vma223arch/i386/kernel/ptrace.cif (!vma_high || vma_high->vm_start != vma->vm_end)
vma226arch/i386/kernel/ptrace.clow = get_long(vma, addr & ~(sizeof(long)-1));
vma244arch/i386/kernel/ptrace.c*result = get_long(vma, addr);
vma255arch/i386/kernel/ptrace.cstruct vm_area_struct * vma = find_extend_vma(tsk, addr);
vma257arch/i386/kernel/ptrace.cif (!vma)
vma261arch/i386/kernel/ptrace.cstruct vm_area_struct * vma_high = vma;
vma263arch/i386/kernel/ptrace.cif (addr + sizeof(long) >= vma->vm_end) {
vma264arch/i386/kernel/ptrace.cvma_high = vma->vm_next;
vma265arch/i386/kernel/ptrace.cif (!vma_high || vma_high->vm_start != vma->vm_end)
vma268arch/i386/kernel/ptrace.clow = get_long(vma, addr & ~(sizeof(long)-1));
vma293arch/i386/kernel/ptrace.cput_long(vma, addr & ~(sizeof(long)-1),low);
vma296arch/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);
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))
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))
vma97fs/nfs/mmap.cint nfs_mmap(struct inode * inode, struct file * file, struct vm_area_struct * vma)
vma99fs/nfs/mmap.cif (vma->vm_flags & VM_SHARED)  /* only PAGE_COW or read-only supported now */
vma108fs/nfs/mmap.cvma->vm_inode = inode;
vma110fs/nfs/mmap.cvma->vm_ops = &nfs_file_mmap;
vma607fs/proc/array.cstruct vm_area_struct * vma = (*p)->mm->mmap;
vma609fs/proc/array.cwhile (vma) {
vma610fs/proc/array.cpgd_t *pgd = pgd_offset(*p, vma->vm_start);
vma613fs/proc/array.cstatm_pgd_range(pgd, vma->vm_start, vma->vm_end, &pages, &shared, &dirty, &total);
vma618fs/proc/array.cif (vma->vm_flags & VM_EXECUTABLE)
vma620fs/proc/array.celse if (vma->vm_flags & VM_GROWSDOWN)
vma622fs/proc/array.celse if (vma->vm_end > 0x60000000)
vma626fs/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;
vma175fs/proc/mem.cstruct vm_area_struct * vma)
vma203fs/proc/mem.cstmp = vma->vm_offset;
vma204fs/proc/mem.cwhile (stmp < vma->vm_offset + (vma->vm_end - vma->vm_start)) {
vma238fs/proc/mem.cstmp    = vma->vm_offset;
vma239fs/proc/mem.cdtmp    = vma->vm_start;
vma241fs/proc/mem.cwhile (dtmp < vma->vm_end) {
vma260fs/proc/mem.cif ((vma->vm_flags & VM_WRITE) && !pte_write(*src_table))
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;
vma384include/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,
vma182include/linux/mm.hextern void handle_mm_fault(struct vm_area_struct *vma, unsigned long address, int write_access);
vma183include/linux/mm.hextern void do_wp_page(struct vm_area_struct * vma, unsigned long address, int write_access);
vma184include/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);
vma65mm/filemap.cstatic void filemap_sync_page(struct vm_area_struct * vma,
vma87mm/filemap.cstatic inline void filemap_sync_pte(pte_t * pte, struct vm_area_struct *vma,
vma102mm/filemap.cfilemap_sync_page(vma, address - vma->vm_start, pte_page(page));
vma108mm/filemap.cstruct vm_area_struct *vma, unsigned long offset, unsigned int flags)
vma127mm/filemap.cfilemap_sync_pte(pte, vma, address + offset, flags);
vma135mm/filemap.cstruct vm_area_struct *vma, unsigned int flags)
vma154mm/filemap.cfilemap_sync_pte_range(pmd, address, end - address, vma, offset, flags);
vma160mm/filemap.cstatic void filemap_sync(struct vm_area_struct * vma, unsigned long address,
vma168mm/filemap.cfilemap_sync_pmd_range(dir, address, end - address, vma, flags);
vma179mm/filemap.cstatic void filemap_unmap(struct vm_area_struct *vma, unsigned long start, size_t len)
vma181mm/filemap.cfilemap_sync(vma, start, len, MS_ASYNC);
vma187mm/filemap.cstatic void filemap_close(struct vm_area_struct * vma)
vma189mm/filemap.cfilemap_sync(vma, vma->vm_start, vma->vm_end - vma->vm_start, MS_ASYNC);
vma199mm/filemap.cvoid filemap_swapout(struct vm_area_struct * vma,
vma245mm/filemap.cint generic_mmap(struct inode * inode, struct file * file, struct vm_area_struct * vma)
vma249mm/filemap.cif (vma->vm_offset & (inode->i_sb->s_blocksize - 1))
vma256mm/filemap.cif (vma->vm_flags & VM_SHARED) {
vma257mm/filemap.cif (vma->vm_flags & (VM_WRITE | VM_MAYWRITE)) {
vma271mm/filemap.cvma->vm_inode = inode;
vma273mm/filemap.cvma->vm_ops = ops;
vma631mm/memory.cvoid do_wp_page(struct vm_area_struct * vma, unsigned long address,
vma640mm/memory.cpage_dir = pgd_offset(vma->vm_task,address);
vma659mm/memory.cvma->vm_task->mm->min_flt++;
vma666mm/memory.c++vma->vm_task->mm->rss;
vma668mm/memory.c*page_table = pte_mkwrite(pte_mkdirty(mk_pte(new_page, vma->vm_page_prot)));
vma675mm/memory.coom(vma->vm_task);
vma686mm/memory.csend_sig(SIGKILL, vma->vm_task, 1);
vma690mm/memory.csend_sig(SIGKILL, vma->vm_task, 1);
vma694mm/memory.csend_sig(SIGKILL, vma->vm_task, 1);
vma706mm/memory.cstruct vm_area_struct * vma;
vma716mm/memory.cvma = find_vma(current, start);
vma717mm/memory.cif (!vma)
vma719mm/memory.cif (vma->vm_start <= start)
vma721mm/memory.cif (!(vma->vm_flags & VM_GROWSDOWN))
vma723mm/memory.cif (vma->vm_end - start > current->rlim[RLIMIT_STACK].rlim_cur)
vma731mm/memory.cif (!(vma->vm_flags & VM_READ))
vma733mm/memory.cif (vma->vm_end - start >= size)
vma735mm/memory.cnext = vma->vm_next;
vma736mm/memory.cif (!next || vma->vm_end != next->vm_start)
vma738mm/memory.cvma = next;
vma742mm/memory.cif (!(vma->vm_flags & VM_WRITE))
vma747mm/memory.cif (vma->vm_end - start >= size)
vma749mm/memory.cif (!vma->vm_next || vma->vm_end != vma->vm_next->vm_start)
vma751mm/memory.cvma = vma->vm_next;
vma752mm/memory.cif (!(vma->vm_flags & VM_WRITE))
vma764mm/memory.cdo_wp_page(vma, start, 1);
vma769mm/memory.cif (start < vma->vm_end)
vma771mm/memory.cvma = vma->vm_next;
vma772mm/memory.cif (!vma || vma->vm_start != start)
vma774mm/memory.cif (!(vma->vm_flags & VM_WRITE))
vma783mm/memory.cstatic inline void get_empty_page(struct vm_area_struct * vma, pte_t * page_table)
vma788mm/memory.coom(vma->vm_task);
vma792mm/memory.cput_page(page_table, pte_mkwrite(mk_pte(tmp, vma->vm_page_prot)));
vma990mm/memory.cstatic inline void do_swap_page(struct vm_area_struct * vma, unsigned long address,
vma995mm/memory.cif (!vma->vm_ops || !vma->vm_ops->swapin) {
vma996mm/memory.cswap_in(vma, page_table, pte_val(entry), write_access);
vma999mm/memory.cpage = vma->vm_ops->swapin(vma, address - vma->vm_start + vma->vm_offset, pte_val(entry));
vma1004mm/memory.cif (mem_map[MAP_NR(pte_page(page))] > 1 && !(vma->vm_flags & VM_SHARED))
vma1006mm/memory.c++vma->vm_task->mm->rss;
vma1007mm/memory.c++vma->vm_task->mm->maj_flt;
vma1018mm/memory.cvoid do_no_page(struct vm_area_struct * vma, unsigned long address,
vma1025mm/memory.cpage_table = get_empty_pgtable(vma->vm_task,address);
vma1032mm/memory.cdo_swap_page(vma, address, page_table, entry, write_access);
vma1036mm/memory.cif (!vma->vm_ops || !vma->vm_ops->nopage) {
vma1037mm/memory.c++vma->vm_task->mm->rss;
vma1038mm/memory.c++vma->vm_task->mm->min_flt;
vma1039mm/memory.cget_empty_page(vma, page_table);
vma1043mm/memory.cif (share_page(vma, address, write_access, page)) {
vma1044mm/memory.c++vma->vm_task->mm->min_flt;
vma1045mm/memory.c++vma->vm_task->mm->rss;
vma1053mm/memory.c++vma->vm_task->mm->maj_flt;
vma1054mm/memory.c++vma->vm_task->mm->rss;
vma1060mm/memory.cpage = vma->vm_ops->nopage(vma, address, page,
vma1061mm/memory.cwrite_access && !(vma->vm_flags & VM_SHARED));
vma1062mm/memory.cif (share_page(vma, address, write_access, 0)) {
vma1076mm/memory.centry = mk_pte(page, vma->vm_page_prot);
vma1079mm/memory.c} else if (mem_map[MAP_NR(page)] > 1 && !(vma->vm_flags & VM_SHARED))
vma1097mm/memory.cstatic inline void handle_pte_fault(struct vm_area_struct * vma, unsigned long address,
vma1101mm/memory.cdo_no_page(vma, address, write_access);
vma1111mm/memory.cdo_wp_page(vma, address, write_access);
vma1114mm/memory.cvoid handle_mm_fault(struct vm_area_struct * vma, unsigned long address,
vma1121mm/memory.cpgd = pgd_offset(vma->vm_task, address);
vma1128mm/memory.chandle_pte_fault(vma, address, write_access, pte);
vma1129mm/memory.cupdate_mmu_cache(vma, address, *pte);
vma1132mm/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);
vma245mm/mmap.cstruct vm_area_struct * vma;
vma247mm/mmap.cfor (vma = task->mm->mmap ; ; vma = vma->vm_next) {
vma248mm/mmap.cif (!vma)
vma250mm/mmap.cif (vma->vm_end > addr)
vma251mm/mmap.creturn vma;
vma275mm/mmap.cstruct vm_area_struct * vma;
vma278mm/mmap.cfor (vma = task->mm->mmap; vma; vma = vma->vm_next) {
vma279mm/mmap.cif (end_addr <= vma->vm_start)
vma281mm/mmap.cif (start_addr < vma->vm_end)
vma282mm/mmap.creturn vma;
vma286mm/mmap.cvma = find_vma(task,start_addr);
vma287mm/mmap.cif (!vma || end_addr <= vma->vm_start)
vma289mm/mmap.creturn vma;
vma527mm/mmap.cstatic void printk_list (struct vm_area_struct * vma)
vma530mm/mmap.cwhile (vma) {
vma531mm/mmap.cprintk("%08lX-%08lX", vma->vm_start, vma->vm_end);
vma532mm/mmap.cvma = vma->vm_next;
vma533mm/mmap.cif (!vma)
vma792mm/mmap.cstruct vm_area_struct * vma;
vma795mm/mmap.cfor (vma = task->mm->mmap; vma; vma = vma->vm_next)
vma796mm/mmap.cavl_insert(vma, &task->mm->mmap_avl);
vma970mm/mmap.cstatic int anon_map(struct inode *ino, struct file * file, struct vm_area_struct * vma)
vma972mm/mmap.cif (zeromap_page_range(vma->vm_start, vma->vm_end - vma->vm_start, vma->vm_page_prot))
vma87mm/mprotect.cstatic inline int mprotect_fixup_all(struct vm_area_struct * vma,
vma90mm/mprotect.cvma->vm_flags = newflags;
vma91mm/mprotect.cvma->vm_page_prot = prot;
vma95mm/mprotect.cstatic inline int mprotect_fixup_start(struct vm_area_struct * vma,
vma104mm/mprotect.c*n = *vma;
vma105mm/mprotect.cvma->vm_start = end;
vma107mm/mprotect.cvma->vm_offset += vma->vm_start - n->vm_start;
vma118mm/mprotect.cstatic inline int mprotect_fixup_end(struct vm_area_struct * vma,
vma127mm/mprotect.c*n = *vma;
vma128mm/mprotect.cvma->vm_end = start;
vma130mm/mprotect.cn->vm_offset += n->vm_start - vma->vm_start;
vma141mm/mprotect.cstatic inline int mprotect_fixup_middle(struct vm_area_struct * vma,
vma155mm/mprotect.c*left = *vma;
vma156mm/mprotect.c*right = *vma;
vma158mm/mprotect.cvma->vm_start = start;
vma159mm/mprotect.cvma->vm_end = end;
vma161mm/mprotect.cvma->vm_offset += vma->vm_start - left->vm_start;
vma163mm/mprotect.cvma->vm_flags = newflags;
vma164mm/mprotect.cvma->vm_page_prot = prot;
vma165mm/mprotect.cif (vma->vm_inode)
vma166mm/mprotect.cvma->vm_inode->i_count += 2;
vma167mm/mprotect.cif (vma->vm_ops && vma->vm_ops->open) {
vma168mm/mprotect.cvma->vm_ops->open(left);
vma169mm/mprotect.cvma->vm_ops->open(right);
vma176mm/mprotect.cstatic int mprotect_fixup(struct vm_area_struct * vma, 
vma182mm/mprotect.cif (newflags == vma->vm_flags)
vma185mm/mprotect.cif (start == vma->vm_start)
vma186mm/mprotect.cif (end == vma->vm_end)
vma187mm/mprotect.cerror = mprotect_fixup_all(vma, newflags, newprot);
vma189mm/mprotect.cerror = mprotect_fixup_start(vma, end, newflags, newprot);
vma190mm/mprotect.celse if (end == vma->vm_end)
vma191mm/mprotect.cerror = mprotect_fixup_end(vma, start, newflags, newprot);
vma193mm/mprotect.cerror = mprotect_fixup_middle(vma, start, end, newflags, newprot);
vma205mm/mprotect.cstruct vm_area_struct * vma, * next;
vma218mm/mprotect.cvma = find_vma(current, start);
vma219mm/mprotect.cif (!vma || vma->vm_start > start)
vma227mm/mprotect.cnewflags = prot | (vma->vm_flags & ~(PROT_READ | PROT_WRITE | PROT_EXEC));
vma233mm/mprotect.cif (vma->vm_end >= end) {
vma234mm/mprotect.cerror = mprotect_fixup(vma, nstart, end, newflags);
vma238mm/mprotect.ctmp = vma->vm_end;
vma239mm/mprotect.cnext = vma->vm_next;
vma240mm/mprotect.cerror = mprotect_fixup(vma, nstart, tmp, newflags);
vma244mm/mprotect.cvma = next;
vma245mm/mprotect.cif (!vma || vma->vm_start != nstart) {
vma280mm/swap.cvoid swap_in(struct vm_area_struct * vma, pte_t * page_table,
vma300mm/swap.cvma->vm_task->mm->rss++;
vma301mm/swap.cvma->vm_task->mm->maj_flt++;
vma303mm/swap.c*page_table = mk_pte(page, vma->vm_page_prot);
vma306mm/swap.c*page_table = pte_mkwrite(pte_mkdirty(mk_pte(page, vma->vm_page_prot)));
vma322mm/swap.cstatic inline int try_to_swap_out(struct vm_area_struct* vma, unsigned long address, pte_t * page_table)
vma343mm/swap.cif (vma->vm_ops && vma->vm_ops->swapout) {
vma344mm/swap.cvma->vm_task->mm->rss--;
vma345mm/swap.cvma->vm_ops->swapout(vma, address-vma->vm_start, page_table);
vma349mm/swap.cvma->vm_task->mm->rss--;
vma363mm/swap.cvma->vm_task->mm->rss--;
vma369mm/swap.cvma->vm_task->mm->rss--;
vma404mm/swap.cstatic inline int swap_out_pmd(struct vm_area_struct * vma, pmd_t *dir,
vma426mm/swap.cvma->vm_task->mm->swap_address = address + PAGE_SIZE;
vma427mm/swap.cresult = try_to_swap_out(vma, address, pte);
vma436mm/swap.cstatic inline int swap_out_pgd(struct vm_area_struct * vma, pgd_t *dir,
vma457mm/swap.cint result = swap_out_pmd(vma, pmd, address, end);
vma466mm/swap.cstatic int swap_out_vma(struct vm_area_struct * vma, pgd_t *pgdir,
vma473mm/swap.cif (vma->vm_flags & VM_SHM)
vma476mm/swap.cend = vma->vm_end;
vma478mm/swap.cint result = swap_out_pgd(vma, pgdir, start, end);
vma490mm/swap.cstruct vm_area_struct* vma;
vma501mm/swap.cvma = find_vma(p, address);
vma502mm/swap.cif (!vma)
vma504mm/swap.cif (address < vma->vm_start)
vma505mm/swap.caddress = vma->vm_start;
vma508mm/swap.cint result = swap_out_vma(vma, pgd_offset(p, address), address);
vma511mm/swap.cvma = vma->vm_next;
vma512mm/swap.cif (!vma)
vma514mm/swap.caddress = vma->vm_start;
vma833mm/swap.cstatic inline int unuse_pte(struct vm_area_struct * vma, unsigned long address,
vma859mm/swap.c*dir = pte_mkwrite(pte_mkdirty(mk_pte(page, vma->vm_page_prot)));
vma860mm/swap.c++vma->vm_task->mm->rss;
vma865mm/swap.cstatic inline int unuse_pmd(struct vm_area_struct * vma, pmd_t *dir,
vma886mm/swap.cif (unuse_pte(vma, offset+address-vma->vm_start, pte, type, page))
vma894mm/swap.cstatic inline int unuse_pgd(struct vm_area_struct * vma, pgd_t *dir,
vma915mm/swap.cif (unuse_pmd(vma, pmd, address, end - address, offset, type, page))
vma923mm/swap.cstatic int unuse_vma(struct vm_area_struct * vma, pgd_t *pgdir,
vma928mm/swap.cif (unuse_pgd(vma, pgdir, start, end - start, type, page))
vma938mm/swap.cstruct vm_area_struct* vma;
vma943mm/swap.cvma = p->mm->mmap;
vma944mm/swap.cwhile (vma) {
vma945mm/swap.cpgd_t * pgd = pgd_offset(p, vma->vm_start);
vma946mm/swap.cif (unuse_vma(vma, pgd, vma->vm_start, vma->vm_end, type, page))
vma948mm/swap.cvma = vma->vm_next;