git: nvmm: Don't assume comm page size to be PAGE_SIZE

Aaron LI aly at crater.dragonflybsd.org
Tue Jul 20 16:30:34 PDT 2021


commit d8a7506105a94efa46aa081628a34fd465090a5d
Author: Aaron LI <aly at aaronly.me>
Date:   Mon Jul 12 22:37:55 2021 +0800

    nvmm: Don't assume comm page size to be PAGE_SIZE
    
    Don't assume the comm page size to be PAGE_SIZE but add the
    'NVMM_COMM_PAGE_SIZE' macro to determine the size.  So the code is
    now independent to comm page size and thus it can be easily extended
    in the future.

Summary of changes:
 sys/dev/virtual/nvmm/nvmm.c          | 18 ++++++++++--------
 sys/dev/virtual/nvmm/nvmm.h          |  5 -----
 sys/dev/virtual/nvmm/nvmm_internal.h |  3 +++
 3 files changed, 13 insertions(+), 13 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/d8a7506105a94efa46aa081628a34fd465090a5d


-- 
DragonFly BSD source repository



More information about the Commits mailing list