zephyr/subsys/net/lib
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
..
capture includes: prefer <zephyr/kernel.h> over <zephyr/zephyr.h> 2022-09-05 16:31:47 +02:00
coap net: lib: coap: refactor client init path options 2023-08-25 13:15:12 +02:00
config net: config: Add VLAN identifier as network initial configuration 2023-06-21 09:32:41 +02:00
dns net: rename shadow variables 2023-08-10 08:14:43 +00:00
http net: http: define http service and resource iterable sections 2023-03-08 13:57:13 +00:00
lwm2m kernel: Modify the signature of k_mem_slab_free() 2023-09-03 18:20:59 -04:00
mqtt net: mqtt: close tcp socket after websocket_disconnect 2023-06-19 09:18:45 +01:00
mqtt_sn net: rename shadow variables 2023-08-10 08:14:43 +00:00
sntp net: sntp: support building without NET_SOCKETS_POSIX_NAMES 2023-04-24 09:23:17 -04:00
sockets kernel: Modify the signature of k_mem_slab_free() 2023-09-03 18:20:59 -04:00
socks includes: prefer <zephyr/kernel.h> over <zephyr/zephyr.h> 2022-09-05 16:31:47 +02:00
tftp net: tftp: Add client context 2023-02-28 10:29:30 +01:00
tls_credentials net: lib: tls_credentials: earlier initialisation 2023-07-12 14:50:09 +02:00
utils net: sntp: support building without NET_SOCKETS_POSIX_NAMES 2023-04-24 09:23:17 -04:00
websocket subsys/net/lib/socket: move to timepoint API 2023-07-25 09:12:26 +02:00
zperf net: lib: zperf: add missing init.h 2023-08-29 12:17:15 +01:00
CMakeLists.txt net: conn_mgr: Reorganize files 2023-05-11 12:15:44 +02:00
Kconfig net: conn_mgr: Reorganize files 2023-05-11 12:15:44 +02:00