Konstantin Belousov a720b31c2a Allow consumer to customize physical pager.
Add support for user-supplied callbacks into phys pager operations,
providing custom getpages(), haspage(), and populate() methods
implementations.  Pager stores user data ptr/val in the object to
provide context.

Add phys_pager_allocate() helper that takes user ops table as one of
the arguments.

Current code for these methods is moved to the 'default' ops table,
assigned automatically when vm_pager_alloc() is used.

Reviewed by:	markj
Tested by:	pho
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
Differential revision:	https://reviews.freebsd.org/D24652
2020-09-09 00:00:43 +00:00
..
2020-09-07 06:39:00 +00:00
2020-09-08 15:36:38 +00:00
2020-04-24 01:27:25 +00:00
2020-09-08 13:24:44 +00:00
2020-09-04 22:25:14 +00:00
2020-06-04 17:20:58 +00:00
2020-09-08 17:47:30 +00:00
2020-08-31 16:17:28 +00:00