The 0x8000
corresponds to IN_IGNORED
. Its presence in the mask indicates that the inotify
watch had been removed because the file had been removed. Your editor probably removed the old file and put a new file in its place. Changing the file a second time had no effect because the watch had been removed.
The name is not being returned because you are not watching a directory.
From the inotify
man page.
The
name
field is only present when an event is returned for a file inside a watched directory; it identifies the file pathname relative to the watched directory....
IN_IGNORED -- Watch was removed explicitly (inotify_rm_watch(2)) or automatically (file was deleted, or file system was unmounted).