Home
last modified time | relevance | path

Searched refs:dyn_sem (Results 1 – 2 of 2) sorted by relevance

/Zephyr-Core-3.5.0/tests/kernel/mem_protect/obj_validation/src/
Dmain.c20 static struct k_sem *dyn_sem[SEM_ARRAY_SIZE]; variable
98 dyn_sem[i] = k_object_alloc(K_OBJ_SEM); in ZTEST()
99 zassert_not_null(dyn_sem[i], "couldn't allocate semaphore"); in ZTEST()
103 k_object_access_grant(dyn_sem[i], &z_main_thread); in ZTEST()
109 zassert_false(test_object(dyn_sem[i], -EINVAL)); in ZTEST()
110 k_object_access_revoke(dyn_sem[i], k_current_get()); in ZTEST()
111 object_permission_checks(dyn_sem[i], false); in ZTEST()
112 k_object_free(dyn_sem[i]); in ZTEST()
113 zassert_false(test_object(dyn_sem[i], -EBADF)); in ZTEST()
/Zephyr-Core-3.5.0/tests/kernel/threads/thread_stack/src/
Dmain.c445 struct k_sem *dyn_sem = k_object_alloc(K_OBJ_SEM); in no_op_entry() local
446 k_sem_init(dyn_sem, 1, 1); in no_op_entry()
447 printk("allocated semaphore %p\n", dyn_sem); in no_op_entry()