summaryrefslogtreecommitdiffstats
path: root/cpukit/rtems/src
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2020-10-14 10:14:10 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2020-11-23 10:43:19 +0100
commit76263d8fc99b7e79f10cc9503067b3c5f570c513 (patch)
tree25c6a29119e08544112e814e1200e4038c8fd7a2 /cpukit/rtems/src
parentrtems: Move _Partition_Allocate_buffer() (diff)
downloadrtems-76263d8fc99b7e79f10cc9503067b3c5f570c513.tar.bz2
rtems: Move _Partition_Free_buffer()
It is only used by rtems_partition_return_buffer().
Diffstat (limited to 'cpukit/rtems/src')
-rw-r--r--cpukit/rtems/src/partreturnbuffer.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/cpukit/rtems/src/partreturnbuffer.c b/cpukit/rtems/src/partreturnbuffer.c
index 73d5438225..9afda8f85e 100644
--- a/cpukit/rtems/src/partreturnbuffer.c
+++ b/cpukit/rtems/src/partreturnbuffer.c
@@ -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,