/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/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 …]
|
H A D | watch.cpp | 3 #include "watch.hpp" 28 Watch::Watch(sd_event* loop, in Watch() function in openpower::software::updater::Watch 59 Watch::~Watch() in ~Watch() 67 int Watch::callback(sd_event_source*, int fd, uint32_t revents, void* userdata) in callback() 95 static_cast<Watch*>(userdata)->functionalCallback(id); in callback() 103 int Watch::inotifyInit() in inotifyInit()
|
/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() 30 Watch::Watch(const EventPtr& eventObj, const int flags, const uint32_t mask, in Watch() function in phosphor::dump::inotify::Watch 36 // Check if watch DIR exists. in Watch() 39 lg2::error("Watch directory doesn't exist, DIR: {DIRECTORY}", in Watch() 65 int Watch::inotifyInit() in inotifyInit() 80 int Watch::callback(sd_event_source*, int fd, uint32_t revents, void* userdata) in callback() 82 auto userData = static_cast<Watch*>(userdata); in callback()
|
H A D | dump_manager_bmc.hpp | 6 #include "watch.hpp" 26 using Watch = phosphor::dump::inotify::Watch; typedef 66 /** @brief Implementation of dump watch call back 98 /** @brief Remove specified watch object pointer from the 99 * watch map and associated entry from the map. 113 /** @brief Dump main watch object */ 114 Watch dumpWatch; 123 /** @brief Child directory path and its associated watch object map 124 * [path:watch object] 126 std::map<std::filesystem::path, std::unique_ptr<Watch>> childWatchMap;
|
H A D | core_manager.hpp | 6 #include "watch.hpp" 16 using Watch = phosphor::dump::inotify::Watch; typedef 45 /** @brief Constructor to create core watch object. 63 /** @brief Implementation of core watch call back 71 /** @brief Core watch object */ 72 Watch coreWatch;
|
/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 …]
|
/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/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/phosphor-dbus-monitor/src/test/yaml/propertywatchgentest/ |
H A D | watchtwo.yaml | 35 - name: test property watch 1 36 class: watch 37 watch: property 41 - name: test property watch 3 42 class: watch 43 watch: property
|
H A D | watchone.yaml | 51 - name: test property watch 1 52 class: watch 53 watch: property 57 - name: test property watch 2 58 class: watch 59 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 …]
|