source: rtems-central/spec/rtems/part/if/get-buffer.yml @ 0500b9a

Last change on this file since 0500b9a was 0500b9a, checked in by Sebastian Huber <sebastian.huber@…>, on 12/01/20 at 13:23:41

interface/interfacedoc: Format parameter names

  • Property mode set to 100644
File size: 2.2 KB
Line 
1SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
2brief: |
3  Tries to get a buffer from the partition.
4copyrights:
5- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de)
6- Copyright (C) 1988, 2008 On-Line Applications Research Corporation (OAR)
7definition:
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: []
16description: |
17  This directive allows a buffer to be obtained from the partition specified in
18  the ${.:/params[0]/name} parameter.  The address of the allocated buffer is
19  returned through the ${.:/params[1]/name} parameter.
20enabled-by: true
21index-entries:
22- get buffer from partition
23- obtain buffer from partition
24interface-type: function
25links:
26- role: interface-placement
27  uid: header
28- role: interface-ingroup
29  uid: group
30name: rtems_partition_get_buffer
31notes: |
32  This directive will not cause the running task to be preempted.
33
34  The buffer start alignment is determined by the memory area and buffer size
35  used to create the partition.
36
37  A task cannot wait on a buffer to become available.
38
39  Getting a buffer from a global partition which does not reside on the local
40  node will generate a request telling the remote node to allocate a buffer
41  from the partition.
42params:
43- description: is the partition identifier.
44  dir: null
45  name: id
46- description: |
47    is the pointer to a buffer pointer variable.  The pointer to the allocated
48    buffer will be stored in this variable, in case of a successful operation.
49  dir: out
50  name: buffer
51return:
52  return: null
53  return-values:
54  - description: |
55      The requested operation was successful.
56    value: ${../../status/if/successful:/name}
57  - description: |
58      There was no partition with the specified identifier.
59    value: ${../../status/if/invalid-id:/name}
60  - description: |
61      The ${.:/params[1]/name} parameter was ${/c/if/null:/name}.
62    value: ${../../status/if/invalid-address:/name}
63  - description: |
64      There was no free buffer available to allocate and return.
65    value: ${../../status/if/unsatisfied:/name}
66type: interface
Note: See TracBrowser for help on using the repository browser.