ESP-IDF
OS_ALIGN
is only used within ESP-IDF.
Symbol previews are coming soon...
Symbols
loading...
Files
loading...
Summary
Syntax
Arguments
Examples
References
Call Tree
Data Use
Class Tree
Override Tree
Implementations
Instances
Lifecycle
SourceVu
ESP-IDF Framework and Examples
ESP-IDF
OS_ALIGN
OS_ALIGN macro
Syntax
Show:
Summary
Declaration
from
os.h:36
#define
OS_ALIGN
(
__n
,
__a
)
(
\
(
(
(
__n
)
&
(
(
__a
)
-
1
)
)
==
0
)
?
\
(
__n
)
:
\
(
(
__n
)
+
(
(
__a
)
-
(
(
__n
)
&
(
(
__a
)
-
1
)
)
)
)
\
)
Arguments
Argument
__n
__a
Examples
References
from
examples
Code
Location
#define
OS_ALIGN
(
__n
,
__a
)
(
\
os.h:36
(
OS_ALIGN
(
BLE_HS_HCI_FRAG_DATABUF_SIZE
,
4
)
)
ble_hs_hci.c:291
block_size
=
OS_ALIGN
(
block_size
,
OS_ALIGNMENT
)
;
mem.c:32
block_size
=
OS_ALIGN
(
block_size
+
sizeof
(
struct
os_mbuf
)
,
OS_ALIGNMENT
)
;
mem.c:155
#define
OS_MEM_TRUE_BLOCK_SIZE
(
bsize
)
OS_ALIGN
(
bsize
,
OS_ALIGNMENT
)
os_mempool.c:32
OS_ALIGN
(
OS_MSYS_1_BLOCK_SIZE
,
4
)
os_msys_init.c:46
OS_ALIGN
(
OS_MSYS_2_BLOCK_SIZE
,
4
)
os_msys_init.c:57
char
_k_mem_slab_buffer_
[
OS_ALIGN
(
(
BT_MESH_APP_SEG_SDU_MAX
)
*
(
CONFIG_BT_MESH_SEG_BUFS
)
,
OS_ALIGNMENT
)
]
;
transport.c:139
.
block_size
=
OS_ALIGN
(
BT_MESH_APP_SEG_SDU_MAX
,
OS_ALIGNMENT
)
,
transport.c:143
#define
POOL_ACL_SIZE
(
OS_ALIGN
(
MYNEWT_VAL
(
BLE_TRANSPORT_ACL_SIZE
)
+
\
transport.c:70
Call Tree
from
examples
All items filtered out
All items filtered out
Data Use
from
examples
All items filtered out
All items filtered out
Class Tree
from
examples
All items filtered out
All items filtered out
Override Tree
from
examples
All items filtered out
All items filtered out
Implementations
from
examples
All items filtered out
All items filtered out
Instances
from
examples
Lifecycle
from
examples
All items filtered out
All items filtered out