/src/sys/rump/net/lib/libshmif/ |
shmif_user.c | 47 * On BSD we use kqueue, on Linux we use inotify. The underlying 108 #include <sys/inotify.h> 118 int inotify, rv; local in function:rumpcomp_shmif_watchsetup 120 inotify = *inotifyp; 121 if (inotify == -1) { 122 inotify = inotify_init(); 123 if (inotify == -1) { 129 /* ok, need to map fd into path for inotify */ 138 close(inotify); 143 if (inotify_add_watch(inotify, linkbuf, IN_MODIFY) == -1) [all...] |
shmif_user.c | 47 * On BSD we use kqueue, on Linux we use inotify. The underlying 108 #include <sys/inotify.h> 118 int inotify, rv; local in function:rumpcomp_shmif_watchsetup 120 inotify = *inotifyp; 121 if (inotify == -1) { 122 inotify = inotify_init(); 123 if (inotify == -1) { 129 /* ok, need to map fd into path for inotify */ 138 close(inotify); 143 if (inotify_add_watch(inotify, linkbuf, IN_MODIFY) == -1) [all...] |
/src/sys/compat/linux/common/ |
linux_inotify.c | 64 * inotify(2). This interface allows the user to get file system 102 int ifd_kqfd; /* kqueue fd used by this inotify */ 125 uint32_t inotify; member in struct:inotify_kevent_mask_pair 175 .fo_name = "inotify", 190 { .inotify = LINUX_IN_ATTRIB, .kevent = NOTE_ATTRIB, }, 191 { .inotify = LINUX_IN_CLOSE_NOWRITE, .kevent = NOTE_CLOSE, }, 192 { .inotify = LINUX_IN_OPEN, .kevent = NOTE_OPEN, }, 193 { .inotify = LINUX_IN_MOVE_SELF, .kevent = NOTE_RENAME, }, 199 { .inotify = LINUX_IN_ACCESS, .kevent = NOTE_READ, }, 200 { .inotify = LINUX_IN_ATTRIB, .kevent = NOTE_ATTRIB|NOTE_LINK, } [all...] |
linux_inotify.c | 64 * inotify(2). This interface allows the user to get file system 102 int ifd_kqfd; /* kqueue fd used by this inotify */ 125 uint32_t inotify; member in struct:inotify_kevent_mask_pair 175 .fo_name = "inotify", 190 { .inotify = LINUX_IN_ATTRIB, .kevent = NOTE_ATTRIB, }, 191 { .inotify = LINUX_IN_CLOSE_NOWRITE, .kevent = NOTE_CLOSE, }, 192 { .inotify = LINUX_IN_OPEN, .kevent = NOTE_OPEN, }, 193 { .inotify = LINUX_IN_MOVE_SELF, .kevent = NOTE_RENAME, }, 199 { .inotify = LINUX_IN_ACCESS, .kevent = NOTE_READ, }, 200 { .inotify = LINUX_IN_ATTRIB, .kevent = NOTE_ATTRIB|NOTE_LINK, } [all...] |