freebsd-skq/sys/fs/devfs
jhb 3fab33edd0 The changes that introduced fo_mmap() treated all character device
mappings as if MAP_SHARED was always present since in general MAP_PRIVATE
is not permitted for character devices.  However, there is one exception
in that MAP_PRIVATE mappings are permitted for /dev/zero.

Only require a writable file descriptor (FWRITE) for shared, writable
mappings of character devices.  vm_mmap_cdev() will reject any private
mappings for other devices.

Reviewed by:	kib
Reported by:	sbruno (broke qemu cross-builds), peter
Differential Revision:	https://reviews.freebsd.org/D3316
2015-08-06 16:50:37 +00:00
..
devfs_devs.c
devfs_dir.c
devfs_int.h
devfs_rule.c
devfs_vfsops.c
devfs_vnops.c The changes that introduced fo_mmap() treated all character device 2015-08-06 16:50:37 +00:00
devfs.h