git: kernel/mmap_single: Pass a_fp properly into the *_mmap_single dev op.
Sascha Wildner
swildner at crater.dragonflybsd.org
Wed Dec 9 11:31:40 PST 2020
commit 382849162380481a43b977a890313c5822ab8365
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/382849162380481a43b977a890313c5822ab8365
--
DragonFly BSD source repository
More information about the Commits
mailing list