/openbmc/phosphor-objmgr/libmapper/ |
H A D | mapper.c | 431 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 …]
|
H A D | app.c | 130 mapper_async_subtree* subtree = NULL; in subtree_main() local 135 "Usage: %s subtree-remove " in subtree_main() 174 &subtree, op); in subtree_main() 177 fprintf(stderr, "Error configuring subtree list: %s\n", strerror(-r)); in subtree_main() 244 " subtree-remove\n" in main() 260 if (!strcmp(argv[1], "subtree-remove")) in main()
|
/openbmc/pyphosphor/obmc/utils/ |
H A D | pathtree.py | 19 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 D | testpathtree.py | 255 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-dbus-interfaces/yaml/xyz/openbmc_project/ |
H A D | ObjectMapper.interface.yaml | 54 - name: subtree 57 The subtree path for which the result should be fetched. 61 The maximum subtree depth for which results should be fetched. 76 Obtain an array of paths where array elements are in subtree. 78 - name: subtree 81 The subtree path for which the result should be fetched. 85 The maximum subtree depth for which results should be fetched. 107 - name: subtree 110 The subtree path for which the result should be fetched. 114 The maximum subtree depth for which results should be fetched. [all …]
|
/openbmc/phosphor-objmgr/src/test/ |
H A D | handler.cpp | 216 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/phosphor-objmgr/src/ |
H A D | handler.hpp | 34 * @param reqPath Base path to search for the subtree 56 * @param reqPath Base path to search for the subtree 77 * @param id Identifier to search for the subtree 78 * @param objectPath Base path to search for the subtree 79 * @param subtreeInterfaces Interface filter for the subtree 101 * @param id Identifier to search for the subtree 102 * @param objectPath Base path to search for the subtree 103 * @param subtreeInterfaces Interface filter for the subtree
|
/openbmc/phosphor-state-manager/target_files/ |
H A D | obmc-power-start-pre@.target | 5 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/docs/architecture/ |
H A D | object-mapper.md | 60 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/linux/fs/btrfs/ |
H A D | qgroup.h | 47 * For balance, we need to swap subtree of subvolume and reloc trees. 48 * In theory, we need to trace all subtree blocks of both subvolume and reloc 55 * But there is a race window between subtree swap and transaction commit, 59 * So for balance, we use a delayed subtree tracing, whose workflow is: 61 * 1) Record the subtree root block get swapped. 63 * During subtree swap: 76 * 2) After subtree swap. 91 * Then we do subtree scan on both subtrees OA and NA. 101 * subtree rescan for them. 344 * Inform qgroup to trace a whole subtree, including all its child tree
|
/openbmc/bmcweb/redfish-core/include/utils/ |
H A D | collection.hpp | 97 * @param[in] subtree D-Bus base path to constrain search to. 106 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()
|
/openbmc/phosphor-dbus-monitor/mslverify/ |
H A D | verify.cpp | 76 // with a mapper subtree query. For each object, validate that in main() 82 auto subtree = util::sdbusplus::callMethodAndRead<SubTreeType>( in main() local 89 auto result = std::all_of(subtree.begin(), subtree.end(), in main()
|
/openbmc/bmcweb/redfish-core/lib/ |
H A D | systems.hpp | 422 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 D | power_supply.hpp | 164 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 D | storage.hpp | 156 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 D | pcie_slots.hpp | 177 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 D | redfish_util.hpp | 74 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()
|
/openbmc/linux/security/apparmor/include/ |
H A D | perms.h | 70 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/linux/include/linux/ |
H A D | interval_tree_generic.h | 18 * ITSUBTREE: name of ITTYPE field within ITSTRUCT holding last-in-subtree 86 * (Cond2 is satisfied by one of the subtree nodes) \ 93 * Some nodes in left subtree satisfy Cond2. \ 136 * property, holds the largest value in its last-in-subtree. \ 162 * First, search right subtree if suitable \
|
/openbmc/linux/tools/include/linux/ |
H A D | interval_tree_generic.h | 18 * ITSUBTREE: name of ITTYPE field within ITSTRUCT holding last-in-subtree 86 * (Cond2 is satisfied by one of the subtree nodes) \ 93 * Some nodes in left subtree satisfy Cond2. \ 136 * property, holds the largest value in its last-in-subtree. \ 162 * First, search right subtree if suitable \
|
/openbmc/phosphor-host-ipmid/dbus-sdr/ |
H A D | sdrutils.cpp | 79 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() 156 lg2::error("Failed to update subtree, path: {PATH}, error: {ERROR}", in getSensorSubtree() 216 subtree = sensorTreePtr; in getSensorSubtree() 274 bool getSensorSubtree(SensorSubTree& subtree) in getSensorSubtree() argument [all...] |
/openbmc/bmcweb/src/ |
H A D | dbus_utility.cpp | 113 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/phosphor-objmgr/src/systemd/ |
H A D | mapper-subtree-remove@.service.in | 2 Description=mapper subtree-remove %I 9 ExecStart=@BINDIR@/mapper subtree-remove %I
|
/openbmc/linux/Documentation/filesystems/nfs/ |
H A D | exporting.rst | 69 subtree is successfully reconnected to root. Until then dentries 70 in such subtree are retained only as long as there are references; 194 EXPORT_OP_NOSUBTREECHK - disallow subtree checking on this fs 200 inode to ensure that it's within an exported subtree. This is an 202 This flag exempts the filesystem from subtree checking and causes 203 exportfs to get back an error if it tries to enable subtree checking
|
/openbmc/linux/lib/ |
H A D | rbtree_test.c | 225 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()
|