/Zephyr-latest/kernel/ |
D | userspace_handler.c | 16 struct k_object *ko; in validate_kernel_object() local 19 ko = k_object_find(obj); in validate_kernel_object() 24 ret = k_object_validate(ko, K_OBJ_ANY, _OBJ_INIT_ANY); in validate_kernel_object() 27 k_object_dump_error(ret, obj, ko, otype); in validate_kernel_object() 32 return ko; in validate_kernel_object() 42 struct k_object *ko; in k_object_is_valid() local 44 ko = validate_kernel_object(obj, otype, _OBJ_INIT_TRUE); in k_object_is_valid() 46 return (ko != NULL); in k_object_is_valid() 59 struct k_object *ko; in z_vrfy_k_object_access_grant() local 62 ko = validate_any_object(object); in z_vrfy_k_object_access_grant() [all …]
|
D | userspace.c | 81 static void clear_perms_cb(struct k_object *ko, void *ctx_ptr); 526 struct k_object *ko; in thread_index_get() local 528 ko = k_object_find(thread); in thread_index_get() 530 if (ko == NULL) { in thread_index_get() 534 return ko->data.thread_id; in thread_index_get() 537 static void unref_check(struct k_object *ko, uintptr_t index) in unref_check() argument 541 sys_bitfield_clear_bit((mem_addr_t)&ko->perms, index); in unref_check() 544 if ((ko->flags & K_OBJ_FLAG_ALLOC) == 0U) { in unref_check() 549 void *vko = ko; in unref_check() 556 if (ko->perms[i] != 0U) { in unref_check() [all …]
|
D | thread.c | 289 struct k_object *ko = k_object_find(thread); in z_vrfy_k_thread_name_copy() local 294 if ((thread == NULL) || (ko->type != K_OBJ_THREAD) || in z_vrfy_k_thread_name_copy() 295 ((ko->flags & K_OBJ_FLAG_INITIALIZED) == 0)) { in z_vrfy_k_thread_name_copy()
|
D | sched.c | 1438 struct k_object *ko = k_object_find(thread); in thread_obj_validate() local 1439 int ret = k_object_validate(ko, K_OBJ_THREAD, _OBJ_INIT_TRUE); in thread_obj_validate() 1448 k_object_dump_error(ret, thread, ko, K_OBJ_THREAD); in thread_obj_validate()
|
/Zephyr-latest/include/zephyr/internal/ |
D | syscall_handler.h | 92 int k_object_validate(struct k_object *ko, enum k_objects otype, 107 struct k_object *ko, enum k_objects otype); 124 typedef void (*_wordlist_cb_func_t)(struct k_object *ko, void *context); 157 void k_thread_perms_set(struct k_object *ko, struct k_thread *thread); 168 void k_thread_perms_clear(struct k_object *ko, struct k_thread *thread); 522 static inline int k_object_validation_check(struct k_object *ko, in k_object_validation_check() argument 529 ret = k_object_validate(ko, otype, init); in k_object_validation_check() 533 k_object_dump_error(ret, obj, ko, otype); in k_object_validation_check()
|
/Zephyr-latest/scripts/build/ |
D | gen_kobject_list.py | 651 for addr, ko in all_objs.items(): 653 if ko.type_obj.api: 656 _, user_ram_allowed, _ = kobjects[ko.type_obj.name] 661 % (ko.type_obj.name, hex(addr))) 664 if (ko.type_obj.name == STACK_TYPE and 670 if ko.type_obj.name == "k_thread": 673 ko.data = thread_counter 675 elif ko.type_obj.name == "sys_mutex": 676 ko.data = "&kernel_mutexes[%d]" % sys_mutex_counter 678 elif ko.type_obj.name == "k_futex": [all …]
|
/Zephyr-latest/tests/kernel/mem_protect/mem_protect/src/ |
D | kobject.c | 1057 struct k_object *ko; in ZTEST() local 1072 ko = k_object_find(&child_thread); in ZTEST() 1073 ret = k_object_validate(ko, K_OBJ_ANY, _OBJ_INIT_FALSE); in ZTEST() 1077 ko = k_object_find(child_stack); in ZTEST() 1078 ret = k_object_validate(ko, K_OBJ_ANY, _OBJ_INIT_FALSE); in ZTEST() 1262 void *ko; in ZTEST() local 1304 ko = k_object_alloc(K_OBJ_ANY); in ZTEST() 1305 zassert_is_null(ko, "alloc obj (0x%lx)\n", (uintptr_t)ko); in ZTEST() 1306 ko = k_object_alloc(K_OBJ_LAST); in ZTEST() 1307 zassert_is_null(ko, "alloc obj (0x%lx)\n", (uintptr_t)ko); in ZTEST() [all …]
|
/Zephyr-latest/tests/kernel/mem_protect/userspace/src/ |
D | main.c | 935 struct k_object *ko; in ZTEST() local 942 ko = k_object_find(&dummy); in ZTEST() 943 zassert_true(ko == NULL, "not an invalid object"); in ZTEST() 947 ko = k_object_find(&recycle_sem); in ZTEST() 948 (void)memset(ko->perms, 0xFF, sizeof(ko->perms)); in ZTEST() 951 zassert_true(ko != NULL, "kernel object not found"); in ZTEST() 952 zassert_true(ko->flags & K_OBJ_FLAG_INITIALIZED, in ZTEST() 956 perms_count += POPCOUNT(ko->perms[i]); in ZTEST()
|
/Zephyr-latest/samples/subsys/ipc/openamp_rsc_table/ |
D | README.rst | 36 Enable ``SAMPLE_RPMSG_CLIENT`` configuration to build the :file:`rpmsg_client_sample.ko` module. 51 root@linuxshell: insmod rpmsg_client_sample.ko
|
/Zephyr-latest/doc/releases/ |
D | release-notes-2.5.rst | 1914 * :github:`16237` - disco_l475_iot1: samples/bluetooth/ipsp ko since 3151d26
|