Home
last modified time | relevance | path

Searched refs:FOLL_PIN (Results 1 – 5 of 5) sorted by relevance

/Linux-v5.10/Documentation/core-api/
Dpin_user_pages.rst18 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.10/mm/
Dgup.c87 else if (flags & FOLL_PIN) { in try_grab_compound_head()
149 WARN_ON_ONCE((flags & (FOLL_GET | FOLL_PIN)) == (FOLL_GET | FOLL_PIN)); in try_grab_page()
153 else if (flags & FOLL_PIN) { in try_grab_page()
411 if (WARN_ON_ONCE((flags & (FOLL_PIN | FOLL_GET)) == in follow_page_pte()
412 (FOLL_PIN | FOLL_GET))) in follow_page_pte()
446 if (!page && pte_devmap(pte) && (flags & (FOLL_GET | FOLL_PIN))) { in follow_page_pte()
495 if (flags & FOLL_PIN) { in follow_page_pte()
763 WARN_ON_ONCE(flags & (FOLL_GET | FOLL_PIN)); in follow_page_mask()
1035 VM_BUG_ON(!!pages != !!(gup_flags & (FOLL_GET | FOLL_PIN))); in __get_user_pages()
1265 if (flags & FOLL_PIN) in __get_user_pages_locked()
[all …]
Dhuge_memory.c964 if (WARN_ON_ONCE((flags & (FOLL_PIN | FOLL_GET)) == in follow_devmap_pmd()
965 (FOLL_PIN | FOLL_GET))) in follow_devmap_pmd()
983 if (!(flags & (FOLL_GET | FOLL_PIN))) in follow_devmap_pmd()
1139 if (WARN_ON_ONCE((flags & (FOLL_PIN | FOLL_GET)) == in follow_devmap_pud()
1140 (FOLL_PIN | FOLL_GET))) in follow_devmap_pud()
1157 if (!(flags & (FOLL_GET | FOLL_PIN))) in follow_devmap_pud()
Dhugetlb.c5471 if (WARN_ON_ONCE((flags & (FOLL_PIN | FOLL_GET)) == in follow_huge_pmd()
5472 (FOLL_PIN | FOLL_GET))) in follow_huge_pmd()
5519 if (flags & (FOLL_GET | FOLL_PIN)) in follow_huge_pud()
5528 if (flags & (FOLL_GET | FOLL_PIN)) in follow_huge_pgd()
/Linux-v5.10/include/linux/
Dmm.h2800 #define FOLL_PIN 0x40000 /* pages must be released via unpin_user_page */ macro