Lines Matching refs:inode_data

126         LIST_HEAD(struct inode_data, inode_data_to_close);
162 static void event_gc_inode_data(sd_event *e, struct inode_data *d);
889 struct inode_data *inode_data; in source_disconnect() local
891 inode_data = s->inotify.inode_data; in source_disconnect()
892 if (inode_data) { in source_disconnect()
894 assert_se(inotify_data = inode_data->inotify_data); in source_disconnect()
897 LIST_REMOVE(inotify.by_inode_data, inode_data->event_sources, s); in source_disconnect()
898 s->inotify.inode_data = NULL; in source_disconnect()
917 event_gc_inode_data(s->event, inode_data); in source_disconnect()
1036 assert(s->inotify.inode_data); in source_set_pending()
1037 assert(s->inotify.inode_data->inotify_data); in source_set_pending()
1040 s->inotify.inode_data->inotify_data->n_pending ++; in source_set_pending()
1042 assert(s->inotify.inode_data->inotify_data->n_pending > 0); in source_set_pending()
1043 s->inotify.inode_data->inotify_data->n_pending --; in source_set_pending()
1771 static int inode_data_compare(const struct inode_data *x, const struct inode_data *y) { in inode_data_compare()
1784 static void inode_data_hash_func(const struct inode_data *d, struct siphash *state) { in inode_data_hash_func()
1791 DEFINE_PRIVATE_HASH_OPS(inode_data_hash_ops, struct inode_data, inode_data_hash_func, inode_data_co…
1795 struct inode_data *d) { in event_free_inode_data()
1856 struct inode_data *d) { in event_gc_inode_data()
1879 struct inode_data **ret) { in event_make_inode_data()
1881 struct inode_data *d, key; in event_make_inode_data()
1887 key = (struct inode_data) { in event_make_inode_data()
1904 d = new(struct inode_data, 1); in event_make_inode_data()
1908 *d = (struct inode_data) { in event_make_inode_data()
1928 static uint32_t inode_data_determine_mask(struct inode_data *d) { in inode_data_determine_mask()
1953 static int inode_data_realize_watch(sd_event *e, struct inode_data *d) { in inode_data_realize_watch()
2011 struct inode_data *inode_data = NULL; in event_add_inotify_fd_internal() local
2047 r = event_make_inode_data(e, inotify_data, st.st_dev, st.st_ino, &inode_data); in event_add_inotify_fd_internal()
2055 if (inode_data->fd < 0) { in event_add_inotify_fd_internal()
2057 inode_data->fd = TAKE_FD(donated_fd); in event_add_inotify_fd_internal()
2059 inode_data->fd = fcntl(fd, F_DUPFD_CLOEXEC, 3); in event_add_inotify_fd_internal()
2060 if (inode_data->fd < 0) { in event_add_inotify_fd_internal()
2062 event_gc_inode_data(e, inode_data); in event_add_inotify_fd_internal()
2067 LIST_PREPEND(to_close, e->inode_data_to_close, inode_data); in event_add_inotify_fd_internal()
2071 LIST_PREPEND(inotify.by_inode_data, inode_data->event_sources, s); in event_add_inotify_fd_internal()
2072 s->inotify.inode_data = inode_data; in event_add_inotify_fd_internal()
2075 r = inode_data_realize_watch(e, inode_data); in event_add_inotify_fd_internal()
2314 struct inode_data *new_inode_data = NULL; in sd_event_source_set_priority()
2325 struct inode_data *old_inode_data; in sd_event_source_set_priority()
2327 assert(s->inotify.inode_data); in sd_event_source_set_priority()
2328 old_inode_data = s->inotify.inode_data; in sd_event_source_set_priority()
2360 s->inotify.inode_data = new_inode_data; in sd_event_source_set_priority()
2368 s->inotify.inode_data = old_inode_data; in sd_event_source_set_priority()
3454 struct inode_data *inode_data; in event_inotify_data_process() local
3459 HASHMAP_FOREACH(inode_data, d->inodes) in event_inotify_data_process()
3460 LIST_FOREACH(inotify.by_inode_data, s, inode_data->event_sources) { in event_inotify_data_process()
3470 struct inode_data *inode_data; in event_inotify_data_process() local
3476 inode_data = hashmap_remove(d->wd, INT_TO_PTR(d->buffer.ev.wd)); in event_inotify_data_process()
3477 if (!inode_data) { in event_inotify_data_process()
3483 inode_data->wd = -1; in event_inotify_data_process()
3485 inode_data = hashmap_get(d->wd, INT_TO_PTR(d->buffer.ev.wd)); in event_inotify_data_process()
3486 if (!inode_data) { in event_inotify_data_process()
3494 LIST_FOREACH(inotify.by_inode_data, s, inode_data->event_sources) { in event_inotify_data_process()
3639 assert(s->inotify.inode_data); in source_dispatch()
3640 assert_se(d = s->inotify.inode_data->inotify_data); in source_dispatch()
3809 struct inode_data *d; in event_close_inode_data_fds()