| /linux-6.15/fs/coda/ |
| H A D | file.c | 37 struct vm_operations_struct vm_ops; member 126 container_of(vma->vm_ops, struct coda_vm_ops, vm_ops); in coda_vm_open() 138 container_of(vma->vm_ops, struct coda_vm_ops, vm_ops); in coda_vm_close() 144 vma->vm_ops = cvm_ops->host_vm_ops; in coda_vm_close() 212 cvm_ops->host_vm_ops = vma->vm_ops; in coda_file_mmap() 213 if (vma->vm_ops) in coda_file_mmap() 214 cvm_ops->vm_ops = *vma->vm_ops; in coda_file_mmap() 216 cvm_ops->vm_ops.open = coda_vm_open; in coda_file_mmap() 217 cvm_ops->vm_ops.close = coda_vm_close; in coda_file_mmap() 221 vma->vm_ops = &cvm_ops->vm_ops; in coda_file_mmap()
|
| /linux-6.15/tools/testing/vma/ |
| H A D | vma.c | 478 vma_a->vm_ops = &vm_ops; /* This should have no impact. */ in test_merge_new() 763 vma_next->vm_ops = &vm_ops; in test_vma_merge_with_close() 788 vma->vm_ops = &vm_ops; in test_vma_merge_with_close() 816 vma->vm_ops = &vm_ops; in test_vma_merge_with_close() 845 vma->vm_ops = &vm_ops; in test_vma_merge_with_close() 871 vma_next->vm_ops = &vm_ops; in test_vma_merge_with_close() 925 vma_prev->vm_ops = &vm_ops; in test_vma_merge_new_with_close() 926 vma_next->vm_ops = &vm_ops; in test_vma_merge_new_with_close() 935 ASSERT_EQ(vma->vm_ops, &vm_ops); in test_vma_merge_new_with_close() 968 vma->vm_ops = &vm_ops; /* This should have no impact. */ in test_merge_existing() [all …]
|
| H A D | vma_internal.h | 293 const struct vm_operations_struct *vm_ops; member 503 vma->vm_ops = &vma_dummy_vm_ops; in vma_init() 634 return !vma->vm_ops; in vma_is_anonymous() 1033 vma->vm_ops = NULL; in vma_set_anonymous()
|
| /linux-6.15/fs/kernfs/ |
| H A D | file.c | 357 if (!of->vm_ops) in kernfs_vma_open() 363 if (of->vm_ops->open) in kernfs_vma_open() 364 of->vm_ops->open(vma); in kernfs_vma_open() 375 if (!of->vm_ops) in kernfs_vma_fault() 382 if (of->vm_ops->fault) in kernfs_vma_fault() 395 if (!of->vm_ops) in kernfs_vma_page_mkwrite() 418 if (!of->vm_ops) in kernfs_vma_access() 425 if (of->vm_ops->access) in kernfs_vma_access() 475 if (of->mmapped && of->vm_ops != vma->vm_ops) in kernfs_fop_mmap() 482 if (vma->vm_ops && vma->vm_ops->close) in kernfs_fop_mmap() [all …]
|
| /linux-6.15/arch/um/kernel/ |
| H A D | tlb.c | 18 struct vm_ops { struct 53 struct vm_ops *ops) in update_pte_range() 94 struct vm_ops *ops) in update_pmd_range() 117 struct vm_ops *ops) in update_pud_range() 140 struct vm_ops *ops) in update_p4d_range() 164 struct vm_ops ops; in um_tlb_sync()
|
| /linux-6.15/ipc/ |
| H A D | shm.c | 309 if (sfd->vm_ops->open) in shm_open() 310 sfd->vm_ops->open(vma); in shm_open() 402 if (sfd->vm_ops->close) in shm_close() 403 sfd->vm_ops->close(vma); in shm_close() 548 if (sfd->vm_ops->may_split) in shm_may_split() 559 if (sfd->vm_ops->pagesize) in shm_pagesize() 571 if (sfd->vm_ops->set_policy) in shm_set_policy() 582 if (sfd->vm_ops->get_policy) in shm_get_policy() 607 sfd->vm_ops = vma->vm_ops; in shm_mmap() 611 vma->vm_ops = &shm_vm_ops; in shm_mmap() [all …]
|
| /linux-6.15/drivers/gpu/drm/xen/ |
| H A D | xen_drm_front_gem.c | 66 vma->vm_ops = gem_obj->funcs->vm_ops; in xen_drm_front_gem_object_mmap() 111 .vm_ops = &xen_drm_drv_vm_ops,
|
| /linux-6.15/drivers/gpu/drm/mediatek/ |
| H A D | mtk_gem.c | 20 static const struct vm_operations_struct vm_ops = { variable 31 .vm_ops = &vm_ops,
|
| /linux-6.15/mm/ |
| H A D | vma.c | 471 if (vma->vm_ops && vma->vm_ops->may_split) { in __split_vma() 472 err = vma->vm_ops->may_split(vma, addr); in __split_vma() 504 if (new->vm_ops && new->vm_ops->open) in __split_vma() 505 new->vm_ops->open(new); in __split_vma() 719 return !vma->vm_ops || !vma->vm_ops->close; in can_merge_remove_vma() 1828 if (new_vma->vm_ops && new_vma->vm_ops->open) in copy_vma() 1829 new_vma->vm_ops->open(new_vma); in copy_vma() 1951 static bool vm_ops_needs_writenotify(const struct vm_operations_struct *vm_ops) in vm_ops_needs_writenotify() argument 1953 return vm_ops && (vm_ops->page_mkwrite || vm_ops->pfn_mkwrite); in vm_ops_needs_writenotify() 1983 if (vm_ops_needs_writenotify(vma->vm_ops)) in vma_needs_dirty_tracking() [all …]
|
| H A D | secretmem.c | 134 vma->vm_ops = &secretmem_vm_ops; in secretmem_mmap() 141 return vma->vm_ops == &secretmem_vm_ops; in vma_is_secretmem()
|
| H A D | mremap.c | 1009 if (vma->vm_ops && vma->vm_ops->may_split) { in prep_move_vma() 1011 err = vma->vm_ops->may_split(vma, old_addr); in prep_move_vma() 1013 err = vma->vm_ops->may_split(vma, old_addr + old_len); in prep_move_vma() 1169 else if (vma->vm_ops && vma->vm_ops->mremap) in copy_vma_and_data() 1170 err = vma->vm_ops->mremap(new_vma); in copy_vma_and_data()
|
| H A D | memory.c | 523 vma->vm_ops ? vma->vm_ops->fault : NULL, in print_bad_pte() 583 if (vma->vm_ops && vma->vm_ops->find_special_page) in vm_normal_page() 2104 return vma->vm_ops && vma->vm_ops->pfn_mkwrite && in vm_mixed_zeropage_allowed() 3315 bool page_mkwrite = vma->vm_ops && vma->vm_ops->page_mkwrite; in fault_dirty_shared_page() 3652 if (vma->vm_ops && vma->vm_ops->pfn_mkwrite) { in wp_pfn_shared() 3678 if (vma->vm_ops && vma->vm_ops->page_mkwrite) { in wp_page_shared() 5098 ret = vma->vm_ops->fault(vmf); in __do_fault() 5631 if (!vma->vm_ops->fault) { in do_fault() 5863 if (vma->vm_ops->huge_fault) in create_huge_pmd() 5908 if (vma->vm_ops->huge_fault) in create_huge_pud() [all …]
|
| H A D | internal.h | 177 vma->vm_ops = &vma_dummy_vm_ops; in mmap_file() 189 if (vma->vm_ops && vma->vm_ops->close) { in vma_close() 190 vma->vm_ops->close(vma); in vma_close() 196 vma->vm_ops = &vma_dummy_vm_ops; in vma_close()
|
| /linux-6.15/arch/hexagon/kernel/ |
| H A D | Makefile | 14 obj-y += vm_entry.o vm_events.o vm_switch.o vm_ops.o vm_init_segtable.o
|
| /linux-6.15/include/linux/ |
| H A D | agp_backend.h | 56 const struct vm_operations_struct *vm_ops; member
|
| /linux-6.15/drivers/pci/ |
| H A D | mmap.c | 47 vma->vm_ops = &pci_phys_vm_ops; in pci_mmap_resource_range()
|
| /linux-6.15/drivers/gpu/drm/i915/gem/ |
| H A D | i915_gem_mman.c | 1029 vma->vm_ops = obj->ops->mmap_ops; in i915_gem_object_mmap() 1040 vma->vm_ops = &vm_ops_cpu; in i915_gem_object_mmap() 1048 vma->vm_ops = &vm_ops_cpu; in i915_gem_object_mmap() 1054 vma->vm_ops = &vm_ops_cpu; in i915_gem_object_mmap() 1060 vma->vm_ops = &vm_ops_gtt; in i915_gem_object_mmap()
|
| /linux-6.15/drivers/gpu/drm/vmwgfx/ |
| H A D | vmwgfx_gem.c | 121 vma->vm_ops = NULL; in vmw_gem_mmap() 154 .vm_ops = &vmw_vm_ops,
|
| /linux-6.15/arch/x86/kernel/cpu/sgx/ |
| H A D | encl.h | 95 if (!result || result->vm_ops != &sgx_vm_ops) in sgx_encl_find()
|
| /linux-6.15/drivers/media/common/videobuf2/ |
| H A D | videobuf2-vmalloc.c | 195 vma->vm_ops = &vb2_common_vm_ops; in vb2_vmalloc_mmap() 197 vma->vm_ops->open(vma); in vb2_vmalloc_mmap()
|
| /linux-6.15/drivers/gpu/drm/ttm/ |
| H A D | ttm_bo_vm.c | 495 if (!vma->vm_ops) in ttm_bo_mmap_obj() 496 vma->vm_ops = &ttm_bo_vm_ops; in ttm_bo_mmap_obj()
|
| /linux-6.15/fs/nilfs2/ |
| H A D | file.c | 131 vma->vm_ops = &nilfs_file_vm_ops; in nilfs_file_mmap()
|
| /linux-6.15/drivers/infiniband/sw/rxe/ |
| H A D | rxe_mmap.c | 105 vma->vm_ops = &rxe_vm_ops; in rxe_mmap()
|
| /linux-6.15/fs/ocfs2/ |
| H A D | mmap.c | 174 vma->vm_ops = &ocfs2_file_vm_ops; in ocfs2_mmap()
|
| /linux-6.15/drivers/infiniband/sw/rdmavt/ |
| H A D | mmap.c | 97 vma->vm_ops = &rvt_vm_ops; in rvt_mmap()
|