6#ifndef ZEPHYR_INCLUDE_CLEANUP_KERNEL_H_
7#define ZEPHYR_INCLUDE_CLEANUP_KERNEL_H_
14#if defined(CONFIG_SCOPE_CLEANUP_HELPERS)
SPDX-FileCopyrightText: Copyright The Zephyr Project Contributors SPDX-License-Identifier: Apache-2....
#define SCOPE_DEFER_DEFINE(_func,...)
Define a scoped defer type.
Definition cleanup.h:164
#define SCOPE_GUARD_DEFINE(_name, _type, _lock, _unlock)
Define a scoped guard type.
Definition cleanup.h:118
#define K_FOREVER
Generate infinite timeout delay.
Definition kernel.h:1666
void k_heap_free(struct k_heap *h, void *mem)
Free memory allocated by k_heap_alloc().
void k_free(void *ptr)
Free memory allocated from heap.
void k_mem_slab_free(struct k_mem_slab *slab, void *mem)
Free memory allocated from a memory slab.
int k_mutex_unlock(struct k_mutex *mutex)
Unlock a mutex.
int k_mutex_lock(struct k_mutex *mutex, k_timeout_t timeout)
Lock a mutex.
void k_sem_give(struct k_sem *sem)
Give a semaphore.
int k_sem_take(struct k_sem *sem, k_timeout_t timeout)
Take a semaphore.
void k_sched_unlock(void)
Unlock the scheduler.
Mutex Structure.
Definition kernel.h:3402
Semaphore structure.
Definition kernel.h:3607