/kernel/linux/linux-5.10/mm/ |
D | gup.c | 809 unsigned int gup_flags, struct vm_area_struct **vma, in get_gate_page() argument 820 if (gup_flags & FOLL_WRITE) in get_gate_page() 846 if ((gup_flags & FOLL_DUMP) || !is_zero_pfn(pte_pfn(*pte))) in get_gate_page() 850 if (unlikely(!try_grab_page(*page, gup_flags))) { in get_gate_page() 920 static int check_vma_flags(struct vm_area_struct *vma, unsigned long gup_flags) in check_vma_flags() argument 923 int write = (gup_flags & FOLL_WRITE); in check_vma_flags() 924 int foreign = (gup_flags & FOLL_REMOTE); in check_vma_flags() 929 if (gup_flags & FOLL_ANON && !vma_is_anonymous(vma)) in check_vma_flags() 934 if (!(gup_flags & FOLL_FORCE)) in check_vma_flags() 949 if (!(gup_flags & FOLL_FORCE)) in check_vma_flags() [all …]
|
D | frame_vector.c | 35 unsigned int gup_flags, struct frame_vector *vec) in get_vaddr_frames() argument 76 gup_flags, (struct page **)(vec->ptrs), &locked); in get_vaddr_frames()
|
D | nommu.c | 1679 unsigned long addr, void *buf, int len, unsigned int gup_flags) in __access_remote_vm() argument 1682 int write = gup_flags & FOLL_WRITE; in __access_remote_vm() 1723 void *buf, int len, unsigned int gup_flags) in access_remote_vm() argument 1725 return __access_remote_vm(NULL, mm, addr, buf, len, gup_flags); in access_remote_vm() 1733 unsigned int gup_flags) in access_process_vm() argument 1744 len = __access_remote_vm(tsk, mm, addr, buf, len, gup_flags); in access_process_vm()
|
D | memory.c | 5060 unsigned long addr, void *buf, int len, unsigned int gup_flags) in __access_remote_vm() argument 5064 int write = gup_flags & FOLL_WRITE; in __access_remote_vm() 5076 gup_flags, &page, &vma, NULL); in __access_remote_vm() 5135 void *buf, int len, unsigned int gup_flags) in access_remote_vm() argument 5137 return __access_remote_vm(NULL, mm, addr, buf, len, gup_flags); in access_remote_vm() 5146 void *buf, int len, unsigned int gup_flags) in access_process_vm() argument 5155 ret = __access_remote_vm(tsk, mm, addr, buf, len, gup_flags); in access_process_vm()
|
/kernel/linux/linux-5.10/arch/arm64/kernel/ |
D | mte.c | 214 struct iovec *kiov, unsigned int gup_flags) in __access_remote_tags() argument 220 int write = gup_flags & FOLL_WRITE; in __access_remote_tags() 233 ret = get_user_pages_remote(mm, addr, 1, gup_flags, &page, in __access_remote_tags() 293 struct iovec *kiov, unsigned int gup_flags) in access_remote_tags() argument 309 ret = __access_remote_tags(mm, addr, kiov, gup_flags); in access_remote_tags() 321 unsigned int gup_flags = FOLL_FORCE; in mte_ptrace_copy_tags() local 331 gup_flags |= FOLL_WRITE; in mte_ptrace_copy_tags() 336 ret = access_remote_tags(child, addr, &kiov, gup_flags); in mte_ptrace_copy_tags()
|
/kernel/linux/linux-5.10/drivers/infiniband/hw/hfi1/ |
D | user_pages.c | 107 unsigned int gup_flags = FOLL_LONGTERM | (writable ? FOLL_WRITE : 0); in hfi1_acquire_user_pages() local 109 ret = pin_user_pages_fast(vaddr, npages, gup_flags, pages); in hfi1_acquire_user_pages()
|
/kernel/linux/linux-5.10/drivers/infiniband/core/ |
D | umem.c | 154 unsigned int gup_flags = FOLL_WRITE; in ib_umem_get() local 209 gup_flags |= FOLL_FORCE; in ib_umem_get() 217 gup_flags | FOLL_LONGTERM, page_list); in ib_umem_get()
|
/kernel/linux/linux-5.10/include/linux/ |
D | mm.h | 1766 void *buf, int len, unsigned int gup_flags); 1768 void *buf, int len, unsigned int gup_flags); 1770 unsigned long addr, void *buf, int len, unsigned int gup_flags); 1774 unsigned int gup_flags, struct page **pages, 1778 unsigned int gup_flags, struct page **pages, 1781 unsigned int gup_flags, struct page **pages, 1784 unsigned int gup_flags, struct page **pages, 1787 unsigned int gup_flags, struct page **pages, int *locked); 1789 unsigned int gup_flags, struct page **pages, int *locked); 1791 struct page **pages, unsigned int gup_flags); [all …]
|
D | ptrace.h | 21 void *buf, int len, unsigned int gup_flags);
|
/kernel/linux/linux-5.10/drivers/infiniband/hw/usnic/ |
D | usnic_uiom.c | 101 unsigned int gup_flags; in usnic_uiom_get_pages() local 138 gup_flags = FOLL_WRITE; in usnic_uiom_get_pages() 139 gup_flags |= (writable) ? 0 : FOLL_FORCE; in usnic_uiom_get_pages() 147 gup_flags | FOLL_LONGTERM, in usnic_uiom_get_pages()
|
/kernel/linux/linux-5.10/net/xdp/ |
D | xdp_umem.c | 98 unsigned int gup_flags = FOLL_WRITE; in xdp_umem_pin_pages() local 109 gup_flags | FOLL_LONGTERM, &umem->pgs[0], NULL); in xdp_umem_pin_pages()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/gem/ |
D | i915_gem_userptr.c | 564 unsigned int gup_flags = 0; in i915_gem_userptr_get_pages() local 602 gup_flags |= FOLL_WRITE; in i915_gem_userptr_get_pages() 604 num_pages, gup_flags, in i915_gem_userptr_get_pages()
|
/kernel/linux/linux-5.10/net/rds/ |
D | rdma.c | 157 unsigned int gup_flags = FOLL_LONGTERM; in rds_pin_pages() local 161 gup_flags |= FOLL_WRITE; in rds_pin_pages() 163 ret = pin_user_pages_fast(user_addr, nr_pages, gup_flags, pages); in rds_pin_pages()
|
/kernel/linux/linux-5.10/drivers/vhost/ |
D | vdpa.c | 622 unsigned int gup_flags = FOLL_LONGTERM; in vhost_vdpa_process_iotlb_update() local 644 gup_flags |= FOLL_WRITE; in vhost_vdpa_process_iotlb_update() 667 gup_flags, page_list, NULL); in vhost_vdpa_process_iotlb_update()
|
/kernel/linux/linux-5.10/kernel/ |
D | ptrace.c | 43 void *buf, int len, unsigned int gup_flags) in ptrace_access_vm() argument 60 ret = __access_remote_vm(tsk, mm, addr, buf, len, gup_flags); in ptrace_access_vm()
|
/kernel/linux/linux-5.10/fs/ |
D | exec.c | 206 unsigned int gup_flags = FOLL_FORCE; in get_arg_page() local 217 gup_flags |= FOLL_WRITE; in get_arg_page() 223 ret = get_user_pages_remote(bprm->mm, pos, 1, gup_flags, in get_arg_page()
|
/kernel/linux/linux-5.10/kernel/events/ |
D | uprobes.c | 471 unsigned int gup_flags = FOLL_FORCE; in uprobe_write_opcode() local 478 gup_flags |= FOLL_SPLIT_PMD; in uprobe_write_opcode() 480 ret = get_user_pages_remote(mm, vaddr, 1, gup_flags, in uprobe_write_opcode()
|