Very low-level ctypes-based interface to Linux inotify(7).
ctypes and a version of libc which supports inotify system calls are required.
Class | INotifyError | Unify all the possible exceptions that can be raised by the INotify API. |
Function | init | Create an inotify instance and return the associated file descriptor. |
Function | add | Add a watch for the given path to the inotify file descriptor, and return the watch descriptor. |
Function | remove | Remove the given watch descriptor from the inotify file descriptor. |
Function | initializeModule | Initialize the module, checking if the expected APIs exist and setting the argtypes and restype for inotify_init , inotify_add_watch , and inotify_rm_watch . |
Variable | name | Undocumented |
Variable | libc | Undocumented |
Create an inotify instance and return the associated file descriptor.
Returns | Undocumented (type: int ) |
Add a watch for the given path to the inotify file descriptor, and return the watch descriptor.
Parameters | fd | The file descriptor returned by libc.inotify_init . (type: int ) |
path | The path to watch via inotify. (type: FilePath ) | |
mask | Bitmask specifying the events that inotify should monitor. (type: int ) | |
Returns | Undocumented (type: int ) |
Initialize the module, checking if the expected APIs exist and setting the argtypes and restype for inotify_init
, inotify_add_watch
, and inotify_rm_watch
.
Parameters | libc | Undocumented (type: ctypes.CDLL ) |