/openbmc/phosphor-host-ipmid/include/ipmid/ |
H A D | utils.hpp | 4 #include <ipmid/api-types.hpp> 24 constexpr auto PROP_INTF = "org.freedesktop.DBus.Properties"; 32 * than the default 25s D-Bus timeout. */ 37 * @details Most ipmi commands need to talk to other dbus daemons to perform 39 * first look up the service name providing the interface they 46 /** @brief Creates a new service cache for the given interface 49 * @param[in] intf - The interface used for each lookup 50 * @param[in] path - The path used for each lookup 58 * @param[in] bus - Th 257 getDbusObject(Context::ptr ctx,const std::string & interface,DbusObjectInfo & dbusObject) getDbusObject() argument 264 getDbusObject(Context::ptr ctx,const std::string & interface,const std::string & subtreePath,DbusObjectInfo & dbusObject) getDbusObject() argument 283 getDbusProperty(Context::ptr ctx,const std::string & service,const std::string & objPath,const std::string & interface,const std::string & property,Type & propertyValue) getDbusProperty() argument 349 getAllDbusObjects(Context::ptr ctx,const std::string & serviceRoot,const std::string & interface,ObjectTree & objectTree) getAllDbusObjects() argument [all...] |
/openbmc/phosphor-dbus-monitor/src/test/ |
H A D | propertywatchtest.hpp | 12 namespace dbus namespace 24 * @tparam DBusInterfaceType - The mock object type. 25 * @tparam Ret - The return type of the method being called. 26 * @tparam Args - The argument types of the method being called. 33 static Ret op(DBusInterfaceType& dbus, const std::string& busName, in op() 34 const std::string& path, const std::string& interface, in op() 48 static GetObject op(DBusInterfaceType& dbus, const std::string& busName, in op() 49 const std::string& path, const std::string& interface, in op() 53 return dbus.mapperGetObject(busName, path, interface, method, in op() 59 * org.freedesktop.DBus.Properties.GetAll(uint64_t). */ [all …]
|
/openbmc/phosphor-time-manager/ |
H A D | utils.hpp | 5 #include <phosphor-logging/lg2.hpp> 20 using Interface = std::string; typedef 21 using Interfaces = std::vector<Interface>; 27 /** @brief The template function to get property from the requested dbus path 29 * @param[in] bus - The Dbus bus object 30 * @param[in] service - The Dbus service name 31 * @param[in] path - The Dbus object path 32 * @param[in] interface - The Dbus interface 33 * @param[in] propertyName - The property name to get 39 const char* interface, const char* propertyName) in getProperty() argument [all …]
|
/openbmc/phosphor-state-manager/ |
H A D | utils.hpp | 17 /** @brief Tell systemd to generate d-bus events 19 * @param[in] bus - The Dbus bus object 25 /** @brief Get service name from object path and interface 27 * @param[in] bus - The Dbus bus object 28 * @param[in] path - The Dbus object path 29 * @param[in] interface - The Dbus interface 34 std::string interface); 38 * @param[in] bus - The Dbus bus object 39 * @param[in] path - The Dbus object path 40 * @param[in] interface - The Dbus interface [all …]
|
H A D | settings.hpp | 14 using Interface = std::string; typedef 18 control::boot::RebootPolicy<>::interface; 20 control::power::RestorePolicy<>::interface; 23 * @brief Fetch paths of settings d-bus objects of interest, upon construction 28 /** @brief Constructor - fetch settings objects 30 * @param[in] bus - The Dbus bus object 31 * @param[in] root - The root object path 40 /** @brief Fetch d-bus service, given a path and an interface. The 44 * @param[in] path - The Dbus object 45 * @param[in] interface - The Dbus interface [all …]
|
/openbmc/boost-dbus/include/dbus/ |
H A D | properties.hpp | 4 #include <dbus/connection.hpp> 5 #include <dbus/filter.hpp> 6 #include <dbus/match.hpp> 14 namespace dbus { namespace 26 DbusMethod(const std::string& name, std::shared_ptr<dbus::connection>& conn) in DbusMethod() 28 virtual void call(dbus::message& m){}; in call() 31 std::shared_ptr<dbus::connection> conn; 55 if (arg_names == nullptr || arg_names->size() <= TupleIndex) { 76 if (arg_names == nullptr || arg_names->size() < 1) { in arg_types() 92 std::shared_ptr<dbus::connection>& conn, Handler h) in LambdaDbusMethod() [all …]
|
/openbmc/phosphor-inventory-manager/ |
H A D | manager.hpp | 45 * DBus API. 59 * @param[in] bus - An sdbusplus bus connection. 60 * @param[in] root - The DBus path on which to implement 68 /** @brief Start processing DBus messages. 70 * @param[in] busname - The DBus busname to own. 85 /** @brief Drop one or more objects from DBus. */ 88 /** @brief Add objects to DBus. */ 92 /** @brief Add or update objects on DBus. */ 103 * sdbusplus server binding interface as a parameter. 105 * @tparam T - The sdbusplus server binding interface type. [all …]
|
/openbmc/phosphor-dbus-monitor/src/ |
H A D | propertywatch.hpp | 18 namespace dbus namespace 28 * A property watch maintains the state of one or more DBus properties 50 * Watch start interface implementation for PropertyWatch. 56 * Watch callback interface implementation for PropertyWatch. 65 * @param[in] busName - The busname hosting the interface to query. 66 * @param[in] path - The path of the interface to query. 67 * @param[in] interface - The interface to query. 71 const std::string& interface) = 0; 73 /** @brief Dbus signal callback for PropertiesChanged. 77 * @param[in] message - The org.freedesktop.DBus.PropertiesChanged [all …]
|
H A D | method.hpp | 5 #include <phosphor-logging/lg2.hpp> 13 namespace dbus namespace 24 * @tparam DBusInterface - The DBus interface to use. 25 * @tparam MethodArgs - DBus method argument types. 42 "Unable to call DBus method: {ERROR}. {BUS}, {PATH}, {INTF}, {METHOD}", in op() 51 * @brief Invoke DBus method callback implementation. 53 * The method callback invokes the client supplied DBus method. 66 Callback(), bus(b), path(p), interface(i), method(m) in MethodBase() 69 /** @brief Callback interface implementation. */ 75 const std::string& interface; member in phosphor::dbus::monitoring::MethodBase [all …]
|
/openbmc/openpower-hw-diags/util/ |
H A D | dbus.cpp | 1 #include <util/dbus.hpp> 9 namespace dbus namespace 11 //------------------------------------------------------------------------------ 19 /** @brief Find the path and service that implements the given interface */ 34 // Search the entire dbus tree for the specified interface in find() 48 o_service = object.second.begin()->first; // return service in find() 55 trace::err("util::dbus::find exception"); in find() 63 /** @brief Find the service that implements the given object and interface */ 79 // to the given interface. in findService() 91 o_service = response.begin()->first; in findService() [all …]
|
H A D | dbus.hpp | 13 namespace dbus namespace 26 * Find the dbus object path and service that implements the given interface 28 * @param[in] i_interface Interface to search for 29 * @param[out] o_path Path of dbus object implementing the interface 30 * @param[out] o_service Service implementing the dbus object path 31 * @return non-zero on error 37 * Find the dbus service that implements the given dbus object and interface 39 * @param[in] i_interface Interface that maps to the service 41 * @param[out] o_service Service implementing the dbus object and interface 42 * @return non-zer on error [all …]
|
/openbmc/entity-manager/docs/ |
H A D | my_first_sensors.md | 3 This document is meant to bring you from nothing to using Entity-Manager with 4 Dbus-Sensors to populate a plug-in card's sensor values on dbus. Once the sensor 5 values are on dbus, they can be read via IPMI or Redfish (doing so is beyond the 10 motherboard and are in a device-tree such as this: 24 i2c-switch@71 { 27 #address-cells = <1>; 28 #size-cells = <0>; 29 i2c-mux-idle-disconnect; 32 #address-cells = <1>; 33 #size-cells = <0>; [all …]
|
/openbmc/pldm/libpldmresponder/ |
H A D | fru_parser.hpp | 17 namespace dbus namespace 22 using Interface = std::string; typedef 23 using Interfaces = std::set<Interface>; 28 } // namespace dbus 44 // DBusLookupInfo contains info to lookup in the D-Bus inventory, D-Bus 45 // inventory service bus name, root path of the inventory D-Bus objects and list 46 // of xyz.openbmc_project.Inventory.Item.* interface names. 48 std::tuple<pldm::responder::dbus::Service, pldm::responder::dbus::RootPath, 49 pldm::responder::dbus::Interfaces>; 51 pldm::responder::dbus::Interface, pldm::responder::dbus::Property, [all …]
|
/openbmc/phosphor-host-ipmid/ |
H A D | sensordatahandler.hpp | 10 #include <phosphor-logging/elog-errors.hpp> 11 #include <phosphor-logging/lg2.hpp> 20 // The signal's message type is 0x04 from DBus spec: 21 // https://dbus.freedesktop.org/doc/dbus-specification.html#message-protocol-messages 36 using Interface = std::string; typedef 38 using Interfaces = std::vector<Interface>; 45 * @param[in] cmdData - Input sensor data 50 /** @brief send the message to DBus 51 * @param[in] msg - message to send 59 /** @brief Populate sensor name from the D-Bus property associated with the [all …]
|
H A D | settings.hpp | 13 using Interface = std::string; typedef 16 * @brief Fetch paths of settings d-bus objects of interest, upon construction 21 /** @brief Constructor - fetch settings objects 23 * @param[in] bus - The Dbus bus object 24 * @param[in] filter - A vector of settings interfaces the caller is 27 Objects(sdbusplus::bus_t& bus, const std::vector<Interface>& filter); 34 /** @brief Fetch d-bus service, given a path and an interface. The 38 * @param[in] path - The Dbus object 39 * @param[in] interface - The Dbus interface 41 * @return std::string - the dbus service [all …]
|
/openbmc/phosphor-psu-code-mgmt/src/ |
H A D | utils.hpp | 27 * @brief Get PSU inventory object paths from DBus 32 * @param[in] bus - The Dbus bus object 38 /** @brief Get service name from object path and interface 43 * @param[in] bus - The Dbus bus object 44 * @param[in] path - The Dbus object path 45 * @param[in] interface - The Dbus interface 50 const char* interface); 52 /** @brief Get all service names from object path and interface 57 * @param[in] bus - The Dbus bus object 58 * @param[in] path - The Dbus object path [all …]
|
/openbmc/boost-dbus/test/ |
H A D | dbusPropertiesServer.cpp | 2 #include <dbus/connection.hpp> 3 #include <dbus/endpoint.hpp> 4 #include <dbus/filter.hpp> 5 #include <dbus/match.hpp> 6 #include <dbus/message.hpp> 7 #include <dbus/properties.hpp> 15 "\"-//freedesktop//DTD D-BUS Object Introspection 1.0//EN\" " 16 "\"http://www.freedesktop.org/standards/dbus/1.0/" 21 auto system_bus = std::make_shared<dbus::connection>(io, dbus::bus::system); in TEST() 24 dbus::DbusObjectServer foo(system_bus); in TEST() [all …]
|
H A D | avahi.py | 7 import dbus 8 from dbus.mainloop.glib import DBusGMainLoop 16 c.system_bus = dbus.SystemBus(mainloop=DBusGMainLoop()) 22 # Connect to Avahi Daemon's interface: 24 avahi = dbus.Interface(avahi_remote, 'org.freedesktop.Avahi.Server') 28 # ServiceBrowser and connect to its interface: 29 browser_path = avahi.ServiceBrowserNew(-1, -1, "_http._tcp", "local", dbus.UInt32(0)) 32 browser = dbus.Interface(browser_remote, 'org.freedesktop.Avahi.ServiceBrowser') 35 def new_item_handler(interface, protocol, instance_name, instance_type, domain, flags): argument
|
/openbmc/openpower-debug-collector/watchdog/ |
H A D | watchdog_dbus.hpp | 22 * @brief Create a dbus method 24 * Find the dbus service associated with the dbus object path and create 25 * a dbus method for calling the specified dbus interface and function. 27 * @param path - dbus object path 28 * @param interface - dbus method interface 29 * @param function - dbus interface function 30 * @param method - method that is created 31 * @param extended - optional for extended methods 32 * @return non-zero if error 35 int dbusMethod(const std::string& path, const std::string& interface, [all …]
|
/openbmc/phosphor-fan-presence/control/json/ |
H A D | manager.hpp | 8 * http://www.apache.org/licenses/LICENSE-2.0 29 #include <phosphor-logging/log.hpp> 80 /* Dbus event timer */ 83 /* Dbus signal object */ 88 /* Dbus signal actions */ 101 * SignalObject = Dbus signal object 117 * Package of data from a D-Bus call to get managed objects 119 * std::map<Path, // D-Bus Path 120 * std::map<Intf, // D-Bus Interface 121 * std::map<Property, // D-Bus Property [all …]
|
/openbmc/docs/designs/inventory/ |
H A D | gpio-based-hardware-inventory.md | 11 …om/openbmc/docs/blob/46902afd6ebd20d1148379df99fe2c0c591f56ba/designs/gpio-based-cable-presence.md) 26 and focuses on IPMI use-case. 28 …om/openbmc/docs/blob/879601d92becfa1dbc082f487abfb5e0151a5091/designs/gpio-based-cable-presence.md) 31 phosphor-multi-gpio-presence and phosphor-inventory-manager. 34 by phosphor-inventory-manager. 36 The presence daemon then toggles the 'Present' property on dbus interface 39 Additional item-specific properties are statically declared in the 40 phosphor-inventory-manager configuration. 44 …277cdb37e8062ae298402e9685882acb/meta-ibm/meta-sbp1/recipes-phosphor/gpio/phosphor-gpio-monitor/ph… 46 …-inventory-manager config](https://github.com/openbmc/openbmc/blob/1d438f68277cdb37e8062ae298402e9… [all …]
|
/openbmc/bmcweb/ |
H A D | DBUS_USAGE.md | 1 # dbus usage 3 The following are guidelines for bmcweb's use of DBus to construct Redfish 6 - Do not require (ie set 500 internal error on) an implementation present a 7 property that wasn't in the first commit of the interface unless it can be 8 verified that _all_ OpenBMC implementers of the interface support that 10 - If an implementation presents a property that doesn't match the type specified 11 by the interface at any version, it shall be reported as a 500 error. 12 - If the DBus interface definition has an "unknown" or "unspecified" value, 15 - All DBus interfaces on all object paths are optional. An object missing an 16 interface is never an error, and shall simply omit the relevant properties [all …]
|
/openbmc/rest-dbus/ |
H A D | rest-dbus | 3 import dbus 14 'system': dbus.SystemBus, 38 handler.send_header('Content-Type', 'application/json') 57 'application/octet-stream') 65 handler.send_header('Content-Type', 66 self.content_type + '; charset=utf-8') 82 handler.send_header('Content-Type', 'application/json') 106 except dbus.DBusException: 121 iface = dbus.Interface(obj, 'org.freedesktop.DBus.Introspectable') 126 if node.tag == 'interface': [all …]
|
/openbmc/phosphor-fan-presence/ |
H A D | sdbusplus.hpp | 3 #include <phosphor-logging/elog-errors.hpp> 4 #include <phosphor-logging/elog.hpp> 5 #include <phosphor-logging/log.hpp> 43 * Thrown on a DBus Method call failure 49 const std::string& interface, const std::string& method) : in DBusMethodError() argument 50 DBusError(std::format("DBus method failed: {} {} {} {}", busName, path, in DBusMethodError() 51 interface, method)), in DBusMethodError() 52 busName(busName), path(path), interface(interface), method(method) in DBusMethodError() 57 const std::string interface; member in phosphor::fan::util::DBusMethodError 65 * the object path not being present in D-Bus. [all …]
|
/openbmc/sdbusplus/include/sdbusplus/server/ |
H A D | interface.hpp | 3 #include <systemd/sd-bus.h> 18 namespace interface namespace 21 /** @class interface 22 * @brief Provide a C++ holder for dbus interface instances. 24 * Wraps sd_bus_add_object_vtable so that the interface is registered 28 * implementation of a class representing a dbus interface, which will be 29 * composed through multiple-inheritence to create a single dbus 'object'. 30 * Marking it 'final' prevents users from using an 'is-a' relationship via 31 * inheritance, which might be a natural option. Instead, a dbus interface 32 * implementation should 'has-a' server::interface with a name sufficiently [all …]
|