Searched refs:FOLL_PIN (Results 1 – 5 of 5) sorted by relevance
| /Linux-v5.15/Documentation/core-api/ |
| D | pin_user_pages.rst | 18 Basic description of FOLL_PIN 21 FOLL_PIN and FOLL_LONGTERM are flags that can be passed to the get_user_pages*() 22 ("gup") family of functions. FOLL_PIN has significant interactions and 25 FOLL_PIN is internal to gup, meaning that it should not appear at the gup call 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 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. 53 For these pin_user_pages*() functions, FOLL_PIN is OR'd in with whatever gup [all …]
|
| /Linux-v5.15/mm/ |
| D | gup.c | 132 else if (flags & FOLL_PIN) { in try_grab_compound_head() 177 if (flags & FOLL_PIN) { in put_compound_head() 211 if (!(flags & (FOLL_GET | FOLL_PIN))) in try_grab_page() 228 put_compound_head(compound_head(page), 1, FOLL_PIN); in unpin_user_page() 341 put_compound_head(head, ntails, FOLL_PIN); in unpin_user_pages_dirty_lock() 377 put_compound_head(head, ntails, FOLL_PIN); in unpin_user_page_range_dirty_lock() 406 put_compound_head(head, ntails, FOLL_PIN); in unpin_user_pages() 484 if (WARN_ON_ONCE((flags & (FOLL_PIN | FOLL_GET)) == in follow_page_pte() 485 (FOLL_PIN | FOLL_GET))) in follow_page_pte() 519 if (!page && pte_devmap(pte) && (flags & (FOLL_GET | FOLL_PIN))) { in follow_page_pte() [all …]
|
| D | huge_memory.c | 994 if (WARN_ON_ONCE((flags & (FOLL_PIN | FOLL_GET)) == in follow_devmap_pmd() 995 (FOLL_PIN | FOLL_GET))) in follow_devmap_pmd() 1013 if (!(flags & (FOLL_GET | FOLL_PIN))) in follow_devmap_pmd() 1162 if (WARN_ON_ONCE((flags & (FOLL_PIN | FOLL_GET)) == in follow_devmap_pud() 1163 (FOLL_PIN | FOLL_GET))) in follow_devmap_pud() 1180 if (!(flags & (FOLL_GET | FOLL_PIN))) in follow_devmap_pud()
|
| D | hugetlb.c | 6172 if (WARN_ON_ONCE((flags & (FOLL_PIN | FOLL_GET)) == in follow_huge_pmd() 6173 (FOLL_PIN | FOLL_GET))) in follow_huge_pmd() 6220 if (flags & (FOLL_GET | FOLL_PIN)) in follow_huge_pud() 6229 if (flags & (FOLL_GET | FOLL_PIN)) in follow_huge_pgd()
|
| /Linux-v5.15/include/linux/ |
| D | mm.h | 2865 #define FOLL_PIN 0x40000 /* pages must be released via unpin_user_page */ macro
|