Zephyr API Documentation
2.7.0-rc2
A Scalable Open Source RTOS
|
Macros | |
#define | SEM_ARRAY_SIZE 16 |
Functions | |
K_SEM_DEFINE (sem1, 0, 1) | |
static int | test_object (struct k_sem *sem, int retval) |
void | object_permission_checks (struct k_sem *sem, bool skip_init) |
void | test_generic_object (void) |
Test to verify object permission. More... | |
void | test_kobj_assign_perms_on_alloc_obj (void) |
Test requestor thread will implicitly be assigned permission on the dynamically allocated object. More... | |
void | test_no_ref_dyn_kobj_release_mem (void) |
Test dynamically allocated kernel object release memory. More... | |
void | test_main (void) |
Variables | |
struct k_sem | sem1 |
static struct k_sem | semarray [16] |
static struct k_sem * | dyn_sem [16] |
static struct k_mutex * | test_dyn_mutex |
static struct k_sem | sem2 |
static char | bad_sem [sizeof(struct k_sem)] |
static struct k_sem | sem3 |
#define SEM_ARRAY_SIZE 16 |
K_SEM_DEFINE | ( | sem1 | , |
0 | , | ||
1 | |||
) |
Test to verify object permission.
Test requestor thread will implicitly be assigned permission on the dynamically allocated object.
Test dynamically allocated kernel object release memory.
Dynamically allocated kernel objects whose access is controlled by the permission system will use object permission as a reference count. If no threads have access to an object, the object's memory released.
|
static |
|
static |
|
static |
|
extern |
|
static |
|
static |
|
static |
|
static |