Skip to content

Instantly share code, notes, and snippets.

@williamspatrick
williamspatrick / gist:03d72260982332c786770d0678644f94
Created August 26, 2020 15:09
sdbusplus - readonly properties?
$ find -name "*.yaml" | xargs grep -i -- "read-only"
./xyz/openbmc_project/Chassis/Control/Power.interface.yaml: It is a read-only property.
./xyz/openbmc_project/Network/EthernetInterface.interface.yaml: This property reports the link status for the NIC. The read-only
./xyz/openbmc_project/Sensor/Value.interface.yaml: All Sensor.Value properties are read-only.
./xyz/openbmc_project/State/BMC.interface.yaml: The current state of the BMC and is a read-only property.
./xyz/openbmc_project/State/Chassis.interface.yaml: A read-only property describing the current chassis power state.
./xyz/openbmc_project/State/Host.interface.yaml: A read-only property describing the current state of the host
./xyz/openbmc_project/VirtualMedia/Legacy.interface.yaml: description: False if the image should be read-only.
$ find -name "*.yaml" | xargs grep -i -- "read only"
./xyz/openbmc_project/Control/ThermalMode.interface.yaml: Control.ThermalMode.Supported is read only.
{
"type": "phosphor-image-manifest",
"version": 1,
"info": {
"purpose": "xyz.openbmc_project.Software.Version.VersionPurpose.BMC",
"machine": "bletchley",
"version": "2.14.0-dev-685-g917fab29b",
"build-id": "20230311020631",
"extended-version": "2.14.0-dev-685-g917fab29b",
"compatible-names": [
/usr/local/include/boost/asio/detail/impl/reactive_descriptor_service.ipp:115:17: error: Called C++ object pointer is null [clang-analyzer-core.CallAndMessage,-warnings-as-errors]
if (int err = reactor_.register_descriptor(
^
../src/main.cpp:92:9: note: Calling 'make_shared<sdbusplus::asio::connection, boost::asio::io_context &>'
std::make_shared<sdbusplus::asio::connection>(io);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/../lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12/bits/shared_ptr.h:1009:14: note: Calling constructor for 'shared_ptr<sdbusplus::asio::connection>'
return shared_ptr<_Tp>(_Sp_alloc_shared_tag<_Alloc>{__a},
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/../lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12/bits/shared_ptr.h:464:4: note: Calling constructor for '__shared_ptr<sdbusplus::asio::connection, __gnu_cxx::_S_atomic>'