nvmm: Port to DragonFly #15: anonymous object management
authorAaron LI <aly@aaronly.me>
Wed, 19 May 2021 10:52:22 +0000 (18:52 +0800)
committerAaron LI <aly@aaronly.me>
Tue, 20 Jul 2021 23:28:21 +0000 (07:28 +0800)
commitb0d5436ed006f40d4b0e445281c4236be3d0fafd
tree23fb8cf63a615dd423ea5755b28aa59f50395f80
parent990cf76b2a875d261b5d27ad7653d4779010c1b1
nvmm: Port to DragonFly #15: anonymous object management

Implement compat code for NetBSD anonymous object management:
uao_create(), uao_reference() and uao_detach().

The created object should be pageable by default, for example, the
object of guest physical memory.  So choose the default pager to create
the anonymous object.

If the object needs to be wired (e.g., the object for communicating
between kernel and userland), the uvm_map_pageable() can be called to
wire the object.
sys/dev/virtual/nvmm/nvmm_compat.h