Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros
fanotify.h File Reference
#include <linux/types.h>

Go to the source code of this file.

Data Structures

struct  fanotify_event_metadata
 
struct  fanotify_response
 

Macros

#define FAN_ACCESS   0x00000001 /* File was accessed */
 
#define FAN_MODIFY   0x00000002 /* File was modified */
 
#define FAN_CLOSE_WRITE   0x00000008 /* Writtable file closed */
 
#define FAN_CLOSE_NOWRITE   0x00000010 /* Unwrittable file closed */
 
#define FAN_OPEN   0x00000020 /* File was opened */
 
#define FAN_Q_OVERFLOW   0x00004000 /* Event queued overflowed */
 
#define FAN_OPEN_PERM   0x00010000 /* File open in perm check */
 
#define FAN_ACCESS_PERM   0x00020000 /* File accessed in perm check */
 
#define FAN_ONDIR   0x40000000 /* event occurred against dir */
 
#define FAN_EVENT_ON_CHILD   0x08000000 /* interested in child events */
 
#define FAN_CLOSE   (FAN_CLOSE_WRITE | FAN_CLOSE_NOWRITE) /* close */
 
#define FAN_CLOEXEC   0x00000001
 
#define FAN_NONBLOCK   0x00000002
 
#define FAN_CLASS_NOTIF   0x00000000
 
#define FAN_CLASS_CONTENT   0x00000004
 
#define FAN_CLASS_PRE_CONTENT   0x00000008
 
#define FAN_ALL_CLASS_BITS
 
#define FAN_UNLIMITED_QUEUE   0x00000010
 
#define FAN_UNLIMITED_MARKS   0x00000020
 
#define FAN_ALL_INIT_FLAGS
 
#define FAN_MARK_ADD   0x00000001
 
#define FAN_MARK_REMOVE   0x00000002
 
#define FAN_MARK_DONT_FOLLOW   0x00000004
 
#define FAN_MARK_ONLYDIR   0x00000008
 
#define FAN_MARK_MOUNT   0x00000010
 
#define FAN_MARK_IGNORED_MASK   0x00000020
 
#define FAN_MARK_IGNORED_SURV_MODIFY   0x00000040
 
#define FAN_MARK_FLUSH   0x00000080
 
#define FAN_ALL_MARK_FLAGS
 
#define FAN_ALL_EVENTS
 
#define FAN_ALL_PERM_EVENTS
 
#define FAN_ALL_OUTGOING_EVENTS
 
#define FANOTIFY_METADATA_VERSION   3
 
#define FAN_ALLOW   0x01
 
#define FAN_DENY   0x02
 
#define FAN_NOFD   -1
 
#define FAN_EVENT_METADATA_LEN   (sizeof(struct fanotify_event_metadata))
 
#define FAN_EVENT_NEXT(meta, len)
 
#define FAN_EVENT_OK(meta, len)
 

Macro Definition Documentation

#define FAN_ACCESS   0x00000001 /* File was accessed */

Definition at line 7 of file fanotify.h.

#define FAN_ACCESS_PERM   0x00020000 /* File accessed in perm check */

Definition at line 16 of file fanotify.h.

#define FAN_ALL_CLASS_BITS
Value:
FAN_CLASS_PRE_CONTENT)

Definition at line 33 of file fanotify.h.

#define FAN_ALL_EVENTS
Value:
FAN_MODIFY |\
FAN_CLOSE |\
FAN_OPEN)

Definition at line 67 of file fanotify.h.

#define FAN_ALL_INIT_FLAGS
Value:
FAN_ALL_CLASS_BITS | FAN_UNLIMITED_QUEUE |\
FAN_UNLIMITED_MARKS)

Definition at line 39 of file fanotify.h.

#define FAN_ALL_MARK_FLAGS
Value:
FAN_MARK_REMOVE |\
FAN_MARK_DONT_FOLLOW |\
FAN_MARK_ONLYDIR |\
FAN_MARK_MOUNT |\
FAN_MARK_IGNORED_MASK |\
FAN_MARK_IGNORED_SURV_MODIFY |\
FAN_MARK_FLUSH)

