git: DragonFly_RELEASE_5_8 kernel/mmap_single: Pass a_fp properly into the *_mmap_single dev op.

Sascha Wildner swildner at crater.dragonflybsd.org
Thu Dec 31 08:58:07 PST 2020


commit e0e03f5f9c39c9b5341bd027eaa921e98cf199fd
Author: Sascha Wildner <saw at online.de>
Date:   Wed Dec 9 20:31:20 2020 +0100

    kernel/mmap_single: Pass a_fp properly into the *_mmap_single dev op.
    
    Follow-up to 8c530b23e3584f72dc8c660b3816187017eeeb6b which passed NULL
    always.
    
    Nothing is broken because of this at the moment but it will be useful
    for drivers that want to access per-fp private data (with for example
    devfs_get_cdevpriv()) from their blah_mmap_single() dev_ops function.
    
    OK'd-by: dillon

Summary of changes:
 sys/dev/drm/drm_bufs.c  | 4 ++--
 sys/kern/imgact_gzip.c  | 7 ++++---
 sys/kern/kern_fp.c      | 2 +-
 sys/libprop/prop_kern.c | 2 +-
 sys/vm/vm_extern.h      | 3 ++-
 sys/vm/vm_mmap.c        | 7 ++++---
 6 files changed, 14 insertions(+), 11 deletions(-)

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


-- 
DragonFly BSD source repository


More information about the Commits mailing list