A extensão inotify expõe as funções inotify inotify_init(), inotify_add_watch() e inotify_rm_watch().
Como a função C inotify_init() retorna um descritor de arquivo, a inotify_init() do PHP retorna um recurso de stream, utilizável com funções de stream padrão, como stream_select(), stream_set_blocking() e fclose(). inotify_read() substitui a forma C de ler eventos inotify.