Definition at line 53 of file fanotify.h.

#define FAN_ALL_OUTGOING_EVENTS
Value:
FAN_ALL_PERM_EVENTS |\
FAN_Q_OVERFLOW)

Definition at line 78 of file fanotify.h.

#define FAN_ALL_PERM_EVENTS
Value:
FAN_ACCESS_PERM)

Definition at line 75 of file fanotify.h.

#define FAN_ALLOW   0x01

Definition at line 100 of file fanotify.h.

#define FAN_CLASS_CONTENT   0x00000004

Definition at line 31 of file fanotify.h.

#define FAN_CLASS_NOTIF   0x00000000

Definition at line 30 of file fanotify.h.

#define FAN_CLASS_PRE_CONTENT   0x00000008

Definition at line 32 of file fanotify.h.

#define FAN_CLOEXEC   0x00000001

Definition at line 26 of file fanotify.h.

#define FAN_CLOSE   (FAN_CLOSE_WRITE | FAN_CLOSE_NOWRITE) /* close */

Definition at line 23 of file fanotify.h.

#define FAN_CLOSE_NOWRITE   0x00000010 /* Unwrittable file closed */

Definition at line 10 of file fanotify.h.

#define FAN_CLOSE_WRITE   0x00000008 /* Writtable file closed */

Definition at line 9 of file fanotify.h.

#define FAN_DENY   0x02

Definition at line 101 of file fanotify.h.

#define FAN_EVENT_METADATA_LEN   (sizeof(struct fanotify_event_metadata))

Definition at line 106 of file fanotify.h.

#define FAN_EVENT_NEXT (   meta,
  len 
)
Value:
((len) -= (meta)->event_len, \
(struct fanotify_event_metadata*)(((char *)(meta)) + \

Definition at line 108 of file fanotify.h.

#define FAN_EVENT_OK (   meta,
  len 
)
Value:
(long)(meta)->event_len >= (long)FAN_EVENT_METADATA_LEN && \
(long)(meta)->event_len <= (long)(len))

Definition at line 112 of file fanotify.h.

#define FAN_EVENT_ON_CHILD   0x08000000 /* interested in child events */

Definition at line 20 of file fanotify.h.

#define FAN_MARK_ADD   0x00000001

Definition at line 44 of file fanotify.h.

#define FAN_MARK_DONT_FOLLOW   0x00000004

Definition at line 46 of file fanotify.h.

#define FAN_MARK_FLUSH   0x00000080

Definition at line 51 of file fanotify.h.

#define FAN_MARK_IGNORED_MASK   0x00000020

Definition at line 49 of file fanotify.h.

#define FAN_MARK_IGNORED_SURV_MODIFY   0x00000040

Definition at line 50 of file fanotify.h.

#define FAN_MARK_MOUNT   0x00000010

Definition at line 48 of file fanotify.h.

#define FAN_MARK_ONLYDIR   0x00000008

Definition at line 47 of file fanotify.h.

#define FAN_MARK_REMOVE   0x00000002

Definition at line 45 of file fanotify.h.

#define FAN_MODIFY   0x00000002 /* File was modified */

Definition at line 8 of file fanotify.h.

#define FAN_NOFD   -1

Definition at line 103 of file fanotify.h.

#define FAN_NONBLOCK   0x00000002

Definition at line 27 of file fanotify.h.

#define FAN_ONDIR   0x40000000 /* event occurred against dir */

Definition at line 18 of file fanotify.h.

#define FAN_OPEN   0x00000020 /* File was opened */

Definition at line 11 of file fanotify.h.

#define FAN_OPEN_PERM   0x00010000 /* File open in perm check */

Definition at line 15 of file fanotify.h.

#define FAN_Q_OVERFLOW   0x00004000 /* Event queued overflowed */

Definition at line 13 of file fanotify.h.

#define FAN_UNLIMITED_MARKS   0x00000020

Definition at line 37 of file fanotify.h.

#define FAN_UNLIMITED_QUEUE   0x00000010

Definition at line 36 of file fanotify.h.

#define FANOTIFY_METADATA_VERSION   3

Definition at line 82 of file fanotify.h.