/Zephyr-latest/samples/subsys/llext/edk/k-ext1/src/ |
D | main.c | 15 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/ |
D | main.c | 15 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/ |
D | threads_kernel_objects_ext.c | 32 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()
|
D | threads_kernel_objects_ext.h | 14 extern struct k_sem my_sem;
|
D | test_llext.c | 95 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/ |
D | main.c | 36 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/ |
D | main.c | 39 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/ |
D | smp_lorawan.c | 51 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/ |
D | main.c | 37 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/ |
D | mock_backend.c | 16 extern struct k_sem my_sem; 36 k_sem_give(&my_sem); in char_out()
|
D | main.c | 22 K_SEM_DEFINE(my_sem, 0, 1); 36 k_sem_take(&my_sem, K_FOREVER); in log_msgs()
|
/Zephyr-latest/doc/kernel/services/synchronization/ |
D | semaphores.rst | 65 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/ |
D | index.rst | 291 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/ |
D | polling.rst | 96 &my_sem, 0), 118 &my_sem);
|
/Zephyr-latest/tests/net/tcp/src/ |
D | main.c | 1329 struct k_sem *my_sem = user_data; in connection_closed() local 1331 k_sem_give(my_sem); in connection_closed()
|