Function inotify::ffi::inotify_add_watch [] [src]

pub unsafe extern fn inotify_add_watch(fd: c_int, pathname: *const c_char, mask: uint32_t) -> c_int

Manipulates the "watch list" associated with an inotify instance.

Each item ("watch") in the watch list specifies the pathname of a file or directory, along with some set of events that the kernel should monitor for the file referred to by that pathname.

This function either creates a new watch, or modifies an existing one.