Zephyr Project API 3.7.0
A Scalable Open Source RTOS
|
#include <zephyr/kernel.h>
#include <zephyr/internal/syscall_handler.h>
#include <zephyr/ztest.h>
#include <kernel_internal.h>
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) |
ZTEST (object_validation, test_generic_object) | |
Test to verify object permission. | |
ZTEST (object_validation, test_kobj_assign_perms_on_alloc_obj) | |
Test requestor thread will implicitly be assigned permission on the dynamically allocated object. | |
ZTEST (object_validation, test_no_ref_dyn_kobj_release_mem) | |
Test dynamically allocated kernel object release memory. | |
void * | object_validation_setup (void) |
ZTEST_SUITE (object_validation, NULL, object_validation_setup, NULL, NULL, NULL) | |
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 | |||
) |
void object_permission_checks | ( | struct k_sem * | sem, |
bool | skip_init | ||
) |
void * object_validation_setup | ( | void | ) |
|
static |
ZTEST | ( | object_validation | , |
test_generic_object | |||
) |
Test to verify object permission.
ZTEST | ( | object_validation | , |
test_kobj_assign_perms_on_alloc_obj | |||
) |
Test requestor thread will implicitly be assigned permission on the dynamically allocated object.
ZTEST | ( | object_validation | , |
test_no_ref_dyn_kobj_release_mem | |||
) |
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.
ZTEST_SUITE | ( | object_validation | , |
NULL | , | ||
object_validation_setup | , | ||
NULL | , | ||
NULL | , | ||
NULL | |||
) |
|
static |
|
static |
|
extern |
|
static |
|
static |
|
static |
|
static |