diff options
| -rw-r--r-- | src/include/usr/targeting/common/util.H | 9 | ||||
| -rw-r--r-- | src/usr/targeting/common/util.C | 12 |
2 files changed, 20 insertions, 1 deletions
diff --git a/src/include/usr/targeting/common/util.H b/src/include/usr/targeting/common/util.H index bb11c70f6..301e521d5 100644 --- a/src/include/usr/targeting/common/util.H +++ b/src/include/usr/targeting/common/util.H @@ -94,7 +94,14 @@ uint32_t get_huid( const Target* i_target ); void update_hwas_changed_mask(Target * i_target); /** - * @brief Set HWAS Changed Mask to subscription mask + * @brief Set HWAS Changed Mask to specific bits in subscription mask + * @param[in] Pointer to a Target + * @param[in] bit mask of bits to set + */ +void update_hwas_changed_mask(Target * i_target, const uint64_t i_bits); + +/** + * @brief Clear bit in HWAS Changed Mask * @param[in] Pointer to a Target * @param[in] bit to clear */ diff --git a/src/usr/targeting/common/util.C b/src/usr/targeting/common/util.C index d592d411f..dc6bc5af3 100644 --- a/src/usr/targeting/common/util.C +++ b/src/usr/targeting/common/util.C @@ -109,6 +109,18 @@ void update_hwas_changed_mask(Target * i_target) } /** + * @brief set HWAS Changed flag to specific bits + * + * This will be used by different services when the target needs processing. + */ +void update_hwas_changed_mask(Target * i_target, const uint64_t i_bits) +{ + i_target->setAttr<ATTR_HWAS_STATE_CHANGED_FLAG>( + i_target->getAttr<ATTR_HWAS_STATE_CHANGED_SUBSCRIPTION_MASK>() & + i_bits); +} + +/** * @brief clear bit in HWAS Changed Mask * * This will be used by the appropriate services when they have handled |

