git: devfs: Add a vnode pointer argument to dev_dopen()

Francois Tigeot ftigeot at crater.dragonflybsd.org
Sun Nov 3 13:36:51 PST 2019


commit 3064590a56cdb0a770b12488f7701dda8784b4bd
Author: François Tigeot <ftigeot at wolfpond.org>
Date:   Sun Nov 3 22:00:19 2019 +0100

    devfs: Add a vnode pointer argument to dev_dopen()
    
    * Initialize fp->f_data with it when possible
    
    * drm drivers expect to be able to access vnode information in
      their open() function
    
    Reviewed-by: dillon

Summary of changes:
 sys/dev/disk/vn/vn.c        | 4 ++--
 sys/kern/kern_device.c      | 9 ++++++++-
 sys/kern/kern_shutdown.c    | 2 +-
 sys/kern/subr_disk.c        | 2 +-
 sys/kern/subr_diskiocom.c   | 2 +-
 sys/kern/subr_diskslice.c   | 2 +-
 sys/kern/tty_cons.c         | 2 +-
 sys/sys/device.h            | 4 +++-
 sys/vfs/devfs/devfs_vnops.c | 4 ++--
 9 files changed, 20 insertions(+), 11 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/3064590a56cdb0a770b12488f7701dda8784b4bd


-- 
DragonFly BSD source repository


More information about the Commits mailing list