Home
last modified time | relevance | path

Searched refs:VM_SHARED (Results 1 – 25 of 50) sorted by relevance

12

/linux-3.4.99/fs/romfs/
Dmmap-nommu.c67 return vma->vm_flags & (VM_SHARED | VM_MAYSHARE) ? 0 : -ENOSYS; in romfs_mmap()
/linux-3.4.99/mm/
Dmsync.c82 (vma->vm_flags & VM_SHARED)) { in SYSCALL_DEFINE3()
Dmprotect.c169 VM_SHARED|VM_NORESERVE))) { in mprotect_fixup()
212 vma->vm_page_prot = vm_get_page_prot(newflags & ~VM_SHARED); in mprotect_fixup()
Dmadvise.c220 if ((vma->vm_flags & (VM_SHARED|VM_WRITE)) != (VM_SHARED|VM_WRITE)) in madvise_remove()
Dmmap.c83 (VM_READ|VM_WRITE|VM_EXEC|VM_SHARED)]) | in vm_get_page_prot()
197 if (vma->vm_flags & VM_SHARED) in __remove_shared_vm_struct()
441 if (vma->vm_flags & VM_SHARED) in __vma_link_file()
1074 vm_flags |= VM_SHARED | VM_MAYSHARE; in do_mmap_pgoff()
1076 vm_flags &= ~(VM_MAYWRITE | VM_SHARED); in do_mmap_pgoff()
1102 vm_flags |= VM_SHARED | VM_MAYSHARE; in do_mmap_pgoff()
1228 if ((vm_flags & (VM_WRITE|VM_SHARED)) != ((VM_WRITE|VM_SHARED))) in vma_wants_writenotify()
1262 return (vm_flags & (VM_NORESERVE | VM_SHARED | VM_WRITE)) == VM_WRITE; in accountable_mapping()
1381 } else if (vm_flags & VM_SHARED) { in mmap_region()
1399 vma->vm_page_prot = vm_get_page_prot(vm_flags & ~VM_SHARED); in mmap_region()
Dfremap.c164 if (!vma || !(vma->vm_flags & VM_SHARED)) in SYSCALL_DEFINE5()
Dmemory.c718 return (flags & (VM_SHARED | VM_MAYWRITE)) == VM_MAYWRITE; in is_cow_mapping()
899 if (vm_flags & VM_SHARED) in copy_one_pte()
2574 if ((vma->vm_flags & (VM_WRITE|VM_SHARED)) == in do_wp_page()
2575 (VM_WRITE|VM_SHARED)) in do_wp_page()
2608 } else if (unlikely((vma->vm_flags & (VM_WRITE|VM_SHARED)) == in do_wp_page()
2609 (VM_WRITE|VM_SHARED))) { in do_wp_page()
3252 if ((flags & FAULT_FLAG_WRITE) && !(vma->vm_flags & VM_SHARED)) { in __do_fault()
3299 if (!(vma->vm_flags & VM_SHARED)) { in __do_fault()
3672 write = (vma->vm_flags & (VM_WRITE | VM_SHARED)) == VM_WRITE; in make_pages_present()
Dnommu.c1084 vm_flags |= VM_SHARED; in determine_vm_flags()
1405 if (file && vma->vm_flags & VM_SHARED) in do_mmap_pgoff()
2105 if (vma->vm_flags & VM_SHARED) { in nommu_shrink_inode_mappings()
2120 if (!(vma->vm_flags & VM_SHARED)) in nommu_shrink_inode_mappings()
Dfilemap_xip.c247 (vma->vm_flags & (VM_SHARED | VM_MAYSHARE)) && in xip_file_fault()
Dmlock.c179 if ((vma->vm_flags & (VM_WRITE | VM_SHARED)) == VM_WRITE) in __mlock_vma_pages_range()
Dhugetlb.c2315 cow = (vma->vm_flags & (VM_SHARED | VM_MAYWRITE)) == VM_MAYWRITE; in copy_hugetlb_page_range()
2764 if ((flags & FAULT_FLAG_WRITE) && !(vma->vm_flags & VM_SHARED)) in hugetlb_no_page()
2784 && (vma->vm_flags & VM_SHARED))); in hugetlb_no_page()
2787 if ((flags & FAULT_FLAG_WRITE) && !(vma->vm_flags & VM_SHARED)) { in hugetlb_no_page()
/linux-3.4.99/fs/ncpfs/
Dmmap.c116 if (vma->vm_flags & VM_SHARED) in ncp_mmap()
/linux-3.4.99/fs/proc/
Dnommu.c60 flags & VM_MAYSHARE ? flags & VM_SHARED ? 'S' : 's' : 'p', in nommu_region_show()
Dtask_nommu.c165 flags & VM_MAYSHARE ? flags & VM_SHARED ? 'S' : 's' : 'p', in nommu_vma_show()
/linux-3.4.99/drivers/misc/sgi-gru/
Dgrufile.c104 if ((vma->vm_flags & (VM_SHARED | VM_WRITE)) != (VM_SHARED | VM_WRITE)) in gru_file_mmap()
/linux-3.4.99/fs/ramfs/
Dfile-nommu.c261 if (!(vma->vm_flags & VM_SHARED)) in ramfs_nommu_mmap()
/linux-3.4.99/sound/soc/blackfin/
Dbf5xx-i2s-pcm.c200 vma->vm_flags |= VM_SHARED; in bf5xx_pcm_mmap()
Dbf5xx-ac97-pcm.c280 vma->vm_flags |= VM_SHARED; in bf5xx_pcm_mmap()
/linux-3.4.99/arch/powerpc/platforms/cell/spufs/
Dfile.c330 if (!(vma->vm_flags & VM_SHARED)) in spufs_mem_mmap()
443 if (!(vma->vm_flags & VM_SHARED)) in spufs_cntl_mmap()
1148 if (!(vma->vm_flags & VM_SHARED)) in spufs_signal1_mmap()
1286 if (!(vma->vm_flags & VM_SHARED)) in spufs_signal2_mmap()
1409 if (!(vma->vm_flags & VM_SHARED)) in spufs_mss_mmap()
1471 if (!(vma->vm_flags & VM_SHARED)) in spufs_psmap_mmap()
1531 if (!(vma->vm_flags & VM_SHARED)) in spufs_mfc_mmap()
/linux-3.4.99/drivers/char/
Dmspec.c264 if ((vma->vm_flags & VM_SHARED) == 0) in mspec_mmap()
Dmem.c676 if (vma->vm_flags & VM_SHARED) in mmap_zero()
/linux-3.4.99/drivers/video/
Dsbuslib.c51 if (!(vma->vm_flags & (VM_SHARED | VM_MAYSHARE))) in sbusfb_mmap_helper()
/linux-3.4.99/drivers/xen/
Dgntalloc.c509 if (!(vma->vm_flags & VM_SHARED)) { in gntalloc_mmap()
/linux-3.4.99/drivers/staging/android/
Dashmem.c321 if (vma->vm_flags & VM_SHARED) { in ashmem_mmap()
/linux-3.4.99/fs/
Dbinfmt_elf.c1125 if ((vma->vm_flags & VM_SHARED) && FILTER(HUGETLB_SHARED)) in vma_dump_size()
1127 if (!(vma->vm_flags & VM_SHARED) && FILTER(HUGETLB_PRIVATE)) in vma_dump_size()
1136 if (vma->vm_flags & VM_SHARED) { in vma_dump_size()

12