NetBSD/sys/fs/sysvbfs
thorpej 982ae832c3 Overhaul of the EVFILT_VNODE kevent(2) filter:
- Centralize vnode kevent handling in the VOP_*() wrappers, rather than
  forcing each individual file system to deal with it (except VOP_RENAME(),
  because VOP_RENAME() is a mess and we currently have 2 different ways
  of handling it; at least it's reasonably well-centralized in the "new"
  way).
- Add support for NOTE_OPEN, NOTE_CLOSE, NOTE_CLOSE_WRITE, and NOTE_READ,
  compatible with the same events in FreeBSD.
- Track which kevent notifications clients are interested in receiving
  to avoid doing work for events no one cares about (avoiding, e.g.
  taking locks and traversing the klist to send a NOTE_WRITE when
  someone is merely watching for a file to be deleted, for example).

In support of the above:

- Add support in vnode_if.sh for specifying PRE- and POST-op handlers,
  to be invoked before and after vop_pre() and vop_post(), respectively.
  Basic idea from FreeBSD, but implemented differently.
- Add support in vnode_if.sh for specifying CONTEXT fields in the
  vop_*_args structures.  These context fields are used to convey information
  between the file system VOP function and the VOP wrapper, but do not
  occupy an argument slot in the VOP_*() call itself.  These context fields
  are initialized and subsequently interpreted by PRE- and POST-op handlers.
- Version VOP_REMOVE(), uses the a context field for the file system to report
  back the resulting link count of the target vnode.  Return this in tmpfs,
  udf, nfs, chfs, ext2fs, lfs, and ufs.

NetBSD 9.99.92.
2021-10-20 03:08:16 +00:00
..
Makefile
bfs.c in many device attach paths, allocate memory with M_WAITOK instead of M_NOWAIT 2019-11-10 21:16:21 +00:00
bfs.h
bfs_sysvbfs.c
files.sysvbfs
sysvbfs.c - Add a new vnode op: VOP_PARSEPATH. 2021-06-29 22:34:05 +00:00
sysvbfs.h
sysvbfs_args.h
sysvbfs_vfsops.c VFS_VGET(), VFS_ROOT(), VFS_FHTOVP(): give them a "int lktype" argument, to 2020-01-17 20:08:06 +00:00
sysvbfs_vnops.c Overhaul of the EVFILT_VNODE kevent(2) filter: 2021-10-20 03:08:16 +00:00