linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* pin_user_pages supports NULL pages arguments?
@ 2022-02-10 19:17 Minchan Kim
  2022-02-10 19:20 ` John Hubbard
  0 siblings, 1 reply; 5+ messages in thread
From: Minchan Kim @ 2022-02-10 19:17 UTC (permalink / raw)
  To: John Hubbard; +Cc: linux-mm, LKML

 * pin_user_pages() - pin user pages in memory for use by other devices
 < snip >
 * @pages:      array that receives pointers to the pages pinned.
 *              Should be at least nr_pages long. Or NULL, if caller
 *              only intends to ensure the pages are faulted in.

pin_user_pages(,, pages = NULL, );
  gup_flags |= FOLL_PIN
  __get_user_pages_locked
    __get_user_pages
      ..
      VM_BUG_ON(!!pages != !!(gup_flags & (FOLL_GET | FOLL_PIN)));


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2022-02-10 21:17 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-02-10 19:17 pin_user_pages supports NULL pages arguments? Minchan Kim
2022-02-10 19:20 ` John Hubbard
2022-02-10 19:29   ` Minchan Kim
2022-02-10 20:20     ` John Hubbard
2022-02-10 21:17       ` Minchan Kim

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).