Home
last modified time | relevance | path

Searched refs:sys_sem (Results 1 – 10 of 10) sorted by relevance

/Zephyr-Core-3.6.0/include/zephyr/sys/
Dsem.h34 struct sys_sem { struct
64 struct sys_sem _name = { \
75 STRUCT_SECTION_ITERABLE_ALTERNATE(k_sem, sys_sem, _name) = { \
96 int sys_sem_init(struct sys_sem *sem, unsigned int initial_count,
112 int sys_sem_give(struct sys_sem *sem);
128 int sys_sem_take(struct sys_sem *sem, k_timeout_t timeout);
139 unsigned int sys_sem_count_get(struct sys_sem *sem);
/Zephyr-Core-3.6.0/lib/os/
Dsem.c48 int sys_sem_init(struct sys_sem *sem, unsigned int initial_count, in sys_sem_init()
62 int sys_sem_give(struct sys_sem *sem) in sys_sem_give()
83 int sys_sem_take(struct sys_sem *sem, k_timeout_t timeout) in sys_sem_take()
102 unsigned int sys_sem_count_get(struct sys_sem *sem) in sys_sem_count_get()
109 int sys_sem_init(struct sys_sem *sem, unsigned int initial_count, in sys_sem_init()
117 int sys_sem_give(struct sys_sem *sem) in sys_sem_give()
124 int sys_sem_take(struct sys_sem *sem, k_timeout_t timeout) in sys_sem_take()
136 unsigned int sys_sem_count_get(struct sys_sem *sem) in sys_sem_count_get()
/Zephyr-Core-3.6.0/tests/kernel/mem_protect/sys_sem/src/
Dmain.c20 ZTEST_BMEM struct sys_sem simple_sem;
21 ZTEST_BMEM struct sys_sem low_prio_sem;
22 ZTEST_BMEM struct sys_sem mid_prio_sem;
23 ZTEST_DMEM struct sys_sem high_prio_sem;
38 sys_sem_give((struct sys_sem *)semaphore); in isr_sem_give()
43 sys_sem_take((struct sys_sem *)semaphore, K_NO_WAIT); in isr_sem_take()
129 ZTEST(sys_sem, test_basic_sem_test) in ZTEST() argument
158 ZTEST(sys_sem, test_simple_sem_from_isr) in ZTEST() argument
178 ZTEST_USER(sys_sem, test_simple_sem_from_task) in ZTEST_USER() argument
197 ZTEST_USER(sys_sem, test_sem_take_no_wait) in ZTEST_USER() argument
[all …]
/Zephyr-Core-3.6.0/tests/kernel/mem_protect/sys_sem/
DCMakeLists.txt5 project(sys_sem) project
/Zephyr-Core-3.6.0/doc/kernel/services/synchronization/
Dsemaphores.rst143 The sys_sem exists in user memory working as counter semaphore for user mode
144 thread when user mode enabled. When user mode isn't enabled, sys_sem behaves
/Zephyr-Core-3.6.0/tests/net/socket/getaddrinfo/src/
Dmain.c40 static ZTEST_BMEM struct sys_sem wait_data;
/Zephyr-Core-3.6.0/tests/net/socket/misc/src/
Dmain.c91 static ZTEST_BMEM struct sys_sem send_sem;
/Zephyr-Core-3.6.0/doc/releases/
Drelease-notes-2.0.rst599 …8443` - [Coverity CID :203454]Error handling issues in /tests/kernel/mem_protect/sys_sem/src/main.c
1287 * :github:`15139` - implement sys_sem that can reside in user memory
Drelease-notes-2.5.rst1629 * :github:`28881` - tests/kernel/mem_protect/sys_sem: qemu_x86_64 intermittent failure
1711 * :github:`28014` - tests: kernel: mem_protect: sys_sem: failed when CONFIG_FPU is activated
Drelease-notes-2.4.rst1640 …030` - [Coverity CID :209379] Unchecked return value in tests/kernel/mem_protect/sys_sem/src/main.c