Searched refs:initial_count (Results 1 – 9 of 9) sorted by relevance
/Zephyr-Core-3.7.0/lib/os/ |
D | sem.c | 47 int sys_sem_init(struct sys_sem *sem, unsigned int initial_count, in sys_sem_init() argument 51 (initial_count > limit) || (limit > INT_MAX)) { in sys_sem_init() 55 (void)atomic_set(&sem->futex.val, initial_count); in sys_sem_init() 108 int sys_sem_init(struct sys_sem *sem, unsigned int initial_count, in sys_sem_init() argument 111 k_sem_init(&sem->kernel_sem, initial_count, limit); in sys_sem_init()
|
/Zephyr-Core-3.7.0/kernel/ |
D | sem.c | 45 int z_impl_k_sem_init(struct k_sem *sem, unsigned int initial_count, in z_impl_k_sem_init() argument 51 CHECKIF(limit == 0U || initial_count > limit) { in z_impl_k_sem_init() 57 sem->count = initial_count; in z_impl_k_sem_init() 76 int z_vrfy_k_sem_init(struct k_sem *sem, unsigned int initial_count, in z_vrfy_k_sem_init() argument 80 return z_impl_k_sem_init(sem, initial_count, limit); in z_vrfy_k_sem_init()
|
/Zephyr-Core-3.7.0/subsys/portability/cmsis_rtos_v2/ |
D | semaphore.c | 24 osSemaphoreId_t osSemaphoreNew(uint32_t max_count, uint32_t initial_count, in osSemaphoreNew() argument 44 k_sem_init(&semaphore->z_semaphore, initial_count, max_count); in osSemaphoreNew()
|
/Zephyr-Core-3.7.0/lib/libc/armstdc/src/ |
D | threading_weak.c | 41 int __weak z_impl_k_sem_init(struct k_sem *sem, unsigned int initial_count, in z_impl_k_sem_init() argument
|
/Zephyr-Core-3.7.0/include/zephyr/sys/ |
D | sem.h | 96 int sys_sem_init(struct sys_sem *sem, unsigned int initial_count,
|
/Zephyr-Core-3.7.0/include/zephyr/ |
D | kernel.h | 3205 #define Z_SEM_INITIALIZER(obj, initial_count, count_limit) \ argument 3208 .count = (initial_count), \ 3248 __syscall int k_sem_init(struct k_sem *sem, unsigned int initial_count, 3324 #define K_SEM_DEFINE(name, initial_count, count_limit) \ argument 3326 Z_SEM_INITIALIZER(name, initial_count, count_limit); \ 3328 ((initial_count) <= (count_limit)) && \
|
/Zephyr-Core-3.7.0/include/zephyr/portability/ |
D | cmsis_os2.h | 607 osSemaphoreId_t osSemaphoreNew(uint32_t max_count, uint32_t initial_count, const osSemaphoreAttr_t …
|
/Zephyr-Core-3.7.0/subsys/tracing/sysview/ |
D | SYSVIEW_Zephyr.txt | 41 40 k_sem_init sem=%I, initial_count=%u, | Returns %ErrCodePosix
|
/Zephyr-Core-3.7.0/doc/kernel/usermode/ |
D | syscalls.rst | 56 __syscall void k_sem_init(struct k_sem *sem, unsigned int initial_count, 179 … static inline void k_sem_init(struct k_sem * sem, unsigned int initial_count, unsigned int limit) 183 …arch_syscall_invoke3(*(uintptr_t *)&sem, *(uintptr_t *)&initial_count, *(uintptr_t *)&limit, K_SYS… 188 z_impl_k_sem_init(sem, initial_count, limit);
|