Lines Matching +full:function +full:- +full:mask
6 #include <systemd/sd-event.h>
19 // User specific call back function input map(path:event) type.
22 // User specific callback function wrapper type.
23 using UserType = std::function<void(const UserMap&)>;
29 * The inotify watch is hooked up with sd-event, so that on call back,
36 /** @brief ctor - hook inotify watch with sd-event
38 * @param[in] eventObj - Event loop object
39 * @param[in] flags - inotify flags
40 * @param[in] mask - Mask of events
41 * @param[in] events - Events to be watched
42 * @param[in] path - File path to be watched
43 * @param[in] userFunc - User specific callback fnction wrapper.
46 Watch(const EventPtr& eventObj, int flags, uint32_t mask, uint32_t events,
54 /* @brief dtor - remove inotify watch and close fd's */
58 /** @brief sd-event callback.
60 * appropriate user function for further action.
62 * @param[in] s - event source, floating (unused) in our case
63 * @param[in] fd - inotify fd
64 * @param[in] revents - events that matched for fd
65 * @param[in] userdata - pointer to Watch object
67 * @returns 0 on success, -1 on fail
78 /** @brief Mask of events */
79 uint32_t mask; member in phosphor::dump::inotify::Watch
88 int wd = -1;
93 /** @brief The user level callback function wrapper */