mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-09-23 09:07:52 +08:00
rtems: Move _Partition_Free_buffer()
It is only used by rtems_partition_return_buffer().
This commit is contained in:
@@ -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.
|
||||
*
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user