zephyr/subsys/net/ip
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
..
6lo_private.h
6lo.c
6lo.h
canbus_socket.c
canbus_socket.h
CMakeLists.txt net: syscalls: use zephyr_syscall_header 2023-06-17 07:57:45 -04:00
connection.c net: pkt_filter: Introduce additional hooks for pkt_filter 2023-07-10 09:27:47 +02:00
connection.h
dhcpv4.c net: dhcpv4: Accept unicast replies 2023-07-25 14:15:45 +02:00
dhcpv4.h net: dhcpv4: Accept unicast replies 2023-07-25 14:15:45 +02:00
icmpv4.c
icmpv4.h
icmpv6.c net: icmpv6: allow multiple handlers 2023-08-28 08:24:31 +01:00
icmpv6.h
igmp.c net: iface: Improve thread safety of net_if_ipv*_maddr_* functions 2023-05-10 11:06:15 +02:00
ipv4_autoconf_internal.h
ipv4_autoconf.c
ipv4_fragment.c net: fix few mismatched CONTAINER_OF 2023-08-30 10:21:31 +02:00
ipv4.c net: dhcpv4: Accept unicast replies 2023-07-25 14:15:45 +02:00
ipv4.h net: context: Set priority based on DSCP 2023-05-16 13:21:25 +02:00
ipv6_fragment.c net: fix few mismatched CONTAINER_OF 2023-08-30 10:21:31 +02:00
ipv6_mld.c net: iface: Improve thread safety of net_if_ipv*_maddr_* functions 2023-05-10 11:06:15 +02:00
ipv6_nbr.c net: if: Add possibility to disable ND per interface 2023-04-29 12:24:49 +02:00
ipv6.c net: pkt_filter: Introduce additional hooks for pkt_filter 2023-07-10 09:27:47 +02:00
ipv6.h net: context: Set priority based on DSCP 2023-05-16 13:21:25 +02:00
Kconfig net: Add name support to network interface 2023-08-31 14:43:36 +02:00
Kconfig.debug
Kconfig.ipv4 net: dhcpv4: Accept unicast replies 2023-07-25 14:15:45 +02:00
Kconfig.ipv6
Kconfig.mgmt kernel/timeout: introduce the timepoint API 2023-07-25 09:12:26 +02:00
Kconfig.stack
Kconfig.stats
nbr.c
nbr.h
net_context.c net: context: Remove shadowing variable in net_context_recv() 2023-08-09 20:01:39 -04:00
net_core.c init: remove the need for a dummy device pointer in SYS_INIT functions 2023-04-12 14:28:07 +00:00
net_if.c net: Add name support to network interface 2023-08-31 14:43:36 +02:00
net_mgmt.c net: Make net_mgmt queue timeout configurable 2023-04-28 10:35:27 -05:00
net_pkt.c kernel: Modify the signature of k_mem_slab_free() 2023-09-03 18:20:59 -04:00
net_private.h net: wifi_mgmt: Fix size calculation for net_mgmt info 2023-08-25 10:52:14 +02:00
net_shell.c net: shell: Print user friendly network interface name 2023-08-31 14:43:36 +02:00
net_shell.h
net_stats.c
net_stats.h
net_tc_mapping.h
net_tc.c
net_timeout.c
packet_socket.c
packet_socket.h
promiscuous.c
route.c net: fix few mismatched CONTAINER_OF 2023-08-30 10:21:31 +02:00
route.h
tcp_internal.h net: socket: asynchronous connect 2023-04-17 11:35:20 +02:00
tcp_private.h net: tcp: Implement TCP new Reno collision avoidance 2023-08-04 15:05:17 +02:00
tcp.c kernel: Modify the signature of k_mem_slab_free() 2023-09-03 18:20:59 -04:00
tcp.h
tp_priv.h
tp.c
tp.h
trickle.c
udp_internal.h
udp.c
utils.c net: utils: fix offset used before range check 2023-06-16 05:46:05 -04:00