/openbmc/linux/kernel/ |
H A D | watch_queue.c | 2 /* Watch queue and general notification mechanism, built on pipes 30 MODULE_DESCRIPTION("Watch queue"); 91 * Post a notification to a watch queue. 183 * @wlist: The watch list to post the event to. 186 * @id: The ID to match on the watch. 188 * Post a notification of an event into a set of watch queues and let the users 201 struct watch *watch; in __post_watch_notification() local 210 hlist_for_each_entry_rcu(watch, &wlist->watchers, list_node) { in __post_watch_notification() 211 if (watch->id != id) in __post_watch_notification() 214 n->info |= watch->info_id; in __post_watch_notification() [all …]
|
H A D | audit_watch.c | 33 * audit_krule holds a reference to its associated watch. 100 void audit_get_watch(struct audit_watch *watch) in audit_get_watch() argument 102 refcount_inc(&watch->count); in audit_get_watch() 105 void audit_put_watch(struct audit_watch *watch) in audit_put_watch() argument 107 if (refcount_dec_and_test(&watch->count)) { in audit_put_watch() 108 WARN_ON(watch->parent); in audit_put_watch() 109 WARN_ON(!list_empty(&watch->rules)); in audit_put_watch() 110 kfree(watch->path); in audit_put_watch() 111 kfree(watch); in audit_put_watch() 115 static void audit_remove_watch(struct audit_watch *watch) in audit_remove_watch() argument [all …]
|
/openbmc/phosphor-certificate-manager/ |
H A D | watch.hpp | 11 /** @class Watch 13 * @brief Adds inotify watch on certificate directory 15 * The inotify watch is hooked up with sd-event, so that on call back, 18 class Watch class 22 /** @brief ctor - hook inotify watch with sd-event 28 Watch(sdeventplus::Event& event, std::string& certFile, Callback cb); 29 Watch(const Watch&) = delete; 30 Watch& operator=(const Watch&) = delete; 31 Watch(Watch&&) = delete; 32 Watch& operator=(Watch&&) = delete; [all …]
|
H A D | watch.cpp | 1 #include "watch.hpp" 27 Watch::Watch(sdeventplus::Event& event, std::string& certFile, Callback cb) : in Watch() function in phosphor::certs::Watch 30 // get parent directory of certificate file to watch in Watch() 51 Watch::~Watch() in ~Watch() 56 void Watch::startWatch() in startWatch() 58 // stop any existing watch in startWatch() 71 lg2::error("inotify_add_watch failed, ERR:{ERR}, WATCH:{WATCH}", "ERR", in startWatch() 72 std::strerror(errno), "WATCH", watchDir); in startWatch() 100 void Watch::stopWatch() in stopWatch()
|
/openbmc/linux/Documentation/core-api/ |
H A D | watch_queue.rst | 33 watch through that pipe. Only sources that have been connected to a pipe will 63 the type of record from that source (see the Watch Sources section below). The 65 internally by the watch queue itself. There are two subtypes: 70 The first indicates that an object on which a watch was installed was removed 79 * The watch ID (mask with WATCH_INFO_ID and shift by WATCH_INFO_ID__SHIFT). 80 This indicates that caller's ID of the watch, which may be between 0 94 Watch List (Notification Source) API 97 A "watch list" is a list of watchers that are subscribed to a source of 100 non-global watch list is typically referred to by reference to the object it 102 watch that specific key). [all …]
|
/openbmc/pldm/fw-update/ |
H A D | watch.hpp | 14 /** @class Watch 16 * @brief Adds inotify watch on software image upload directory 18 * The inotify watch is hooked up with sd-event, so that on call back, 21 class Watch class 24 /** @brief ctor - hook inotify watch with sd-event 30 Watch(sd_event* loop, std::function<int(std::string&)> imageCallback); 32 Watch(const Watch&) = delete; 33 Watch& operator=(const Watch&) = delete; 34 Watch(Watch&&) = delete; 35 Watch& operator=(Watch&&) = delete; [all …]
|
/openbmc/phosphor-bmc-code-mgmt/bmc/ |
H A D | watch.hpp | 15 /** @class Watch 17 * @brief Adds inotify watch on software image upload directory 19 * The inotify watch is hooked up with sd-event, so that on call back, 22 class Watch class 25 /** @brief ctor - hook inotify watch with sd-event 31 Watch(sd_event* loop, std::function<int(std::string&)> imageCallback); 33 Watch(const Watch&) = delete; 34 Watch& operator=(const Watch&) = delete; 35 Watch(Watch&&) = delete; 36 Watch& operator=(Watch&&) = delete; [all …]
|
/openbmc/phosphor-dbus-monitor/src/ |
H A D | watch.hpp | 12 /** @class Watch 13 * @brief Watch interface. 25 class Watch class 28 Watch() = default; 29 Watch(const Watch&) = default; 30 Watch(Watch&&) = default; 31 Watch& operator=(const Watch&) = default; 32 Watch& operator=(Watch&&) = default; 33 virtual ~Watch() = default; 35 /** @brief Start the watch. */ [all …]
|
H A D | pathwatch.hpp | 3 * @brief Add watch for the object path for interfaces added/removed signal 11 #include "watch.hpp" 25 * @brief Watch on object path for interfaceadded/interfaceremoved signals 28 class PathWatch : public Watch 38 Watch(), objectPath(path), cb(callback), alreadyRan(false) in PathWatch() 41 /** @brief Start the watch. 43 * Watch start interface implementation for PathWatch. 47 /** @brief Run the watch callback method. 49 * Watch callback interface implementation for PathWatch. 53 /** @brief Run the watch callback method. [all …]
|
H A D | main.cpp | 38 for (auto& watch : ConfigPropertyWatches::get()) in main() local 40 watch->start(); in main() 43 for (auto& watch : ConfigPropertyWatches::get()) in main() local 45 watch->callback(Context::START); in main() 47 for (auto& watch : ConfigPathWatches::get()) in main() local 49 watch->start(); in main() 52 for (auto& watch : ConfigPathWatches::get()) in main() local 54 watch->callback(Context::START); in main()
|
/openbmc/openpower-proc-control/extensions/phal/ |
H A D | fw_update_watch.hpp | 15 /** @class Watch 16 * @brief Adds d-bus signal based watch for software path interface add. 21 * - Watch for interfaces added for the software path 29 class Watch class 32 Watch() = delete; 33 ~Watch() = default; 34 Watch(const Watch&) = delete; 35 Watch& operator=(const Watch&) = delete; 36 Watch(Watch&&) = default; 37 Watch& operator=(Watch&&) = default; [all …]
|
/openbmc/openpower-pnor-code-mgmt/ubi/ |
H A D | watch.hpp | 64 /** @class Watch 66 * @brief Adds inotify watch on PNOR symlinks file to monitor for changes in 69 * The inotify watch is hooked up with sd-event, so that on call back, 73 class Watch class 76 /** @brief ctor - hook inotify watch with sd-event 82 Watch(sd_event* loop, 85 Watch(const Watch&) = delete; 86 Watch& operator=(const Watch&) = delete; 87 Watch(Watch&&) = delete; 88 Watch& operator=(Watch&&) = delete; [all …]
|
/openbmc/phosphor-debug-collector/ |
H A D | watch.hpp | 25 /** @class Watch 27 * @brief Adds inotify watch on directory. 29 * The inotify watch is hooked up with sd-event, so that on call back, 33 class Watch class 36 /** @brief ctor - hook inotify watch with sd-event 46 Watch(const EventPtr& eventObj, int flags, uint32_t mask, uint32_t events, 49 Watch(const Watch&) = delete; 50 Watch& operator=(const Watch&) = delete; 51 Watch(Watch&&) = delete; 52 Watch& operator=(Watch&&) = delete; [all …]
|
H A D | elog_watch.hpp | 26 /** @class Watch 27 * @brief Adds d-bus signal based watch for elog add and delete. 31 class Watch class 34 Watch() = delete; 35 ~Watch() = default; 36 Watch(const Watch&) = delete; 37 Watch& operator=(const Watch&) = delete; 38 Watch(Watch&&) = delete; 39 Watch& operator=(Watch&&) = delete; 41 /** @brief constructs watch for elog add and delete signals. [all …]
|
H A D | watch.cpp | 1 #include "watch.hpp" 21 Watch::~Watch() in ~Watch() 29 Watch::Watch(const EventPtr& eventObj, const int flags, const uint32_t mask, in Watch() function in phosphor::dump::inotify::Watch 35 // Check if watch DIR exists. in Watch() 38 lg2::error("Watch directory doesn't exist, DIR: {DIRECTORY}", in Watch() 64 int Watch::inotifyInit() in inotifyInit() 79 int Watch::callback(sd_event_source*, int fd, uint32_t revents, void* userdata) in callback() 81 auto userData = static_cast<Watch*>(userdata); in callback()
|
/openbmc/openbmc/meta-ibm/recipes-phosphor/dbus/fan-policy/witherspoon/ |
H A D | fan-errors.yaml | 12 # * Watch for fans to become both present and functional, and then resolve 120 - name: watch chassis state 123 class: watch 124 watch: property 129 - name: watch fan0 presence 132 class: watch 133 watch: property 138 - name: watch fan0 functional 141 class: watch 142 watch: property [all …]
|
H A D | water-cooled.yaml | 103 - name: watch fan present 106 class: watch 107 watch: property 112 - name: watch fan functional 115 class: watch 116 watch: property 121 - name: watch fan rotor functional 124 class: watch 125 watch: property 130 - name: watch chassis state [all …]
|
H A D | air-cooled.yaml | 109 - name: watch fan present 112 class: watch 113 watch: property 118 - name: watch fan functional 121 class: watch 122 watch: property 127 - name: watch fan rotor functional 130 class: watch 131 watch: property 136 - name: watch chassis state [all …]
|
/openbmc/openbmc/meta-ibm/recipes-phosphor/dbus/fan-policy/swift/ |
H A D | fan-errors.yaml | 11 # * Watch for fans to become both present and functional, and then resolve 119 - name: watch chassis state 122 class: watch 123 watch: property 128 - name: watch fan0 presence 131 class: watch 132 watch: property 137 - name: watch fan0 functional 140 class: watch 141 watch: property [all …]
|
/openbmc/linux/drivers/xen/xenbus/ |
H A D | xenbus_dev_frontend.c | 97 * alone during a watch callback. 228 struct xenbus_watch watch; member 233 static void free_watch_adapter(struct watch_adapter *watch) in free_watch_adapter() argument 235 kfree(watch->watch.node); in free_watch_adapter() 236 kfree(watch->token); in free_watch_adapter() 237 kfree(watch); in free_watch_adapter() 243 struct watch_adapter *watch; in alloc_watch_adapter() local 245 watch = kzalloc(sizeof(*watch), GFP_KERNEL); in alloc_watch_adapter() 246 if (watch == NULL) in alloc_watch_adapter() 249 watch->watch.node = kstrdup(path, GFP_KERNEL); in alloc_watch_adapter() [all …]
|
/openbmc/phosphor-dbus-monitor/src/example/ |
H A D | test.yaml | 100 - name: test byte watch 101 class: watch 102 watch: property 106 - name: test u16 watch 107 class: watch 108 watch: property 112 - name: test u32 watch 113 class: watch 114 watch: property 118 - name: test u64 watch [all …]
|
/openbmc/qemu/util/ |
H A D | filemonitor-inotify.c | 39 int64_t id; /* watch ID */ 141 QFileMonitorWatch *watch = &g_array_index(dir->watches, in qemu_file_monitor_watch() local 145 if (watch->filename == NULL || in qemu_file_monitor_watch() 146 (name && g_str_equal(watch->filename, name))) { in qemu_file_monitor_watch() 148 qev, watch->cb, in qemu_file_monitor_watch() 149 watch->opaque, watch->id); in qemu_file_monitor_watch() 150 watch->cb(watch->id, qev, name, watch->opaque); in qemu_file_monitor_watch() 167 QFileMonitorWatch *watch = &g_array_index(dir->watches, in qemu_file_monitor_dir_free() local 169 g_free(watch->filename); in qemu_file_monitor_dir_free() 259 QFileMonitorWatch watch; in qemu_file_monitor_add_watch() local [all …]
|
/openbmc/openbmc/meta-ibm/recipes-phosphor/dbus/events-policy/ |
H A D | config.yaml | 35 - name: watch occproctemp 36 class: watch 37 watch: property 42 - name: watch occprocpower 43 class: watch 44 watch: property 49 - name: watch occmemtemp 50 class: watch 51 watch: property
|
/openbmc/u-boot/include/faraday/ |
H A D | ftwdt010_wdt.h | 3 * Watchdog driver for the FTWDT010 Watch Dog Driver 32 * Which means in a 66MHz system, the period of Watch Dog timer reset is 38 * WDRESTART - Watch Dog Timer Counter Restart Register 39 * If writing 0x5AB9 to WDRESTART register, Watch Dog timer will 44 /* WDCR - Watch Dog Timer Control Register */ 48 /* FTWDT010_WDCR_EXT bit: Watch Dog Timer External Signal Enable */ 54 * Faraday's Watch Dog timer can be driven by an external clock. The 65 * WDSTATUS - Watch Dog Timer Status Register 71 * WDCLEAR - Watch Dog Timer Clear Register 77 * WDINTRLEN - Watch Dog Timer Interrupt Length
|
/openbmc/openbmc/meta-ibm/recipes-phosphor/dbus/power-supply-policy/ |
H A D | power-supply-policy.yaml | 61 - name: watch power supply present 64 class: watch 65 watch: property 70 - name: watch chassis state 73 class: watch 74 watch: property 199 - name: watch power supply0 present for resolving error logs 202 class: watch 203 watch: property 208 - name: watch power supply1 present for resolving error logs [all …]
|