1 | SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause |
---|
2 | brief: | |
---|
3 | Returns the buffer to the partition. |
---|
4 | copyrights: |
---|
5 | - Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de) |
---|
6 | - Copyright (C) 1988, 2008 On-Line Applications Research Corporation (OAR) |
---|
7 | definition: |
---|
8 | default: |
---|
9 | attributes: null |
---|
10 | body: null |
---|
11 | params: |
---|
12 | - ${../../type/if/id:/name} ${.:/params[0]/name} |
---|
13 | - void *${.:/params[1]/name} |
---|
14 | return: ${../../status/if/code:/name} |
---|
15 | variants: [] |
---|
16 | description: | |
---|
17 | This directive returns the buffer specified by ${.:/params[1]/name} to the |
---|
18 | partition specified by ${.:/params[0]/name}. |
---|
19 | enabled-by: true |
---|
20 | index-entries: |
---|
21 | - return buffer to partition |
---|
22 | interface-type: function |
---|
23 | links: |
---|
24 | - role: interface-placement |
---|
25 | uid: header |
---|
26 | - role: interface-ingroup |
---|
27 | uid: group |
---|
28 | name: rtems_partition_return_buffer |
---|
29 | notes: | |
---|
30 | This directive will not cause the running task to be preempted. |
---|
31 | |
---|
32 | Returning a buffer to a global partition which does not reside on the local |
---|
33 | node will generate a request telling the remote node to return the buffer to |
---|
34 | the partition. |
---|
35 | |
---|
36 | Returning a buffer multiple times is an error. It will corrupt the internal |
---|
37 | state of the partition. |
---|
38 | params: |
---|
39 | - description: is the partition identifier. |
---|
40 | dir: null |
---|
41 | name: id |
---|
42 | - description: is the pointer to the buffer to return. |
---|
43 | dir: null |
---|
44 | name: buffer |
---|
45 | return: |
---|
46 | return: null |
---|
47 | return-values: |
---|
48 | - description: | |
---|
49 | The requested operation was successful. |
---|
50 | value: ${../../status/if/successful:/name} |
---|
51 | - description: | |
---|
52 | There was no partition with the specified identifier. |
---|
53 | value: ${../../status/if/invalid-id:/name} |
---|
54 | - description: | |
---|
55 | The buffer referenced by ${.:/params[1]/name} was not in the |
---|
56 | partition. |
---|
57 | value: ${../../status/if/invalid-address:/name} |
---|
58 | type: interface |
---|