Home
last modified time | relevance | path

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

/Linux-v6.1/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-v6.1/mm/
Dgup.c128 else if (flags & FOLL_PIN) { in try_grab_folio()
179 if (flags & FOLL_PIN) { in gup_put_folio()
213 WARN_ON_ONCE((flags & (FOLL_GET | FOLL_PIN)) == (FOLL_GET | FOLL_PIN)); in try_grab_page()
219 else if (flags & FOLL_PIN) { in try_grab_page()
250 gup_put_folio(page_folio(page), 1, FOLL_PIN); in unpin_user_page()
346 gup_put_folio(folio, nr, FOLL_PIN); in unpin_user_pages_dirty_lock()
386 gup_put_folio(folio, nr, FOLL_PIN); in unpin_user_page_range_dirty_lock()
404 gup_put_folio(folio, nr, FOLL_PIN); in unpin_user_pages_lockless()
434 gup_put_folio(folio, nr, FOLL_PIN); in unpin_user_pages()
537 if (WARN_ON_ONCE((flags & (FOLL_PIN | FOLL_GET)) == in follow_page_pte()
[all …]
Dhuge_memory.c1042 if (WARN_ON_ONCE((flags & (FOLL_PIN | FOLL_GET)) == in follow_devmap_pmd()
1043 (FOLL_PIN | FOLL_GET))) in follow_devmap_pmd()
1061 if (!(flags & (FOLL_GET | FOLL_PIN))) in follow_devmap_pmd()
1203 if (WARN_ON_ONCE((flags & (FOLL_PIN | FOLL_GET)) == in follow_devmap_pud()
1204 (FOLL_PIN | FOLL_GET))) in follow_devmap_pud()
1221 if (!(flags & (FOLL_GET | FOLL_PIN))) in follow_devmap_pud()
1459 VM_BUG_ON_PAGE((flags & FOLL_PIN) && PageAnon(page) && in follow_trans_huge_pmd()
Dhugetlb.c6340 VM_BUG_ON_PAGE((flags & FOLL_PIN) && PageAnon(page) && in follow_hugetlb_page()
7243 if (WARN_ON_ONCE(flags & FOLL_PIN)) in follow_huge_pmd_pte()
7292 if (WARN_ON_ONCE(flags & FOLL_PIN)) in follow_huge_pud()
7325 if (flags & (FOLL_GET | FOLL_PIN)) in follow_huge_pgd()
/Linux-v6.1/include/linux/
Dmm.h2980 #define FOLL_PIN 0x40000 /* pages must be released via unpin_user_page */ macro
3074 if ((flags & (FOLL_WRITE | FOLL_PIN)) != FOLL_PIN) in gup_must_unshare()