HomeFreeBSD

linuxkpi: Add `pin_user_pages*()` functions

Description

linuxkpi: Add pin_user_pages*() functions

They were defined in the i915 DRM driver. I move the code in linuxkpi so
it can benefit other drivers.

Reviewed by: manu
Approved by: manu
Differential Revision: https://reviews.freebsd.org/D38078

Details

Provenance
dumbbellAuthored on Jan 10 2023, 10:09 AM
Reviewer
manu
Differential Revision
D38078: linuxkpi: Add `pin_user_pages*()` functions
Parents
rG3e0856b63fe0: linuxkpi: Fix `sg_alloc_table_from_pages()` to have the same API as Linux
Branches
Unknown
Tags
Unknown