Lines Matching full:object

53 	/* Should fail because we don't have perms on this object */  in object_permission_checks()
55 "object should not have had permission granted"); in object_permission_checks()
62 "object should not have been initialized"); in object_permission_checks()
68 "object should have had sufficient permissions"); in object_permission_checks()
72 * @brief Test to verify object permission
75 * - The kernel must be able to associate kernel object memory addresses
76 * with whether the calling thread has access to that object, the object is
77 * of the expected type, and the object is of the expected init state.
100 /* Give an extra reference to another thread so the object in ZTEST()
106 /* dynamic object table well-populated with semaphores at this point */ in ZTEST()
119 * dynamically allocated object
122 * - Create kernel object semaphore, dynamically allocate it from the calling
124 * - Check that object's address is in bounds of that memory pool.
126 * the allocated object by using semaphore API k_sem_init()
140 /* dynamically allocate kernel object semaphore */ in ZTEST()
150 "semaphore object not in bound of thread's memory pool"); in ZTEST()
152 /* try to init that object, thread should have permissions implicitly */ in ZTEST()
157 * @brief Test dynamically allocated kernel object release memory
160 * the permission system will use object permission as a reference count.
161 * If no threads have access to an object, the object's memory released.
171 /* dynamically allocate kernel object mutex */ in ZTEST()
174 "Can not allocate dynamic kernel object"); in ZTEST()
181 /* check object was released, when no threads have access to it */ in ZTEST()
183 zassert_true(ret == -EBADF, "Dynamic kernel object not released"); in ZTEST()