summaryrefslogtreecommitdiffstats
path: root/spec/rtems/basedefs/if/alloc-size.yml
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2020-09-16 11:48:29 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2020-09-16 16:33:00 +0200
commit3bdf817950eadd75a2785b62220eb0b04533b9fd (patch)
treeed221c6de813e7a473e2882af6326bf2e5b44bd1 /spec/rtems/basedefs/if/alloc-size.yml
parentspec: Specify rtems_task_construct() (diff)
downloadrtems-central-3bdf817950eadd75a2785b62220eb0b04533b9fd.tar.bz2
spec: Group items by component
Diffstat (limited to 'spec/rtems/basedefs/if/alloc-size.yml')
-rw-r--r--spec/rtems/basedefs/if/alloc-size.yml32
1 files changed, 32 insertions, 0 deletions
diff --git a/spec/rtems/basedefs/if/alloc-size.yml b/spec/rtems/basedefs/if/alloc-size.yml
new file mode 100644
index 00000000..76a52baa
--- /dev/null
+++ b/spec/rtems/basedefs/if/alloc-size.yml
@@ -0,0 +1,32 @@
+SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
+brief: |
+ Tells the compiler in a declaration that the memory allocation size parameter
+ of this function is similar to malloc().
+copyrights:
+- Copyright (C) 2018 embedded brains GmbH (http://www.embedded-brains.de)
+definition:
+ default: ''
+ variants:
+ - definition: |
+ __attribute__((__alloc_size__(_index)))
+ enabled-by:
+ - defined(${/compiler/if/gnuc:/name})
+description: null
+enabled-by: true
+interface-type: macro
+links:
+- role: interface-placement
+ uid: header
+- role: interface-ingroup
+ uid: group
+name: RTEMS_ALLOC_SIZE
+notes: null
+params:
+- description: |
+ is the allocation size parameter index (starting with one).
+ dir: null
+ name: _index
+return:
+ return: null
+ return-values: []
+type: interface