git: nvmm: Improve OS independence

Aaron LI aly at crater.dragonflybsd.org
Sat Oct 3 07:05:12 PDT 2026


commit 3bfa046d4c32c34f9a3bf06e763d37d78db0b0dd
Author: Aaron LI <aly at aaronly.me>
Date:   Sat Oct 3 13:55:49 2026 +0800

    nvmm: Improve OS independence
    
    * Add os_copy_from_user() and os_copy_to_user() helpers.
    * Split os_vmobj_map() into os_vmobj_map_{user,kern}(), which are the
      same for DragonFly and NetBSD; this helps the Haiku port.
    
    Obtained-from: NVMM Reference Implementation

Summary of changes:
 sys/dev/virtual/nvmm/nvmm.c           | 16 ++++++++--------
 sys/dev/virtual/nvmm/nvmm_dragonfly.c | 14 ++++++++++++--
 sys/dev/virtual/nvmm/nvmm_netbsd.c    | 14 ++++++++++++--
 sys/dev/virtual/nvmm/nvmm_os.h        | 12 ++++++++++--
 4 files changed, 42 insertions(+), 14 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/3bfa046d4c32c34f9a3bf06e763d37d78db0b0dd


-- 
DragonFly BSD source repository


More information about the Commits mailing list