/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 …]
|
/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 | 61 subtree that implement a certain interface. An optional list of interfaces may 64 objects/services/interfaces in the subtree are returned. 68 - param: subtree - the root of the tree. Using "/" will search the whole tree 122 subtree that implement a certain interface and an endpoint of the input 125 interfaces are passed in, then all objects/services/interfaces in the subtree 131 - param: subtree - the root of the tree. Using "/" will search the whole tree 196 subtree that implement certain interfaces and endpoints that end by input `id`. 199 in, then all objects/services/interfaces in the subtree and associated endpoint 282 - param: subtree - the root of the tree. Using "/" will search the whole tree 289 - 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/bmcweb/redfish-core/lib/ |
H A D | systems.hpp | 423 const dbus::utility::MapperGetSubTreeResponse& subtree) in afterSystemGetSubTree() argument 435 object : subtree) in afterSystemGetSubTree() 1424 const dbus::utility::MapperGetSubTreeResponse& subtree) { in getTrustedModuleRequiredToBoot() argument 1433 if (subtree.empty()) in getTrustedModuleRequiredToBoot() 1441 if (subtree.size() > 1) in getTrustedModuleRequiredToBoot() 1445 subtree.size()); in getTrustedModuleRequiredToBoot() 1453 if (subtree[0].first.empty() || subtree[0].second.size() != 1) in getTrustedModuleRequiredToBoot() 1460 const std::string& path = subtree[0].first; in getTrustedModuleRequiredToBoot() 1461 const std::string& serv = subtree[0].second.begin()->first; in getTrustedModuleRequiredToBoot() 1512 const dbus::utility::MapperGetSubTreeResponse& subtree) { in setTrustedModuleRequiredToBoot() argument [all …]
|
H A D | storage.hpp | 157 const dbus::utility::MapperGetSubTreeResponse& subtree) in afterSystemsStorageGetSubtree() argument 167 subtree, in afterSystemsStorageGetSubtree() 173 if (storage == subtree.end()) in afterSystemsStorageGetSubtree() 221 const dbus::utility::MapperGetSubTreeResponse& subtree) in afterSubtree() argument 231 subtree, in afterSubtree() 237 if (storage == subtree.end()) in afterSubtree() 637 const dbus::utility::MapperGetSubTreeResponse& subtree) in afterGetSubtreeSystemsStorageDrive() argument 647 subtree, in afterGetSubtreeSystemsStorageDrive() 654 if (drive == subtree.end()) in afterGetSubtreeSystemsStorageDrive() 735 const dbus::utility::MapperGetSubTreeResponse& subtree) in afterChassisDriveCollectionSubtreeGet() argument [all …]
|
H A D | power_supply.hpp | 170 const dbus::utility::MapperGetSubTreeResponse& subtree, in afterGetValidPowerSupplyPath() argument 191 for (const auto& [objectPath, service] : subtree) in afterGetValidPowerSupplyPath() 218 const dbus::utility::MapperGetSubTreeResponse& subtree) { in getValidPowerSupplyPath() argument 219 afterGetValidPowerSupplyPath(asyncResp, powerSupplyId, ec, subtree, in getValidPowerSupplyPath() 426 const dbus::utility::MapperGetSubTreeResponse& subtree) in handlePowerSupplyAttributesSubTreeResponse() argument 439 if (subtree.empty()) in handlePowerSupplyAttributesSubTreeResponse() 445 if (subtree.size() != 1) in handlePowerSupplyAttributesSubTreeResponse() 449 subtree.size()); in handlePowerSupplyAttributesSubTreeResponse() 454 const auto& [path, serviceMap] = *subtree.begin(); in handlePowerSupplyAttributesSubTreeResponse() 473 const dbus::utility::MapperGetSubTreeResponse& subtree) { in getEfficiencyPercent() 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 | led.hpp | 248 const dbus::utility::MapperGetSubTreeResponse& subtree, in handleLedGroupSubtree() argument 260 if (subtree.empty()) in handleLedGroupSubtree() 270 if (subtree.size() > 1) in handleLedGroupSubtree() 275 objPath, subtree.size()); in handleLedGroupSubtree() 280 const auto& [ledGroupPath, serviceMap] = *subtree.begin(); in handleLedGroupSubtree() 302 const dbus::utility::MapperGetSubTreeResponse& subtree) { in getLedGroupPath() argument 303 handleLedGroupSubtree(objPath, ec, subtree, callback); in getLedGroupPath()
|
/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/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 283 subtree = *sensorTree; in getSensorSubtree()
|
/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-fan-presence/ |
H A D | sdbusplus.hpp | 178 /** @brief Get subtree from the mapper without checking response. */ 198 /** @brief Get subtree from the mapper without checking response, 219 /** @brief Get subtree from the mapper. */ 227 … "Empty response from mapper GetSubTree, SubTree={SUBTREE}, Interface={INTERFACE}, Depth={DEPTH}", in getSubTree() 228 "SUBTREE", path, "INTERFACE", interface, "DEPTH", depth); in getSubTree() 234 /** @brief Get subtree paths from the mapper without checking response. */ 254 /** @brief Get subtree paths from the mapper. */ 262 …"Empty response from mapper GetSubTreePaths, SubTree={SUBTREE}, Interface={INTERFACE}, Depth={DEPT… in getSubTreePaths() 263 "SUBTREE", path, "INTERFACE", interface, "DEPTH", depth); in getSubTreePaths()
|
/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()
|