zephyr/lib/posix
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
..
getopt iterable_sections: move to specific header 2023-05-22 10:42:30 +02:00
_common.c posix: rename some files for brevity 2023-07-06 11:47:07 -04:00
barrier.c posix: Implement pthread_barrieratter functions 2023-07-09 10:40:57 -04:00
clock.c posix: implement clock_nanosleep 2023-08-30 13:02:58 -07:00
CMakeLists.txt posix: signal: implement strsignal 2023-07-18 15:35:42 -04:00
cond.c POSIX: Implement pthread_condattr functions 2023-08-30 13:01:03 -07:00
eventfd.c posix: eventfd: remove redundant conditional 2023-07-21 06:33:19 -04:00
fnmatch.c posix: fnmatch: correct (many) compliance issues 2023-03-03 17:40:14 +09:00
fs.c posix: fs: Fixes stat command to return file information 2023-06-23 17:04:34 -04:00
Kconfig posix: signal: check RTSIG limit 2023-07-18 15:35:42 -04:00
Kconfig.barrier posix: split supported features into separate Kconfig files 2023-07-06 11:47:07 -04:00
Kconfig.clock posix: split supported features into separate Kconfig files 2023-07-06 11:47:07 -04:00
Kconfig.cond posix: split supported features into separate Kconfig files 2023-07-06 11:47:07 -04:00
Kconfig.eventfd posix: split supported features into separate Kconfig files 2023-07-06 11:47:07 -04:00
Kconfig.fnmatch posix: split supported features into separate Kconfig files 2023-07-06 11:47:07 -04:00
Kconfig.fs posix: split supported features into separate Kconfig files 2023-07-06 11:47:07 -04:00
Kconfig.getopt posix: split supported features into separate Kconfig files 2023-07-06 11:47:07 -04:00
Kconfig.key posix: split supported features into separate Kconfig files 2023-07-06 11:47:07 -04:00
Kconfig.limits posix: signal: check RTSIG limit 2023-07-18 15:35:42 -04:00
Kconfig.mqueue posix: split supported features into separate Kconfig files 2023-07-06 11:47:07 -04:00
Kconfig.mutex posix: split supported features into separate Kconfig files 2023-07-06 11:47:07 -04:00
Kconfig.pthread pthread: facilitate dynamically allocated thread stacks 2023-07-24 12:59:43 -04:00
Kconfig.semaphore posix: split supported features into separate Kconfig files 2023-07-06 11:47:07 -04:00
Kconfig.signal posix: signal: implement strsignal 2023-07-18 15:35:42 -04:00
Kconfig.spinlock posix: split supported features into separate Kconfig files 2023-07-06 11:47:07 -04:00
Kconfig.template.pooled_ipc_type posix: split supported features into separate Kconfig files 2023-07-06 11:47:07 -04:00
Kconfig.template.pooled_type posix: split supported features into separate Kconfig files 2023-07-06 11:47:07 -04:00
Kconfig.template.with_url posix: split supported features into separate Kconfig files 2023-07-06 11:47:07 -04:00
Kconfig.timer posix: implement timer_getoverrun() 2023-07-10 09:30:33 +02:00
Kconfig.uname posix: implement uname 2023-07-09 16:57:16 -04:00
key.c posix: rename some files for brevity 2023-07-06 11:47:07 -04:00
mqueue.c posix: mqueue: do not typedef mq_attr 2023-01-23 09:57:31 -08:00
mutex.c posix: mutex: return ETIMEDOUT from pthread_mutex_timedlock() 2023-08-02 12:04:34 -04:00
nanosleep.c posix: implement clock_nanosleep 2023-08-30 13:02:58 -07:00
perror.c lib: posix: add perror() implementation 2022-07-04 22:53:36 +02:00
posix_internal.h pthread: facilitate dynamically allocated thread stacks 2023-07-24 12:59:43 -04:00
pthread.c posix: pthread: thread return value not set by pthread_join() 2023-07-30 19:17:49 -04:00
pthread_sched.h posix: sched: add support for SCHED_OTHER 2023-04-29 13:14:40 -07:00
rwlock.c lib: posix: pthread_rwlock: Fix a racy issue 2023-07-12 09:25:26 +02:00
sched.c posix: rename some files for brevity 2023-07-06 11:47:07 -04:00
semaphore.c lib: posix: semaphore: use consistent timebase in sem_timedwait 2022-06-24 20:12:05 +02:00
signal.c posix: signal: extend strsignal buf to cover entire INT range 2023-08-04 15:54:18 -04:00
sleep.c lib: posix: update usleep() to follow the POSIX spec 2022-11-24 19:31:33 -05:00
spinlock.c posix: spinlock: additional kconfig for k_spinlock being size 0 2023-07-06 16:45:26 +00:00
timer.c kernel: Modify the signature of k_mem_slab_free() 2023-09-03 18:20:59 -04:00
uname.c posix: implement uname 2023-07-09 16:57:16 -04:00