Home
last modified time | relevance | path

Searched refs:inotify_event (Results 1 – 17 of 17) sorted by relevance

/openbmc/phosphor-certificate-manager/
H A Dwatch.cpp78 constexpr int size = sizeof(struct inotify_event) + NAME_MAX + 1; in startWatch()
81 if (length >= static_cast<int>(sizeof(struct inotify_event))) in startWatch()
83 struct inotify_event* notifyEvent = in startWatch()
84 reinterpret_cast<struct inotify_event*>(&buffer[0]); in startWatch()
/openbmc/qemu/util/
H A Dfilemonitor-inotify.c58 __attribute__ ((aligned(__alignof__(struct inotify_event)))); in qemu_file_monitor_watch()
89 struct inotify_event *ev = (struct inotify_event *)(buf + used); in qemu_file_monitor_watch()
95 assert(len - used >= sizeof(struct inotify_event)); in qemu_file_monitor_watch()
96 assert(len - used - sizeof(struct inotify_event) >= ev->len); in qemu_file_monitor_watch()
104 used += sizeof(struct inotify_event) + ev->len; in qemu_file_monitor_watch()
/openbmc/linux/fs/notify/inotify/
H A Dinotify_user.c161 return roundup(event->name_len + 1, sizeof(struct inotify_event)); in round_event_name_len()
174 size_t event_size = sizeof(struct inotify_event); in get_one_event()
204 struct inotify_event inotify_event; in copy_event_to_user() local
206 size_t event_size = sizeof(struct inotify_event); in copy_event_to_user()
219 inotify_event.len = pad_name_len; in copy_event_to_user()
220 inotify_event.mask = inotify_mask_to_arg(event->mask); in copy_event_to_user()
221 inotify_event.wd = event->wd; in copy_event_to_user()
222 inotify_event.cookie = event->sync_cookie; in copy_event_to_user()
225 if (copy_to_user(buf, &inotify_event, event_size)) in copy_event_to_user()
333 send_len += sizeof(struct inotify_event); in inotify_ioctl()
/openbmc/phosphor-debug-collector/
H A Dwatch.cpp90 constexpr auto maxBytes = sizeof(struct inotify_event) + NAME_MAX + 1; in callback()
112 auto event = reinterpret_cast<inotify_event*>(&buffer[offset]); in callback()
120 offset += offsetof(inotify_event, name) + event->len; in callback()
/openbmc/linux/tools/testing/selftests/cgroup/
H A Dwait_inotify.c77 struct inotify_event events[10]; in main()
83 len/sizeof(struct inotify_event)); in main()
/openbmc/bmcweb/redfish-core/src/
H A Dfilesystem_log_watcher.cpp108 static constexpr const size_t iEventSize = sizeof(inotify_event);
129 struct inotify_event& event = in onINotify()
130 *std::bit_cast<struct inotify_event*>(&readBuffer[index]); in onINotify()
/openbmc/pldm/fw-update/
H A Dwatch.cpp92 auto event = reinterpret_cast<inotify_event*>(&buffer[offset]); in callback()
104 offset += offsetof(inotify_event, name) + event->len; in callback()
/openbmc/openpower-pnor-code-mgmt/ubi/
H A Dwatch.cpp87 auto event = reinterpret_cast<inotify_event*>(&buffer[offset]); in callback()
97 offset += offsetof(inotify_event, name) + event->len; in callback()
/openbmc/phosphor-bmc-code-mgmt/bmc/
H A Dwatch.cpp101 auto event = reinterpret_cast<inotify_event*>(&buffer[offset]); in callback()
113 offset += offsetof(inotify_event, name) + event->len; in callback()
H A Dsync_watch.cpp97 auto event = reinterpret_cast<inotify_event*>(&buffer[offset]); in callback()
123 offset += offsetof(inotify_event, name) + event->len; in callback()
/openbmc/linux/include/uapi/linux/
H A Dinotify.h21 struct inotify_event { struct
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-support/inotify-tools/inotify-tools/
H A D0003-replace-stat64-lstat64-with-stat-lstat.patch67 * struct inotify_event - structure read from the inotify device for each event
/openbmc/linux/tools/tracing/latency/
H A Dlatency-collector.c1453 const ssize_t istructsize = sizeof(struct inotify_event); in tracing_loop()
1458 struct inotify_event *event; in tracing_loop()
1512 event = (struct inotify_event *) p; in tracing_loop()
/openbmc/qemu/linux-user/
H A Dfd-trans.c1717 struct inotify_event *ev; in host_to_target_data_inotify()
1721 for (i = 0; i < len; i += sizeof(struct inotify_event) + name_len) { in host_to_target_data_inotify()
1722 ev = (struct inotify_event *)((char *)buf + i); in host_to_target_data_inotify()
/openbmc/entity-manager/src/
H A Dfru_device.cpp1480 while ((index + sizeof(inotify_event)) <= bytesTransferred) in main()
1484 const auto* iEvent = reinterpret_cast<const inotify_event*>(p); in main()
1520 index += sizeof(inotify_event) + iEvent->len; in main()
/openbmc/phosphor-logging/extensions/openpower-pels/
H A Dmanager.cpp620 auto event = reinterpret_cast<inotify_event*>(&data[offset]); in pelFileDeleted()
651 offset += offsetof(inotify_event, name) + event->len; in pelFileDeleted()
/openbmc/linux/tools/perf/
H A Dbuiltin-daemon.c1058 struct inotify_event *event = (struct inotify_event *) p; in process_inotify_event()