From: Lino Sanfilippo Date: Wed, 24 Nov 2010 17:22:09 +0000 (+0100) Subject: fanotify: Introduce FAN_NOFD X-Git-Tag: upstream/snapshot3+hdmi~12248^2~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e9a3854fd4ff3907e6c200a3980e19365ee695e9;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git fanotify: Introduce FAN_NOFD FAN_NOFD is used in fanotify events that do not provide an open file descriptor (like the overflow_event). Signed-off-by: Lino Sanfilippo Signed-off-by: Eric Paris --- diff --git a/include/linux/fanotify.h b/include/linux/fanotify.h index bdbf9bb..c732243 100644 --- a/include/linux/fanotify.h +++ b/include/linux/fanotify.h @@ -101,6 +101,8 @@ struct fanotify_response { /* Legit userspace responses to a _PERM event */ #define FAN_ALLOW 0x01 #define FAN_DENY 0x02 +/* No fd set in event */ +#define FAN_NOFD -1 /* Helper functions to deal with fanotify_event_metadata buffers */ #define FAN_EVENT_METADATA_LEN (sizeof(struct fanotify_event_metadata))