内容简介
#include <sys/inotify.h>int inotify_init(void)
描述
inotify_init() 初始化一个新的inotify实例,并返回一个新的inotify的事件队列相关的文件描述符。返回值
On success, inotify_init() returns a new file descriptor, or -1 if an error occurred (in which case, errno is set appropriately).错误
标签 | 描述 |
---|---|
EMFILE | The user limit on the total number of inotify instances has been reached. |
ENFILE | The system limit on the total number of file descriptors has been reached. |
ENOMEM | Insufficient kernel memory is available. |
历史
Inotify was merged into the 2.6.13 Linux kernel.遵循于
This system call is Linux specific.另请参阅