rtems: Move _Partition_Free_buffer()

It is only used by rtems_partition_return_buffer().
This commit is contained in:
Sebastian Huber
2020-11-23 10:43:19 +01:00
parent 6d413ef1f8
commit 76263d8fc9
2 changed files with 9 additions and 13 deletions
-13
View File
@@ -35,19 +35,6 @@ extern "C" {
* @{
*/
/**
* @brief Frees the_buffer to the_partition.
*
* This routine frees the_buffer to the_partition.
*/
RTEMS_INLINE_ROUTINE void _Partition_Free_buffer (
Partition_Control *the_partition,
Chain_Node *the_buffer
)
{
_Chain_Append_unprotected( &the_partition->Memory, the_buffer );
}
/**
* @brief Checks whether is on a valid buffer boundary for the_partition.
*
+9
View File
@@ -21,6 +21,15 @@
#endif
#include <rtems/rtems/partimpl.h>
#include <rtems/score/chainimpl.h>
static void _Partition_Free_buffer(
Partition_Control *the_partition,
void *the_buffer
)
{
_Chain_Append_unprotected( &the_partition->Memory, the_buffer );
}
rtems_status_code rtems_partition_return_buffer(
rtems_id id,