diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2019-12-10 11:09:32 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2020-02-12 09:08:41 +0100 |
commit | 8a43adbe47454689149bac27adc45439eab44965 (patch) | |
tree | 3c853d662a32f182b44af8170d6d5c6b2ab90932 /cpukit/include/rtems/score/freechain.h | |
parent | score: Add _Freechain_Pop() (diff) | |
download | rtems-8a43adbe47454689149bac27adc45439eab44965.tar.bz2 |
score: Add _Freechain_Extend()
Update #3835.
Diffstat (limited to 'cpukit/include/rtems/score/freechain.h')
-rw-r--r-- | cpukit/include/rtems/score/freechain.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/cpukit/include/rtems/score/freechain.h b/cpukit/include/rtems/score/freechain.h index e656f64f8e..eaee077366 100644 --- a/cpukit/include/rtems/score/freechain.h +++ b/cpukit/include/rtems/score/freechain.h @@ -104,6 +104,24 @@ RTEMS_INLINE_ROUTINE void *_Freechain_Pop( Freechain_Control *freechain ) } /** + * @brief Extend the freechain with new nodes. + * + * @param freechain The freechain control. + * @param allocator The allocator function. + * @param number_nodes_to_extend The number of nodes to extend. + * @param node_size The node size. + * + * @retval NULL The extend operation failed. + * @retval nodes Pointer to the new nodes. + */ +void *_Freechain_Extend( + Freechain_Control *freechain, + Freechain_Allocator allocator, + size_t number_nodes_to_extend, + size_t node_size +); + +/** * @brief Gets a node from the freechain. * * @param[in, out] freechain The freechain control. |