Home
last modified time | relevance | path

Searched refs:inotify_fd (Results 1 - 10 of 10) sorted by relevance

/third_party/eudev/src/udev/
H A Dudev-watch.c33 static int inotify_fd = -1; variable
40 inotify_fd = inotify_init1(IN_CLOEXEC); in udev_watch_init()
41 if (inotify_fd < 0) in udev_watch_init()
43 return inotify_fd; in udev_watch_init()
50 if (inotify_fd < 0) in udev_watch_restore()
100 if (inotify_fd < 0) in udev_watch_begin()
104 wd = inotify_add_watch(inotify_fd, udev_device_get_devnode(dev), IN_CLOSE_WRITE); in udev_watch_begin()
107 inotify_fd, udev_device_get_devnode(dev), IN_CLOSE_WRITE); in udev_watch_begin()
125 if (inotify_fd < 0) in udev_watch_end()
133 inotify_rm_watch(inotify_fd, w in udev_watch_end()
[all...]
/third_party/ltp/testcases/kernel/syscalls/inotify/
H A Dinotify11.c62 int inotify_fd; in verify_inotify() local
64 inotify_fd = SAFE_MYINOTIFY_INIT(); in verify_inotify()
65 SAFE_MYINOTIFY_ADD_WATCH(inotify_fd, ".", IN_DELETE); in verify_inotify()
69 SAFE_CLOSE(inotify_fd); in verify_inotify()
77 len = SAFE_READ(0, inotify_fd, event_buf, EVENT_BUF_LEN); in verify_inotify()
99 SAFE_CLOSE(inotify_fd); in verify_inotify()
H A Dinotify09.c72 int inotify_fd; in verify_inotify() local
75 inotify_fd = SAFE_MYINOTIFY_INIT1(0); in verify_inotify()
79 wd = SAFE_MYINOTIFY_ADD_WATCH(inotify_fd, FNAME, IN_MODIFY); in verify_inotify()
82 wd = myinotify_rm_watch(inotify_fd, wd); in verify_inotify()
87 SAFE_CLOSE(inotify_fd); in verify_inotify()
H A Dinotify06.c62 int inotify_fd, fd; in verify_inotify() local
78 inotify_fd = SAFE_MYINOTIFY_INIT1(O_NONBLOCK); in verify_inotify()
87 myinotify_add_watch(inotify_fd, names[i], IN_MODIFY); in verify_inotify()
89 SAFE_CLOSE(inotify_fd); in verify_inotify()
/third_party/pulseaudio/src/modules/
H A Dmodule-udev-detect.c80 int inotify_fd; member
645 if (u->inotify_fd >= 0) { in inotify_cb()
646 pa_close(u->inotify_fd); in inotify_cb()
647 u->inotify_fd = -1; in inotify_cb()
654 if (u->inotify_fd >= 0) in setup_inotify()
657 if ((u->inotify_fd = inotify_init1(IN_CLOEXEC|IN_NONBLOCK)) < 0) { in setup_inotify()
662 r = inotify_add_watch(u->inotify_fd, "/dev/snd", IN_ATTRIB|IN_CLOSE_WRITE|IN_DELETE_SELF|IN_MOVE_SELF); in setup_inotify()
667 pa_close(u->inotify_fd); in setup_inotify()
668 u->inotify_fd = -1; in setup_inotify()
687 pa_assert_se(u->inotify_io = u->core->mainloop->io_new(u->core->mainloop, u->inotify_fd, PA_IO_EVENT_INPU in setup_inotify()
[all...]
/third_party/node/deps/uv/src/unix/
H A Dlinux-inotify.c71 if (loop->inotify_fd != -1) in init_inotify()
78 loop->inotify_fd = fd; in init_inotify()
79 uv__io_init(&loop->inotify_read_watcher, uv__inotify_read, loop->inotify_fd); in init_inotify()
87 /* Open the inotify_fd, and re-arm all the inotify watchers. */ in uv__inotify_fork()
162 inotify_rm_watch(loop->inotify_fd, w->wd); in maybe_free_watcher_list()
183 size = read(loop->inotify_fd, buf, sizeof(buf)); in uv__inotify_read()
275 wd = inotify_add_watch(handle->loop->inotify_fd, path, events); in uv_fs_event_start()
H A Dlinux-core.c87 loop->inotify_fd = -1; in uv__platform_loop_init()
113 if (loop->inotify_fd == -1) return; in uv__platform_loop_delete()
115 uv__close(loop->inotify_fd); in uv__platform_loop_delete()
116 loop->inotify_fd = -1; in uv__platform_loop_delete()
/third_party/node/deps/uv/include/uv/
H A Dlinux.h28 int inotify_fd; \
/third_party/libuv/include/uv/
H A Dlinux.h28 int inotify_fd; \
/third_party/libuv/src/unix/
H A Dlinux.c668 loop->inotify_fd = -1; in uv__platform_loop_init()
713 if (loop->inotify_fd != -1) { in uv__platform_loop_delete()
715 uv__close(loop->inotify_fd); in uv__platform_loop_delete()
716 loop->inotify_fd = -1; in uv__platform_loop_delete()
2363 if (loop->inotify_fd != -1) in init_inotify()
2370 loop->inotify_fd = fd; in init_inotify()
2371 uv__io_init(&loop->inotify_read_watcher, uv__inotify_read, loop->inotify_fd); in init_inotify()
2379 /* Open the inotify_fd, and re-arm all the inotify watchers. */ in uv__inotify_fork()
2456 inotify_rm_watch(loop->inotify_fd, w->wd); in maybe_free_watcher_list()
2478 size = read(loop->inotify_fd, bu in uv__inotify_read()
[all...]

Completed in 8 milliseconds