From Reliable Tortoise, 5 Years ago, written in Plain Text.
Embed
  1.    inotify events
  2.        The inotify_add_watch(2) mask argument and the mask field of the inotify_event structure returned when read(2)ing an  inotify
  3.        file descriptor are both bit masks identifying inotify events.  The following bits can be specified in mask when calling ino‐
  4.        tify_add_watch(2) and may be returned in the mask field returned by read(2):
  5.  
  6.            IN_ACCESS (+)
  7.                   File was accessed (e.g., read(2), execve(2)).
  8.  
  9.            IN_ATTRIB (*)
  10.                   Metadata changed—for example, permissions (e.g., chmod(2)), timestamps (e.g., utimensat(2)),  extended  attributes
  11.                   (setxattr(2)),  link count (since Linux 2.6.25; e.g., for the target of link(2) and for unlink(2)), and user/group
  12.                   ID (e.g., chown(2)).
  13.  
  14.            IN_CLOSE_WRITE (+)
  15.                   File opened for writing was closed.
  16.  
  17.            IN_CLOSE_NOWRITE (*)
  18.                   File or directory not opened for writing was closed.
  19.  
  20.            IN_CREATE (+)
  21.                   File/directory created in watched directory (e.g., open(2) O_CREAT, mkdir(2), link(2), symlink(2),  bind(2)  on  a
  22.                   UNIX domain socket).
  23.  
  24.            IN_DELETE (+)
  25.                   File/directory deleted from watched directory.
  26.  
  27.            IN_DELETE_SELF
  28.                   Watched  file/directory  was itself deleted.  (This event also occurs if an object is moved to another filesystem,
  29.                   since mv(1) in effect copies the file to the other filesystem and then deletes it from the  original  filesystem.)
  30.                   In addition, an IN_IGNORED event will subsequently be generated for the watch descriptor.
  31.  
  32.            IN_MODIFY (+)
  33.                   File was modified (e.g., write(2), truncate(2)).
  34.  
  35.            IN_MOVE_SELF
  36.                   Watched file/directory was itself moved.
  37.  
  38.            IN_MOVED_FROM (+)
  39.                   Generated for the directory containing the old filename when a file is renamed.
  40.  
  41.            IN_MOVED_TO (+)
  42.                   Generated for the directory containing the new filename when a file is renamed.
  43.  
  44.            IN_OPEN (*)
  45.                   File or directory was opened.
  46.  
  47.