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

(cherry picked from commit 3d751b7a719fd7934e902a34285ce4e5bbaf1e16)

Details

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