Home
last modified time | relevance | path

Searched refs:my_sem (Results 1 – 15 of 15) sorted by relevance

/Zephyr-latest/samples/subsys/llext/edk/k-ext1/src/
Dmain.c15 static struct k_sem *my_sem; variable
30 k_sem_give(my_sem); in tick_sub()
43 my_sem = k_object_alloc(K_OBJ_SEM); in start()
44 k_sem_init(my_sem, 0, 1); in start()
55 k_sem_take(my_sem, K_FOREVER); in start()
/Zephyr-latest/samples/subsys/llext/edk/ext3/src/
Dmain.c15 static struct k_sem *my_sem; variable
30 k_sem_give(my_sem); in tick_sub()
43 my_sem = k_object_alloc(K_OBJ_SEM); in start()
44 k_sem_init(my_sem, 0, 1); in start()
56 k_sem_take(my_sem, K_FOREVER); in start()
/Zephyr-latest/tests/subsys/llext/src/
Dthreads_kernel_objects_ext.c32 k_sem_take(&my_sem, K_FOREVER); in test_thread()
54 zassert_not_null(&my_sem); in test_entry()
55 k_sem_give(&my_sem); in test_entry()
Dthreads_kernel_objects_ext.h14 extern struct k_sem my_sem;
Dtest_llext.c95 K_SEM_DEFINE(my_sem, 1, 1);
96 EXPORT_SYMBOL(my_sem);
110 k_object_access_grant(&my_sem, llext_thread); in threads_objects_test_setup()
/Zephyr-latest/tests/misc/test_build/src/
Dmain.c36 struct k_sem *my_sem, struct k_sem *other_sem) in helloLoop() argument
40 k_sem_take(my_sem, K_FOREVER); in helloLoop()
/Zephyr-latest/samples/subsys/tracing/src/
Dmain.c39 struct k_sem *my_sem, struct k_sem *other_sem) in helloLoop() argument
45 k_sem_take(my_sem, K_FOREVER); in helloLoop()
/Zephyr-latest/subsys/mgmt/mcumgr/transport/src/
Dsmp_lorawan.c51 struct k_sem my_sem; member
119 k_sem_give(&msg->my_sem); in smp_lorawan_uplink_thread()
190 k_sem_init(&tx_data.my_sem, 0, 1); in smp_lorawan_uplink()
192 k_sem_take(&tx_data.my_sem, K_FOREVER); in smp_lorawan_uplink()
/Zephyr-latest/samples/synchronization/src/
Dmain.c37 struct k_sem *my_sem, struct k_sem *other_sem) in hello_loop() argument
45 k_sem_take(my_sem, K_FOREVER); in hello_loop()
/Zephyr-latest/tests/subsys/logging/log_switch_format/src/
Dmock_backend.c16 extern struct k_sem my_sem;
36 k_sem_give(&my_sem); in char_out()
Dmain.c22 K_SEM_DEFINE(my_sem, 0, 1);
36 k_sem_take(&my_sem, K_FOREVER); in log_msgs()
/Zephyr-latest/doc/kernel/services/synchronization/
Dsemaphores.rst65 struct k_sem my_sem;
67 k_sem_init(&my_sem, 0, 1);
76 K_SEM_DEFINE(my_sem, 0, 1);
91 k_sem_give(&my_sem);
111 if (k_sem_take(&my_sem, K_MSEC(50)) != 0) {
/Zephyr-latest/doc/kernel/services/scheduling/
Dindex.rst291 static k_sem my_sem;
295 k_sem_give(&my_sem);
300 k_sem_init(&my_sem, 0, 1);
307 if (k_sem_take(&my_sem, K_NO_WAIT) == 0) {
333 static k_sem my_sem;
337 k_sem_give(&my_sem);
342 k_sem_init(&my_sem, 0, 1);
354 if (k_sem_take(&my_sem, K_NO_WAIT) == 0) {
/Zephyr-latest/doc/kernel/services/
Dpolling.rst96 &my_sem, 0),
118 &my_sem);
/Zephyr-latest/tests/net/tcp/src/
Dmain.c1329 struct k_sem *my_sem = user_data; in connection_closed() local
1331 k_sem_give(my_sem); in connection_closed()