Searched refs:FOLL_GET (Results 1 – 12 of 12) sorted by relevance
/kernel/linux/linux-5.10/Documentation/core-api/ |
D | pin_user_pages.rst | 39 FOLL_PIN and FOLL_GET are mutually exclusive for a given gup call. However, 41 FOLL_PIN and FOLL_GET. It's just the call site that needs to choose one or the 44 The FOLL_PIN implementation is nearly the same as FOLL_GET, except that FOLL_PIN 78 For these get_user_pages*() functions, FOLL_GET might not even be specified. 79 Behavior is a little more complex than above. If FOLL_GET was *not* specified, 81 sets FOLL_GET for you, and proceeds to pin pages by incrementing the refcount 86 get_user_pages FOLL_GET is sometimes set internally by this function. 87 get_user_pages_fast FOLL_GET is sometimes set internally by this function. 88 get_user_pages_remote FOLL_GET is sometimes set internally by this function. 120 FOLL_PIN, FOLL_GET, FOLL_LONGTERM: when to use which flags [all …]
|
/kernel/linux/linux-5.10/mm/ |
D | gup.c | 117 if (flags & FOLL_GET) in try_grab_compound_head() 199 WARN_ON_ONCE((flags & (FOLL_GET | FOLL_PIN)) == (FOLL_GET | FOLL_PIN)); in try_grab_page() 201 if (flags & FOLL_GET) in try_grab_page() 364 if (flags & FOLL_GET) in follow_pfn_pte() 405 if (WARN_ON_ONCE((flags & (FOLL_PIN | FOLL_GET)) == in follow_page_pte() 406 (FOLL_PIN | FOLL_GET))) in follow_page_pte() 452 if (!page && pte_devmap(pte) && (flags & (FOLL_GET | FOLL_PIN))) { in follow_page_pte() 769 WARN_ON_ONCE(flags & (FOLL_GET | FOLL_PIN)); in follow_page_mask() 1041 VM_BUG_ON(!!pages != !!(gup_flags & (FOLL_GET | FOLL_PIN))); in __get_user_pages() 1284 flags |= FOLL_GET; in __get_user_pages_locked() [all …]
|
D | huge_memory.c | 980 if (WARN_ON_ONCE((flags & (FOLL_PIN | FOLL_GET)) == in follow_devmap_pmd() 981 (FOLL_PIN | FOLL_GET))) in follow_devmap_pmd() 999 if (!(flags & (FOLL_GET | FOLL_PIN))) in follow_devmap_pmd() 1149 if (WARN_ON_ONCE((flags & (FOLL_PIN | FOLL_GET)) == in follow_devmap_pud() 1150 (FOLL_PIN | FOLL_GET))) in follow_devmap_pud() 1167 if (!(flags & (FOLL_GET | FOLL_PIN))) in follow_devmap_pud()
|
D | mlock.c | 470 page = follow_page(vma, start, FOLL_GET | FOLL_DUMP); in munlock_vma_pages_range()
|
D | ksm.c | 479 FOLL_GET | FOLL_MIGRATION | FOLL_REMOTE); in break_ksm() 566 page = follow_page(vma, addr, FOLL_GET); in get_mergeable_page() 2311 *page = follow_page(vma, ksm_scan.address, FOLL_GET); in scan_get_next_rmap_item()
|
D | hugetlb.c | 5616 if (WARN_ON_ONCE((flags & (FOLL_PIN | FOLL_GET)) == in follow_huge_pmd_pte() 5617 (FOLL_PIN | FOLL_GET))) in follow_huge_pmd_pte() 5662 if (flags & (FOLL_GET | FOLL_PIN)) in follow_huge_pud() 5671 if (flags & (FOLL_GET | FOLL_PIN)) in follow_huge_pgd()
|
D | migrate.c | 1653 follflags = FOLL_GET | FOLL_DUMP; in add_page_for_migration()
|
/kernel/linux/linux-5.10/arch/s390/mm/ |
D | hugetlbpage.c | 251 if (flags & FOLL_GET) in follow_huge_pud()
|
D | fault.c | 846 page = follow_page(vma, addr, FOLL_WRITE | FOLL_GET); in do_secure_storage_access()
|
/kernel/linux/linux-5.10/arch/powerpc/mm/ |
D | hugetlbpage.c | 544 if (flags & FOLL_GET) in follow_huge_pd()
|
/kernel/linux/linux-5.10/drivers/virt/nitro_enclaves/ |
D | ne_misc_dev.c | 889 gup_rc = get_user_pages(mem_region.userspace_addr + memory_size, 1, FOLL_GET, in ne_set_user_memory_region_ioctl()
|
/kernel/linux/linux-5.10/include/linux/ |
D | mm.h | 2848 #define FOLL_GET 0x04 /* do get_page on page */ macro
|