/kernel/linux/linux-5.10/include/linux/ |
D | mmap_lock.h | 7 .mmap_lock = __RWSEM_INITIALIZER((name).mmap_lock), 11 init_rwsem(&mm->mmap_lock); in mmap_init_lock() 16 down_write(&mm->mmap_lock); in mmap_write_lock() 21 down_write_nested(&mm->mmap_lock, subclass); in mmap_write_lock_nested() 26 return down_write_killable(&mm->mmap_lock); in mmap_write_lock_killable() 31 return down_write_trylock(&mm->mmap_lock) != 0; in mmap_write_trylock() 36 up_write(&mm->mmap_lock); in mmap_write_unlock() 41 downgrade_write(&mm->mmap_lock); in mmap_write_downgrade() 46 down_read(&mm->mmap_lock); in mmap_read_lock() 51 return down_read_killable(&mm->mmap_lock); in mmap_read_lock_killable() [all …]
|
D | mm_types.h | 494 struct rw_semaphore mmap_lock; member
|
/kernel/linux/linux-5.10/drivers/media/common/videobuf2/ |
D | videobuf2-core.c | 759 mutex_lock(&q->mmap_lock); in vb2_core_reqbufs() 771 mutex_unlock(&q->mmap_lock); in vb2_core_reqbufs() 794 mutex_lock(&q->mmap_lock); in vb2_core_reqbufs() 796 mutex_unlock(&q->mmap_lock); in vb2_core_reqbufs() 860 mutex_lock(&q->mmap_lock); in vb2_core_reqbufs() 870 mutex_unlock(&q->mmap_lock); in vb2_core_reqbufs() 873 mutex_unlock(&q->mmap_lock); in vb2_core_reqbufs() 885 mutex_lock(&q->mmap_lock); in vb2_core_reqbufs() 887 mutex_unlock(&q->mmap_lock); in vb2_core_reqbufs() 917 mutex_lock(&q->mmap_lock); in vb2_core_create_bufs() [all …]
|
/kernel/linux/linux-5.10/drivers/infiniband/hw/cxgb4/ |
D | iw_cxgb4.h | 531 spinlock_t mmap_lock; member 554 spin_lock(&ucontext->mmap_lock); in remove_mmap() 560 spin_unlock(&ucontext->mmap_lock); in remove_mmap() 566 spin_unlock(&ucontext->mmap_lock); in remove_mmap() 573 spin_lock(&ucontext->mmap_lock); in insert_mmap() 577 spin_unlock(&ucontext->mmap_lock); in insert_mmap()
|
D | provider.c | 88 spin_lock_init(&context->mmap_lock); in c4iw_alloc_ucontext() 102 spin_lock(&context->mmap_lock); in c4iw_alloc_ucontext() 105 spin_unlock(&context->mmap_lock); in c4iw_alloc_ucontext()
|
D | cq.c | 1103 spin_lock(&ucontext->mmap_lock); in c4iw_create_cq() 1113 spin_unlock(&ucontext->mmap_lock); in c4iw_create_cq()
|
D | qp.c | 2272 spin_lock(&ucontext->mmap_lock); in c4iw_create_qp() 2289 spin_unlock(&ucontext->mmap_lock); in c4iw_create_qp() 2760 spin_lock(&ucontext->mmap_lock); in c4iw_create_srq() 2765 spin_unlock(&ucontext->mmap_lock); in c4iw_create_srq()
|
/kernel/linux/common_modules/tzdriver/ |
D | tc_ns_client.h | 40 #define mm_sem_lock(mm) (mm)->mmap_lock
|
/kernel/linux/linux-5.10/arch/ia64/mm/ |
D | fault.c | 79 prefetchw(&mm->mmap_lock); in ia64_do_page_fault()
|
/kernel/linux/linux-5.10/include/media/ |
D | videobuf2-core.h | 600 struct mutex mmap_lock; member
|
/kernel/linux/linux-5.10/Documentation/vm/ |
D | transhuge.rst | 101 mmap_lock in read (or write) mode to be sure a huge pmd cannot be 103 takes the mmap_lock in write mode in addition to the anon_vma lock). If
|
/kernel/linux/linux-5.10/Documentation/admin-guide/mm/ |
D | numa_memory_policy.rst | 367 task's mm's mmap_lock for read during the query. The set_mempolicy() and 368 mbind() APIs [see below] always acquire the mmap_lock for write when 374 we hold them mmap_lock for read. Again, because replacing the task or vma 375 policy requires that the mmap_lock be held for write, the policy can't be 379 shared memory policy while another task, with a distinct mmap_lock, is
|
D | userfaultfd.rst | 36 ``userfaultfd`` runtime load never takes the mmap_lock for writing).
|
/kernel/linux/linux-5.10/drivers/gpu/drm/etnaviv/ |
D | etnaviv_gem.c | 662 might_lock_read(¤t->mm->mmap_lock); in etnaviv_gem_userptr_get_pages()
|
/kernel/linux/linux-5.10/mm/ |
D | mmu_notifier.c | 1010 might_lock(&mm->mmap_lock); in mmu_interval_notifier_insert()
|
D | mmap.c | 3618 down_write_nest_lock(&anon_vma->root->rwsem, &mm->mmap_lock); in vm_lock_anon_vma() 3648 down_write_nest_lock(&mapping->i_mmap_rwsem, &mm->mmap_lock); in vm_lock_mapping()
|
D | gup.c | 2750 might_lock_read(¤t->mm->mmap_lock); in internal_get_user_pages_fast()
|
D | memory.c | 5212 might_lock_read(¤t->mm->mmap_lock); in __might_fault()
|
/kernel/linux/linux-5.10/arch/x86/mm/ |
D | fault.c | 1453 prefetchw(¤t->mm->mmap_lock); in DEFINE_IDTENTRY_RAW_ERRORCODE()
|
/kernel/linux/linux-5.10/Documentation/filesystems/ |
D | locking.rst | 615 ops mmap_lock PageLocked(page)
|
/kernel/linux/patches/linux-5.10/imx8mm_patch/patches/drivers/ |
D | 0036_linux_drivers_staging.patch | 20610 + down_write(¤t->mm->mmap_lock); 20612 + up_write(¤t->mm->mmap_lock); 20661 + down_write(¤t->mm->mmap_lock); 20671 + up_write(¤t->mm->mmap_lock); 20693 + down_write(¤t->mm->mmap_lock); 20696 + up_write(¤t->mm->mmap_lock); 20752 + up_write(¤t->mm->mmap_lock); 20788 + down_read(¤t->mm->mmap_lock); 20791 + up_read(¤t->mm->mmap_lock); 20802 + up_read(¤t->mm->mmap_lock); [all …]
|
D | 0038_linux_drivers_mxc.patch | 151201 +#define current_mm_mmap_sem current->mm->mmap_lock
|
/kernel/linux/patches/linux-5.10/imx8mm_patch/patches/ |
D | 0005_linux_include.patch | 11172 + * mmap_lock should be read-locked when calling vma_anon_name() and while using 11178 + * mmap_lock should be read-locked for orig_vma->vm_mm. 11179 + * mmap_lock should be write-locked for new_vma->vm_mm or new_vma should be 11186 + * mmap_lock should be write-locked or vma should have been isolated under 11187 + * write-locked mmap_lock protection. 11191 +/* mmap_lock should be read-locked */
|