diff options
author | kib <kib@FreeBSD.org> | 2016-05-03 15:17:43 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2016-05-03 15:17:43 +0000 |
commit | 838f7d1304c723206899cd4965a1a8ba0761d68f (patch) | |
tree | 7218ce83f4cf8d64338a89b31295a32f6e5dc984 /sys/sys/event.h | |
parent | cacb7c41e21bf8ff9e1e931a5a98bef75389a4e3 (diff) | |
download | FreeBSD-src-838f7d1304c723206899cd4965a1a8ba0761d68f.zip FreeBSD-src-838f7d1304c723206899cd4965a1a8ba0761d68f.tar.gz |
Add EVFILT_VNODE open, read and close notifications.
While there, order EVFILT_VNODE notes descriptions alphabetically.
Based on submission, and tested by: Vladimir Kondratyev <wulf@cicgroup.ru>
MFC after: 2 weeks
Diffstat (limited to 'sys/sys/event.h')
-rw-r--r-- | sys/sys/event.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/sys/event.h b/sys/sys/event.h index 7897c81..5b54150 100644 --- a/sys/sys/event.h +++ b/sys/sys/event.h @@ -121,6 +121,12 @@ struct kevent { #define NOTE_LINK 0x0010 /* link count changed */ #define NOTE_RENAME 0x0020 /* vnode was renamed */ #define NOTE_REVOKE 0x0040 /* vnode access was revoked */ +#define NOTE_OPEN 0x0080 /* vnode was opened */ +#define NOTE_CLOSE 0x0100 /* file closed, fd did not + allowed write */ +#define NOTE_CLOSE_WRITE 0x0200 /* file closed, fd did allowed + write */ +#define NOTE_READ 0x0400 /* file was read */ /* * data/hint flags for EVFILT_PROC and EVFILT_PROCDESC, shared with userspace |