freebsd-dev/sys/fs/devfs
Konstantin Belousov cccac8a1ef Make it possible for the cdevsw d_close() driver method to detect last
close and close due to revoke(2)-like operation.

A new FLASTCLOSE flag indicates that this is last close.  FREVOKE is
set for revokes, and FNONBLOCK is also set, same as is already done
for VOP_CLOSE() call from vgonel().

The flags reuse user open(2) flags which are never stored in f_flag,
to not consume bit space in the ABI visible way.  Assert this with the
static check.

Requested and reviewed by:	bde
Sponsored by:	The FreeBSD Foundation
MFC after:	2 weeks
2015-12-22 20:37:34 +00:00
..
devfs_devs.c Disable timestamping on devfs read/write operations by default. 2015-03-21 01:14:11 +00:00
devfs_dir.c
devfs_int.h Stop enforcing additional reference on all cdevs, which was introduced 2015-01-19 17:36:52 +00:00
devfs_rule.c make path matching in devfs rules consistent and sane (and safer) 2013-07-26 14:25:58 +00:00
devfs_vfsops.c Make it possible to forcibly unmount devfs. 2015-08-24 14:04:44 +00:00
devfs_vnops.c Make it possible for the cdevsw d_close() driver method to detect last 2015-12-22 20:37:34 +00:00
devfs.h