blob: 8da027fd80dbed99d56777b56d562779fdf4cb08 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
copyrights:
- Copyright (C) 2014 embedded brains GmbH (http://www.embedded-brains.de)
enabled-by: []
interface-brief: |
Returns the pointer to the container of a specified member pointer.
interface-definition:
default: |
( (_type *) ( (${/if/c/uintptr_t:/interface-name}) ( _m ) - ${/if/c/offsetof:/interface-name}( _type, _member_name ) ) )
variants: []
interface-description: null
interface-name: RTEMS_CONTAINER_OF
interface-params:
- description: |
is the pointer to a member of the container.
dir: null
name: _m
- description: |
is the type of the container.
dir: null
name: _type
- description: |
is the designator name of the container member.
dir: null
name: _member_name
interface-return:
return: |
Returns the pointer to the container of a specified member pointer.
return-values: []
interface-type: macro
links:
- role: interface-placement
uid: header
- role: interface-ingroup
uid: /groups/api/basedefs
type: interface
|