zephyr/doc/kernel
Carles Cufi 8c748fd005 kernel: Modify the signature of k_mem_slab_free()
Modify the signature of the k_mem_slab_free() function with a new one,
replacing the old void **mem with void *mem as a parameter.

The following function:
void k_mem_slab_free(struct k_mem_slab *slab, void **mem);

has the wrong signature. mem is only used as a regular pointer, so there
is no need to use a double-pointer. The correct signature should be:
void k_mem_slab_free(struct k_mem_slab *slab, void *mem);

The issue with the current signature, although functional, is that it is
extremely confusing. I myself, a veteran Zephyr developer, was confused
by this parameter when looking at it recently.

All in-tree uses of the function have been adapted.

Fixes #61888.

Signed-off-by: Carles Cufi <carles.cufi@nordicsemi.no>
2023-09-03 18:20:59 -04:00
..
data_structures doc: Fix kernel data structures typos 2022-10-10 21:01:51 -04:00
drivers fix: doc: in kernel/drivers interrupts function had mismatching types 2023-02-22 16:58:29 -05:00
iterable_sections
memory_management kernel: Modify the signature of k_mem_slab_free() 2023-09-03 18:20:59 -04:00
services scripts: build: gen_isr_tables: make bit masks configurable 2023-08-10 10:55:41 -04:00
timing_functions
usermode doc: kernel/syscalls: about limiting syscalls in binaries 2023-06-17 07:57:45 -04:00
util
code-relocation.rst doc: kernel: code-relocation: Remove erroneous note 2023-07-10 10:01:42 +00:00
index.rst
timeutil.rst