summaryrefslogtreecommitdiffstats
path: root/cpukit/score/include/rtems/score/chain.h
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/score/include/rtems/score/chain.h')
-rw-r--r--cpukit/score/include/rtems/score/chain.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/cpukit/score/include/rtems/score/chain.h b/cpukit/score/include/rtems/score/chain.h
index ebb0f24e8c..f0a837f379 100644
--- a/cpukit/score/include/rtems/score/chain.h
+++ b/cpukit/score/include/rtems/score/chain.h
@@ -254,6 +254,18 @@ bool _Chain_Get_with_empty_check(
Chain_Node **the_node
);
+/**
+ * @brief Returns the node count of the chain.
+ *
+ * @param[in] chain The chain.
+ *
+ * @note It does NOT disable interrupts to ensure the atomicity of the
+ * operation.
+ *
+ * @return The node count of the chain.
+ */
+size_t _Chain_Node_count_unprotected( const Chain_Control *chain );
+
#ifndef __RTEMS_APPLICATION__
#include <rtems/score/chain.inl>
#endif