| /linux/Documentation/core-api/ |
| H A D | pin_user_pages.rst | 21 FOLL_PIN and FOLL_LONGTERM are flags that can be passed to the get_user_pages*() 23 interdependencies with FOLL_LONGTERM, so both are covered here. 30 FOLL_LONGTERM, on the other hand, *is* allowed to be set at the gup call sites. 32 all combinations of get*(), pin*(), FOLL_LONGTERM, and more. Also, the 47 FOLL_PIN is a prerequisite to FOLL_LONGTERM. Another way of saying that is, 48 FOLL_LONGTERM is a specific case, more restrictive case of FOLL_PIN. 125 FOLL_PIN, FOLL_GET, FOLL_LONGTERM: when to use which flags 150 FOLL_PIN | FOLL_LONGTERM 216 Another way of thinking about FOLL_GET, FOLL_PIN, and FOLL_LONGTERM 223 a "more severe" form of pinning. And finally, FOLL_LONGTERM is an even more
|
| /linux/drivers/infiniband/hw/hfi1/ |
| H A D | user_pages.c | 84 unsigned int gup_flags = FOLL_LONGTERM | (writable ? FOLL_WRITE : 0); in hfi1_acquire_user_pages()
|
| /linux/mm/ |
| H A D | gup.c | 552 if (unlikely((flags & FOLL_LONGTERM) && in try_grab_folio_fast() 1189 if ((gup_flags & (FOLL_PIN | FOLL_LONGTERM)) != in writable_file_mapping_allowed() 1190 (FOLL_PIN | FOLL_LONGTERM)) in writable_file_mapping_allowed() 1213 if ((gup_flags & FOLL_LONGTERM) && vma_is_fsdax(vma)) in check_vma_flags() 2470 if (!(gup_flags & FOLL_LONGTERM)) in __gup_longterm_locked() 2525 if (WARN_ON_ONCE(!(gup_flags & FOLL_PIN) && (gup_flags & FOLL_LONGTERM))) in is_valid_gup_args() 2533 if (WARN_ON_ONCE((gup_flags & FOLL_LONGTERM) && in is_valid_gup_args() 2744 if ((flags & (FOLL_PIN | FOLL_LONGTERM | FOLL_WRITE)) == in gup_fast_folio_allowed() 2745 (FOLL_PIN | FOLL_LONGTERM | FOLL_WRITE)) in gup_fast_folio_allowed() 3183 if (WARN_ON_ONCE(gup_flags & ~(FOLL_WRITE | FOLL_LONGTERM | in gup_fast_fallback()
|
| H A D | gup_test.c | 165 gup->gup_flags | FOLL_LONGTERM, in __gup_test_ioctl() 233 int gup_flags = FOLL_LONGTERM; in pin_longterm_test_start()
|
| H A D | internal.h | 1376 if (!(flags & FOLL_LONGTERM)) in gup_must_unshare()
|
| /linux/drivers/media/common/videobuf2/ |
| H A D | frame_vector.c | 44 unsigned int gup_flags = FOLL_LONGTERM; in get_vaddr_frames()
|
| /linux/drivers/gpu/drm/vmwgfx/ |
| H A D | vmwgfx_msg.c | 1021 nr_pinned_stat = pin_user_pages_fast(arg->stat, num_pages_stat, FOLL_LONGTERM, pages_stat); in vmw_mksstat_add_ioctl() 1028 nr_pinned_info = pin_user_pages_fast(arg->info, num_pages_info, FOLL_LONGTERM, pages_info); in vmw_mksstat_add_ioctl() 1035 nr_pinned_strs = pin_user_pages_fast(arg->strs, num_pages_strs, FOLL_LONGTERM, pages_strs); in vmw_mksstat_add_ioctl()
|
| /linux/drivers/accel/ivpu/ |
| H A D | ivpu_gem_userptr.c | 73 unsigned int gup_flags = FOLL_LONGTERM; in ivpu_create_userptr_dmabuf()
|
| /linux/net/xdp/ |
| H A D | xdp_umem.c | 107 gup_flags | FOLL_LONGTERM, &umem->pgs[0]); in xdp_umem_pin_pages()
|
| /linux/arch/powerpc/mm/book3s64/ |
| H A D | iommu_api.c | 107 FOLL_WRITE | FOLL_LONGTERM, in mm_iommu_do_alloc()
|
| /linux/drivers/virt/acrn/ |
| H A D | mm.c | 243 nr_pages, FOLL_WRITE | FOLL_LONGTERM, in acrn_vm_ram_map()
|
| H A D | ioreq.c | 610 FOLL_WRITE | FOLL_LONGTERM, &page); in acrn_ioreq_init()
|
| /linux/io_uring/ |
| H A D | memmap.c | 78 ret = pin_user_pages_fast(uaddr, nr_pages, FOLL_WRITE | FOLL_LONGTERM, in io_pin_pages()
|
| /linux/drivers/infiniband/hw/mthca/ |
| H A D | mthca_memfree.c | 476 FOLL_WRITE | FOLL_LONGTERM, pages); in mthca_map_user_db()
|
| /linux/net/rds/ |
| H A D | rdma.c | 158 unsigned int gup_flags = FOLL_LONGTERM; in rds_pin_pages()
|
| /linux/include/linux/ |
| H A D | mm_types.h | 1912 FOLL_LONGTERM = 1 << 8, enumerator
|
| /linux/tools/testing/selftests/mm/ |
| H A D | hmm-tests.c | 75 #ifndef FOLL_LONGTERM 76 #define FOLL_LONGTERM 0x100 /* mapping lifetime is indefinite */ 1830 PIN_FAST_BENCHMARK, 1, self->page_size, FOLL_LONGTERM), 0); in TEST_F() 72 #define FOLL_LONGTERM global() macro
|
| /linux/drivers/vhost/ |
| H A D | vdpa.c | 1152 unsigned int gup_flags = FOLL_LONGTERM; in vhost_vdpa_pa_map()
|
| /linux/drivers/iommu/iommufd/ |
| H A D | pages.c | 796 user->gup_flags = FOLL_LONGTERM; in pfn_reader_user_init()
|
| /linux/drivers/accel/habanalabs/common/ |
| H A D | memory.c | 2330 rc = pin_user_pages_fast(start, npages, FOLL_WRITE | FOLL_LONGTERM, in get_user_memory()
|
| /linux/drivers/vdpa/vdpa_user/ |
| H A D | vduse_dev.c | 1394 pinned = pin_user_pages(uaddr, npages, FOLL_LONGTERM | FOLL_WRITE, in vduse_dev_reg_umem()
|
| /linux/drivers/block/ |
| H A D | ublk_drv.c | 5467 gup_flags = FOLL_LONGTERM; in ublk_ctrl_reg_buf()
|
| /linux/kernel/bpf/ |
| H A D | syscall.c | 230 err = pin_user_pages_fast(start, 1, FOLL_LONGTERM | FOLL_WRITE, &page); in bpf_obj_pin_uptrs()
|