Home
last modified time | relevance | path

Searched refs:subtree (Results 1 – 25 of 84) sorted by relevance

1234

/openbmc/phosphor-objmgr/libmapper/
H A Dmapper.c431 struct mapper_async_subtree* subtree = userdata; in async_subtree_timeout_callback() local
433 sd_event_source_unref(subtree->event_source); in async_subtree_timeout_callback()
435 subtree->conn, NULL, "xyz.openbmc_project.ObjectMapper", in async_subtree_timeout_callback()
438 async_subtree_getpaths_callback, subtree, "sias", subtree->namespace, 0, in async_subtree_timeout_callback()
439 1, subtree->interface); in async_subtree_timeout_callback()
442 async_subtree_done(r, subtree); in async_subtree_timeout_callback()
452 struct mapper_async_subtree* subtree = userdata; in async_subtree_getpaths_callback() local
455 if (subtree->finished) in async_subtree_getpaths_callback()
465 if (subtree->op == MAPPER_OP_REMOVE) in async_subtree_getpaths_callback()
475 if ((r == EBUSY || r == ENOBUFS) && subtree->retry < mapper_busy_retries) in async_subtree_getpaths_callback()
[all …]
/openbmc/pyphosphor/obmc/utils/
H A Dpathtree.py19 def __init__(self, path_tree, subtree, depth): argument
23 self.subtree = ['/'] + list(filter(bool, subtree.split('/')))
26 for k in self.subtree:
30 raise KeyError(subtree)
44 path = self.subtree[0] + '/'.join(self.subtree[1:] + self.path)
80 def __init__(self, path_tree, subtree, depth): argument
81 super(PathTreeKeyIterator, self).__init__(path_tree, subtree, depth)
187 def keys(self, subtree='/', depth=None): argument
188 return [x for x in self.iterkeys(subtree, depth)]
190 def values(self, subtree='/', depth=None): argument
[all …]
H A Dtestpathtree.py255 self.assertEquals(set(['/a/b']), set(pt.keys(subtree='/a')))
262 self.assertEquals(set([2]), set(pt.values(subtree='/a')))
269 self.assertEquals(set([('/a/b', 2)]), set(pt.items(subtree='/a')))
277 self.assertEquals(set([('/a/b', 2)]), set(pt.dataitems(subtree='/a')))
285 self.assertEquals(set(['/a/b']), set(pt.keys(subtree='/a', depth=1)))
293 self.assertEquals(set([2]), set(pt.values(subtree='/a', depth=1)))
301 self.assertEquals(set([('/a/b', 2)]), set(pt.items(subtree='/a', depth=1)))
310 self.assertEquals(set([('/a/b', 2)]), set(pt.dataitems(subtree='/a', depth=1)))
/openbmc/phosphor-objmgr/src/test/
H A Dhandler.cpp216 std::vector<InterfaceMapType::value_type> subtree = in TEST_F() local
218 ASSERT_TRUE(subtree.empty()); in TEST_F()
226 void verifySubtree(std::span<InterfaceMapType::value_type> subtree) in verifySubtree() argument
228 ASSERT_EQ(subtree.size(), 2); in verifySubtree()
229 ConnectionNames connection = subtree[0].second; in verifySubtree()
234 connection = subtree[1].second; in verifySubtree()
247 std::vector<InterfaceMapType::value_type> subtree = in TEST_F() local
249 verifySubtree(subtree); in TEST_F()
252 subtree = getSubTree(interfaceMap, path0, 0, interfaces); in TEST_F()
253 verifySubtree(subtree); in TEST_F()
[all …]
/openbmc/bmcweb/redfish-core/lib/
H A Dsystems.hpp422 const dbus::utility::MapperGetSubTreeResponse& subtree) in afterSystemGetSubTree() argument
434 object : subtree) in afterSystemGetSubTree()
1410 const dbus::utility::MapperGetSubTreeResponse& subtree) { in getTrustedModuleRequiredToBoot() argument
1419 if (subtree.empty()) in getTrustedModuleRequiredToBoot()
1427 if (subtree.size() > 1) in getTrustedModuleRequiredToBoot()
1431 subtree.size()); in getTrustedModuleRequiredToBoot()
1439 if (subtree[0].first.empty() || subtree[0].second.size() != 1) in getTrustedModuleRequiredToBoot()
1446 const std::string& path = subtree[0].first; in getTrustedModuleRequiredToBoot()
1447 const std::string& serv = subtree[0].second.begin()->first; in getTrustedModuleRequiredToBoot()
1498 const dbus::utility::MapperGetSubTreeResponse& subtree) { in setTrustedModuleRequiredToBoot() argument
[all …]
H A Dstorage.hpp156 const dbus::utility::MapperGetSubTreeResponse& subtree) in afterSystemsStorageGetSubtree() argument
166 subtree, in afterSystemsStorageGetSubtree()
172 if (storage == subtree.end()) in afterSystemsStorageGetSubtree()
220 const dbus::utility::MapperGetSubTreeResponse& subtree) in afterSubtree() argument
230 subtree, in afterSubtree()
236 if (storage == subtree.end()) in afterSubtree()
636 const dbus::utility::MapperGetSubTreeResponse& subtree) in afterGetSubtreeSystemsStorageDrive() argument
646 subtree, in afterGetSubtreeSystemsStorageDrive()
653 if (drive == subtree.end()) in afterGetSubtreeSystemsStorageDrive()
734 const dbus::utility::MapperGetSubTreeResponse& subtree) in afterChassisDriveCollectionSubtreeGet() argument
[all …]
H A Dpower_supply.hpp164 const dbus::utility::MapperGetSubTreeResponse& subtree, in afterGetValidPowerSupplyPath() argument
177 for (const auto& [objectPath, service] : subtree) in afterGetValidPowerSupplyPath()
207 const dbus::utility::MapperGetSubTreeResponse& subtree) { in getValidPowerSupplyPath() argument
208 afterGetValidPowerSupplyPath(asyncResp, powerSupplyId, ec, subtree, in getValidPowerSupplyPath()
415 const dbus::utility::MapperGetSubTreeResponse& subtree) in handlePowerSupplyAttributesSubTreeResponse() argument
428 if (subtree.empty()) in handlePowerSupplyAttributesSubTreeResponse()
434 if (subtree.size() != 1) in handlePowerSupplyAttributesSubTreeResponse()
438 subtree.size()); in handlePowerSupplyAttributesSubTreeResponse()
443 const auto& [path, serviceMap] = *subtree.begin(); in handlePowerSupplyAttributesSubTreeResponse()
462 const dbus::utility::MapperGetSubTreeResponse& subtree) { in getEfficiencyPercent() argument
[all …]
H A Dpcie_slots.hpp177 const dbus::utility::MapperGetSubTreeResponse& subtree) in onMapperSubtreeDone() argument
185 if (subtree.empty()) in onMapperSubtreeDone()
201 for (const auto& pathServicePair : subtree) in onMapperSubtreeDone()
241 const dbus::utility::MapperGetSubTreeResponse& subtree) { in handlePCIeSlotCollectionGet() argument
242 onMapperSubtreeDone(asyncResp, chassisID, ec, subtree); in handlePCIeSlotCollectionGet()
H A Dredfish_util.hpp74 const dbus::utility::MapperGetSubTreeResponse& subtree) { in getMainChassisId() argument
80 if (subtree.empty()) in getMainChassisId()
86 std::size_t idPos = subtree[0].first.rfind('/'); in getMainChassisId()
88 (idPos + 1) >= subtree[0].first.size()) in getMainChassisId()
94 std::string chassisId = subtree[0].first.substr(idPos + 1); in getMainChassisId()
H A Dmanagers.hpp435 const dbus::utility::ManagedObjectType& subtree) { in setActiveFirmwareImage() argument
443 if (subtree.empty()) in setActiveFirmwareImage()
451 for (const auto& object : subtree) in setActiveFirmwareImage()
763 const dbus::utility::MapperGetSubTreeResponse& subtree) { in requestRoutesManager() argument
770 if (subtree.empty()) in requestRoutesManager()
777 if (subtree.size() > 1) in requestRoutesManager()
784 if (subtree[0].first.empty() || in requestRoutesManager()
785 subtree[0].second.size() != 1) in requestRoutesManager()
792 const std::string& path = subtree[0].first; in requestRoutesManager()
794 subtree[0].second[0].first; in requestRoutesManager()
[all …]
H A Dvirtual_media.hpp105 const dbus::utility::ManagedObjectType& subtree) { in findAndParseObject() argument
113 for (const auto& item : subtree) in findAndParseObject()
285 const dbus::utility::ManagedObjectType& subtree) { in getVmResourceList() argument
294 for (const auto& object : subtree) in getVmResourceList()
750 const dbus::utility::ManagedObjectType& subtree) mutable { in handleManagersVirtualMediaActionInsertPost() argument
761 for (const auto& object : subtree) in handleManagersVirtualMediaActionInsertPost()
820 const dbus::utility::ManagedObjectType& subtree) { in handleManagersVirtualMediaActionEject() argument
829 for (const auto& object : subtree) in handleManagersVirtualMediaActionEject()
/openbmc/phosphor-state-manager/target_files/
H A Dobmc-power-start-pre@.target5 Wants=mapper-subtree-remove@-xyz-openbmc\x5fproject-software\x3Axyz.openbmc_project.Software.Activa…
6 After=mapper-subtree-remove@-xyz-openbmc\x5fproject-software\x3Axyz.openbmc_project.Software.Activa…
7 Wants=mapper-subtree-remove@-xyz-openbmc\x5fproject-logging\x3Axyz.openbmc_project.Logging.ErrorBlo…
8 After=mapper-subtree-remove@-xyz-openbmc\x5fproject-logging\x3Axyz.openbmc_project.Logging.ErrorBlo…
/openbmc/bmcweb/redfish-core/include/utils/
H A Dcollection.hpp106 std::span<const std::string_view> interfaces, const std::string& subtree, in getCollectionToKey() argument
111 subtree, 0, interfaces, in getCollectionToKey()
118 std::span<const std::string_view> interfaces, const std::string& subtree) in getCollectionMembers() argument
120 getCollectionToKey(asyncResp, collectionPath, interfaces, subtree, in getCollectionMembers()
H A Dsw_utils.hpp174 const dbus::utility::MapperGetSubTreeResponse& subtree) in afterGetSubtree() argument
184 BMCWEB_LOG_DEBUG("Found {} images", subtree.size()); in afterGetSubtree()
189 obj : subtree) in afterGetSubtree()
275 const dbus::utility::MapperGetSubTreeResponse& subtree) { in afterAssociatedEndpoints() argument
278 subtree); in afterAssociatedEndpoints()
/openbmc/phosphor-dbus-monitor/mslverify/
H A Dverify.cpp82 auto subtree = util::sdbusplus::callMethodAndRead<SubTreeType>( in main() local
89 auto result = std::all_of(subtree.begin(), subtree.end(), in main()
/openbmc/phosphor-host-ipmid/dbus-sdr/
H A Dsdrutils.cpp79 static void filterSensors(SensorSubTree& subtree) in filterSensors() argument
97 subtree.erase(std::remove_if(subtree.begin(), subtree.end(), in filterSensors()
109 subtree.end()); in filterSensors()
112 uint16_t getSensorSubtree(std::shared_ptr<SensorSubTree>& subtree) in getSensorSubtree() argument
131 subtree = sensorTreePtr; in getSensorSubtree()
216 subtree = sensorTreePtr; in getSensorSubtree()
274 bool getSensorSubtree(SensorSubTree& subtree) in getSensorSubtree() argument
283 subtree = *sensorTree; in getSensorSubtree()
/openbmc/bmcweb/src/
H A Ddbus_utility.cpp113 const MapperGetSubTreeResponse& subtree) { callback(ec, subtree); }, in getSubTree() argument
148 const MapperGetSubTreeResponse& subtree) { callback(ec, subtree); }, in getAssociatedSubTree() argument
185 const MapperGetSubTreeResponse& subtree) { callback(ec, subtree); }, in getAssociatedSubTreeById() argument
/openbmc/linux/security/apparmor/include/
H A Dperms.h70 u32 subtree; /* allow perm on full subtree only when allow is set */ member
116 accum->subtree |= addend->subtree & ~addend->deny; in aa_perms_accum_raw()
143 accum->subtree &= addend->subtree & ~accum->deny; in aa_perms_accum()
/openbmc/phosphor-objmgr/src/systemd/
H A Dmapper-subtree-remove@.service.in2 Description=mapper subtree-remove %I
9 ExecStart=@BINDIR@/mapper subtree-remove %I
/openbmc/linux/lib/
H A Drbtree_test.c225 u32 subtree, max = node->val; in check_augmented() local
227 subtree = rb_entry(node->rb.rb_left, struct test_node, in check_augmented()
229 if (max < subtree) in check_augmented()
230 max = subtree; in check_augmented()
233 subtree = rb_entry(node->rb.rb_right, struct test_node, in check_augmented()
235 if (max < subtree) in check_augmented()
236 max = subtree; in check_augmented()
/openbmc/ibm-logging/
H A Dmanager.cpp201 DbusSubtree subtree; in createCalloutObjects() local
214 if (subtree.empty()) in createCalloutObjects()
216 subtree = getSubtree(bus, "/", 0, ASSET_IFACE); in createCalloutObjects()
217 if (subtree.empty()) in createCalloutObjects()
223 auto service = getService(callout, ASSET_IFACE, subtree); in createCalloutObjects()
/openbmc/bmcweb/include/google/
H A Dgoogle_service_root.hpp82 const dbus::utility::MapperGetSubTreeResponse& subtree) in hothGetSubtreeCallback() argument
89 for (const auto& [path, services] : subtree) in hothGetSubtreeCallback()
121 const dbus::utility::MapperGetSubTreeResponse& subtree) { in resolveRoT() argument
123 subtree); in resolveRoT()
/openbmc/s2600wf-misc/hsbp-manager/src/
H A Dhsbp_manager.cpp1563 const GetSubTreeType& subtree) { in updateAssets() argument
1575 for (const auto& [path, objDict] : subtree) in updateAssets()
1756 mapper::busName, mapper::path, mapper::interface, mapper::subtree, "/", in updateAssets()
1771 const GetSubTreeType& subtree) { in populateMuxes() argument
1779 for (const auto& [path, objDict] : subtree) in populateMuxes()
1846 mapper::busName, mapper::path, mapper::interface, mapper::subtree, in populateMuxes()
1859 const GetSubTreeType& subtree) { in populateHsbpBackplanes() argument
1868 if (subtree.empty()) in populateHsbpBackplanes()
1878 for (const auto& [path, objDict] : subtree) in populateHsbpBackplanes()
1946 mapper::busName, mapper::path, mapper::interface, mapper::subtree, "/", in populateHsbpBackplanes()
[all …]
/openbmc/docs/architecture/
H A Dobject-mapper.md60 subtree that implement a certain interface. An optional list of interfaces may
63 objects/services/interfaces in the subtree are returned.
67 - param: subtree - the root of the tree. Using "/" will search the whole tree
121 subtree that implement a certain interface and an endpoint of the input
124 interfaces are passed in, then all objects/services/interfaces in the subtree
130 - param: subtree - the root of the tree. Using "/" will search the whole tree
195 subtree that implement certain interfaces and endpoints that end by input `id`.
198 in, then all objects/services/interfaces in the subtree and associated endpoint
281 - param: subtree - the root of the tree. Using "/" will search the whole tree
288 - array of object paths in that subtree
[all …]
/openbmc/estoraged/src/
H A DgetConfig.cpp24 constexpr const char* subtree = "GetSubTree"; variable
100 mapper::busName, mapper::path, mapper::interface, mapper::subtree, "/", in getConfiguration()

1234