devfs: Add a vnode pointer argument to dev_dopen()

Operating Systems / DragonFlyBSD - François Tigeot [wolfpond.org] - 3 November 2019 21:00 EST

- Initialize fp->f_data with it when possible

- drm drivers expect to be able to access vnode information in their open() function

3064590a56 devfs: Add a vnode pointer argument to dev_dopen()
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(-)

Upstream: gitweb.dragonflybsd.org


  • Share