Home
last modified time | relevance | path

Searched refs:inotify_fd (Results 1 – 8 of 8) sorted by relevance

/third_party/eudev/src/udev/
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, wd); in udev_watch_end()
[all …]
/third_party/ltp/testcases/kernel/syscalls/inotify/
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()
Dinotify06.c53 int inotify_fd, fd; in verify_inotify() local
70 inotify_fd = SAFE_MYINOTIFY_INIT1(O_NONBLOCK); in verify_inotify()
79 myinotify_add_watch(inotify_fd, names[i], IN_MODIFY); in verify_inotify()
81 SAFE_CLOSE(inotify_fd); in verify_inotify()
/third_party/pulseaudio/src/modules/
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_S… 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_EVE… in setup_inotify()
[all …]
/third_party/libuv/src/unix/
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()
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()
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/flutter/skia/third_party/externals/sdl/src/core/linux/
DSDL_ibus.c48 int inotify_fd = -1, inotify_wd = -1; variable
414 if (inotify_fd > 0 && inotify_wd > 0) { in IBus_CheckConnection()
416 ssize_t readsize = read(inotify_fd, buf, sizeof(buf)); in IBus_CheckConnection()
475 if (inotify_fd < 0) { in SDL_IBus_Init()
476 inotify_fd = inotify_init(); in SDL_IBus_Init()
477 fcntl(inotify_fd, F_SETFL, O_NONBLOCK); in SDL_IBus_Init()
485 inotify_wd = inotify_add_watch(inotify_fd, addr_file, IN_CREATE | IN_MODIFY); in SDL_IBus_Init()
519 if (inotify_fd > 0 && inotify_wd > 0) { in SDL_IBus_Quit()
520 inotify_rm_watch(inotify_fd, inotify_wd); in SDL_IBus_Quit()
/third_party/libuv/include/uv/
Dlinux.h28 int inotify_fd; \