Home
last modified time | relevance | path

Searched refs:mmap_lock (Results 1 – 23 of 23) sorted by relevance

/kernel/linux/linux-5.10/include/linux/
Dmmap_lock.h7 .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 …]
Dmm_types.h494 struct rw_semaphore mmap_lock; member
/kernel/linux/linux-5.10/drivers/media/common/videobuf2/
Dvideobuf2-core.c759 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/
Diw_cxgb4.h531 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()
Dprovider.c88 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()
Dcq.c1103 spin_lock(&ucontext->mmap_lock); in c4iw_create_cq()
1113 spin_unlock(&ucontext->mmap_lock); in c4iw_create_cq()
Dqp.c2272 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/
Dtc_ns_client.h40 #define mm_sem_lock(mm) (mm)->mmap_lock
/kernel/linux/linux-5.10/arch/ia64/mm/
Dfault.c79 prefetchw(&mm->mmap_lock); in ia64_do_page_fault()
/kernel/linux/linux-5.10/include/media/
Dvideobuf2-core.h600 struct mutex mmap_lock; member
/kernel/linux/linux-5.10/Documentation/vm/
Dtranshuge.rst101 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/
Dnuma_memory_policy.rst367 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
Duserfaultfd.rst36 ``userfaultfd`` runtime load never takes the mmap_lock for writing).
/kernel/linux/linux-5.10/drivers/gpu/drm/etnaviv/
Detnaviv_gem.c662 might_lock_read(&current->mm->mmap_lock); in etnaviv_gem_userptr_get_pages()
/kernel/linux/linux-5.10/mm/
Dmmu_notifier.c1010 might_lock(&mm->mmap_lock); in mmu_interval_notifier_insert()
Dmmap.c3618 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()
Dgup.c2750 might_lock_read(&current->mm->mmap_lock); in internal_get_user_pages_fast()
Dmemory.c5212 might_lock_read(&current->mm->mmap_lock); in __might_fault()
/kernel/linux/linux-5.10/arch/x86/mm/
Dfault.c1453 prefetchw(&current->mm->mmap_lock); in DEFINE_IDTENTRY_RAW_ERRORCODE()
/kernel/linux/linux-5.10/Documentation/filesystems/
Dlocking.rst615 ops mmap_lock PageLocked(page)
/kernel/linux/patches/linux-5.10/imx8mm_patch/patches/drivers/
D0036_linux_drivers_staging.patch20610 + down_write(&current->mm->mmap_lock);
20612 + up_write(&current->mm->mmap_lock);
20661 + down_write(&current->mm->mmap_lock);
20671 + up_write(&current->mm->mmap_lock);
20693 + down_write(&current->mm->mmap_lock);
20696 + up_write(&current->mm->mmap_lock);
20752 + up_write(&current->mm->mmap_lock);
20788 + down_read(&current->mm->mmap_lock);
20791 + up_read(&current->mm->mmap_lock);
20802 + up_read(&current->mm->mmap_lock);
[all …]
D0038_linux_drivers_mxc.patch151201 +#define current_mm_mmap_sem current->mm->mmap_lock
/kernel/linux/patches/linux-5.10/imx8mm_patch/patches/
D0005_linux_include.patch11172 + * 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 */