Lines Matching full:bus
8 #include <sdbusplus/bus.hpp>
42 * @param[in] path - the D-Bus path name
43 * @param[in] interface - the D-Bus interface name
44 * @param[in] bus - the D-Bus object
50 sdbusplus::bus_t& bus, bool logError = true);
53 * @brief Read a D-Bus property
57 * @param[in] path - the D-Bus path
58 * @param[in] service - the D-Bus service
59 * @param[in] bus - the D-Bus object
65 sdbusplus::bus_t& bus, T& value) in getProperty() argument
69 auto method = bus.new_method_call(service.c_str(), path.c_str(), in getProperty()
74 auto reply = bus.call(method); in getProperty()
81 * @brief Write a D-Bus property
85 * @param[in] path - the D-Bus path
86 * @param[in] service - the D-Bus service
87 * @param[in] bus - the D-Bus object
93 sdbusplus::bus_t& bus, T& value) in setProperty() argument
97 auto method = bus.new_method_call(service.c_str(), path.c_str(), in setProperty()
102 auto reply = bus.call(method); in setProperty()
106 * @brief Get all D-Bus properties
108 * @param[in] bus - the D-Bus object
109 * @param[in] path - the D-Bus object path
110 * @param[in] interface - the D-Bus interface name
111 * @param[in] service - the D-Bus service name (optional)
115 DbusPropertyMap getAllProperties(sdbusplus::bus_t& bus, const std::string& path,
125 * @param[in] bus - The D-Bus object.
133 DbusSubtree getSubTree(sdbusplus::bus_t& bus, const std::string& path,
142 * @param[in] bus - The D-Bus object.
150 DbusSubtree getSubTree(sdbusplus::bus_t& bus, const std::string& path,
161 * @param[in] bus - The D-Bus object.
170 sdbusplus::bus_t& bus,
179 * @param[in] bus - D-Bus object
182 void powerOff(sdbusplus::bus_t& bus) in powerOff() argument
186 auto method = bus.new_method_call(SYSTEMD_SERVICE, SYSTEMD_ROOT, in powerOff()
192 bus.call_noreply(method); in powerOff()
216 * @param[in] bus - D-Bus object
223 bool isPoweredOn(sdbusplus::bus_t& bus, bool defaultState = false);
226 * Get all PSU inventory paths from D-Bus
228 * @param[in] bus - D-Bus object
232 std::vector<std::string> getPSUInventoryPaths(sdbusplus::bus_t& bus);
235 * @detail Get all chassis inventory paths from D-Bus
237 * @param[in] bus - D-Bus object
241 std::vector<std::string> getChassisInventoryPaths(sdbusplus::bus_t& bus);
244 * @brief Retrieve the chassis ID for the given D-Bus inventory path.
245 * Query the D-Bus interface for inventory object path and retrieve its unique
248 * @param[in] bus - D-Bus object
249 * @param[in] path - The inventory manager D-Bus path for a chassis.
253 uint64_t getChassisInventoryUniqueId(sdbusplus::bus_t& bus,
257 * Given a D-Bus object path, this function extracts the parent path (board or
260 * @param[in] bus - D-Bus object
261 * @param[in] path - The EntityManager D-Bus path for hardware within a chassis
269 uint64_t getParentEMUniqueId(sdbusplus::bus_t& bus, const std::string& path);