zephyr/doc/kernel
Henri Xavier 1a276d0ac6 ring_buffer: Introduce RING_BUF_ITEM_SIZEOF
Currently, to compute the 'item' size in a ring buffer, we have
`SIZE32_OF`.

Several issues with this:
- `SIZE32_OF` only works on variables, not types, due to an extra
 parenthesis pair. Indeed, `sizeof((int))` is not valid C, whereas
 `sizeof((my_var))` is.
- `SIZE32_OF` is not a proper public API
- `SIZE32_OF` rounds down if the argument size is not a multiple
 of 4 bytes.

Thus, we introduce a proper `RING_BUF_ITEM_SIZEOF`, fixing the
aforementioned issues.

Signed-off-by: Henri Xavier <datacomos@huawei.com>
2022-09-20 09:08:14 +00:00
..
data_structures ring_buffer: Introduce RING_BUF_ITEM_SIZEOF 2022-09-20 09:08:14 +00:00
drivers device_mmio: Introduce DEVICE_MMIO_NAMED_ROM_INIT_BY_NAME 2022-06-16 11:26:10 +02:00
iterable_sections
memory_management doc: kernel: Re-organise memory management API pages 2022-06-01 15:26:48 +02:00
services doc: Update documentation related to pipes 2022-08-17 19:31:25 +02:00
timing_functions
usermode scripts: move gen_kobject_list.py to scripts/build/gen_kobject_list.py 2022-07-12 10:03:45 +02:00
util
code-relocation.rst
index.rst doc: develop: Add 'Language Support' sub-category 2022-06-01 15:26:48 +02:00
timeutil.rst