Searched refs:sys_mutex (Results 1 – 13 of 13) sorted by relevance
/Zephyr-Core-3.5.0/include/zephyr/sys/ |
D | mutex.h | 28 struct sys_mutex { struct 54 struct sys_mutex name 68 static inline void sys_mutex_init(struct sys_mutex *mutex) in sys_mutex_init() 77 __syscall int z_sys_mutex_kernel_lock(struct sys_mutex *mutex, 80 __syscall int z_sys_mutex_kernel_unlock(struct sys_mutex *mutex); 102 static inline int sys_mutex_lock(struct sys_mutex *mutex, k_timeout_t timeout) in sys_mutex_lock() 125 static inline int sys_mutex_unlock(struct sys_mutex *mutex) in sys_mutex_unlock() 137 struct sys_mutex { 142 struct sys_mutex name = { \ 146 static inline void sys_mutex_init(struct sys_mutex *mutex) [all …]
|
/Zephyr-Core-3.5.0/lib/os/ |
D | mutex.c | 12 static struct k_mutex *get_k_mutex(struct sys_mutex *mutex) in get_k_mutex() 24 static bool check_sys_mutex_addr(struct sys_mutex *addr) in check_sys_mutex_addr() 30 return Z_SYSCALL_MEMORY_WRITE(addr, sizeof(struct sys_mutex)); in check_sys_mutex_addr() 33 int z_impl_z_sys_mutex_kernel_lock(struct sys_mutex *mutex, k_timeout_t timeout) in z_impl_z_sys_mutex_kernel_lock() 44 static inline int z_vrfy_z_sys_mutex_kernel_lock(struct sys_mutex *mutex, in z_vrfy_z_sys_mutex_kernel_lock() 55 int z_impl_z_sys_mutex_kernel_unlock(struct sys_mutex *mutex) in z_impl_z_sys_mutex_kernel_unlock() 66 static inline int z_vrfy_z_sys_mutex_kernel_unlock(struct sys_mutex *mutex) in z_vrfy_z_sys_mutex_kernel_unlock()
|
/Zephyr-Core-3.5.0/tests/benchmarks/footprints/src/ |
D | mutex.c | 44 struct k_mutex sys_mutex; in run_system_mutex() local 46 k_mutex_init(&sys_mutex); in run_system_mutex() 48 k_mutex_lock(&sys_mutex, K_FOREVER); in run_system_mutex() 50 k_mutex_unlock(&sys_mutex); in run_system_mutex()
|
/Zephyr-Core-3.5.0/tests/kernel/mutex/sys_mutex/src/ |
D | thread_competition.c | 35 struct sys_mutex *pmutex = p1; in low_prio_wait_for_mutex() 50 struct sys_mutex *pmutex = p1; in high_prio_t1_wait_for_mutex() 65 struct sys_mutex *pmutex = p1; in high_prio_t2_wait_for_mutex()
|
D | main.c | 319 struct sys_mutex *mutexes[4] = { &mutex_1, &mutex_2, &mutex_3, in ZTEST_USER_OR_NOT() 321 struct sys_mutex *givemutex[3] = { &mutex_3, &mutex_2, &mutex_1 }; in ZTEST_USER_OR_NOT() 428 rv = sys_mutex_lock((struct sys_mutex *)NULL, K_NO_WAIT); in ZTEST() 430 rv = sys_mutex_lock((struct sys_mutex *)k_current_get(), K_NO_WAIT); in ZTEST() 432 rv = sys_mutex_unlock((struct sys_mutex *)NULL); in ZTEST() 434 rv = sys_mutex_unlock((struct sys_mutex *)k_current_get()); in ZTEST()
|
D | thread_12.c | 24 extern struct sys_mutex private_mutex;
|
/Zephyr-Core-3.5.0/doc/kernel/services/synchronization/ |
D | mutexes.rst | 184 sys_mutex behaves almost exactly like k_mutex, with the added advantage 185 that a sys_mutex instance can reside in user memory. When user mode isn't 186 enabled, sys_mutex behaves like k_mutex.
|
/Zephyr-Core-3.5.0/include/zephyr/net/ |
D | mqtt.h | 456 struct sys_mutex mutex;
|
/Zephyr-Core-3.5.0/tests/kernel/mem_protect/futex/src/ |
D | main.c | 43 ZTEST_BMEM struct sys_mutex also_not_a_futex;
|
/Zephyr-Core-3.5.0/doc/releases/ |
D | release-notes-1.14.rst | 569 * A new API sys_mutex has been introduced. It has the same semantics 572 * sys_mem_pool() now uses a sys_mutex() for concurrency control.
|
D | release-notes-2.0.rst | 597 * :github:`18445` - [Coverity CID :203507]Error handling issues in /tests/kernel/mutex/sys_mutex/sr…
|
D | release-notes-2.5.rst | 1724 * :github:`27829` - sys_mutex and futex missing documentation
|
D | release-notes-2.6.rst | 1429 * :github:`34116` - mec15xxevb_assy6853: tests/kernel/mutex/sys_mutex/
|