7#ifndef ZEPHYR_INCLUDE_KERNEL_THREAD_H_
8#define ZEPHYR_INCLUDE_KERNEL_THREAD_H_
10#ifdef CONFIG_DEMAND_PAGING_THREAD_STATS
33#ifdef CONFIG_THREAD_MONITOR
34struct __thread_entry {
78#if __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
89#ifdef CONFIG_SCHED_DEADLINE
107#ifdef CONFIG_SCHED_CPU_MASK
115#ifdef CONFIG_SYS_CLOCK_EXISTS
120#ifdef CONFIG_TIMESLICE_PER_THREAD
126#ifdef CONFIG_SCHED_THREAD_USAGE
131typedef struct _thread_base _thread_base_t;
133#if defined(CONFIG_THREAD_STACK_INFO)
135struct _thread_stack_info {
157typedef struct _thread_stack_info _thread_stack_info_t;
160#if defined(CONFIG_USERSPACE)
161struct _mem_domain_info {
170#ifdef CONFIG_THREAD_USERSPACE_LOCAL_DATA
171struct _thread_userspace_local_data {
172#if defined(CONFIG_ERRNO) && !defined(CONFIG_ERRNO_IN_TLS) && !defined(CONFIG_LIBC_ERRNO)
179#ifdef CONFIG_SCHED_THREAD_USAGE
189#ifdef CONFIG_SCHED_THREAD_USAGE_ANALYSIS
202#ifdef CONFIG_SCHED_THREAD_USAGE_ALL
212#if __cplusplus && !defined(CONFIG_SCHED_THREAD_USAGE) && \
213 !defined(CONFIG_SCHED_THREAD_USAGE_ANALYSIS) && !defined(CONFIG_SCHED_THREAD_USAGE_ALL)
244#if defined(CONFIG_POLL)
245 struct z_poller poller;
248#if defined(CONFIG_EVENTS)
255#if defined(CONFIG_THREAD_MONITOR)
263#if defined(CONFIG_THREAD_NAME)
265 char name[CONFIG_THREAD_MAX_NAME_LEN];
268#ifdef CONFIG_THREAD_CUSTOM_DATA
273#ifdef CONFIG_THREAD_USERSPACE_LOCAL_DATA
274 struct _thread_userspace_local_data *userspace_local_data;
277#if defined(CONFIG_ERRNO) && !defined(CONFIG_ERRNO_IN_TLS) && !defined(CONFIG_LIBC_ERRNO)
278#ifndef CONFIG_USERSPACE
284#if defined(CONFIG_THREAD_STACK_INFO)
289#if defined(CONFIG_USERSPACE)
299#if defined(CONFIG_USE_SWITCH)
313#if defined(CONFIG_THREAD_LOCAL_STORAGE)
318#ifdef CONFIG_DEMAND_PAGING_THREAD_STATS
330void z_init_cpu(
int id);
331void z_sched_ipi(
void);
332void z_smp_start_cpu(
int id);
struct z_thread_stack_element k_thread_stack_t
Typedef of struct z_thread_stack_element.
Definition: arch_interface.h:44
void(* k_thread_entry_t)(void *p1, void *p2, void *p3)
Thread entry point function type.
Definition: arch_interface.h:46
ZTEST_BMEM int timeout
Definition: main.c:31
struct _dnode sys_dnode_t
Definition: dlist.h:49
struct k_thread * k_tid_t
Definition: thread.h:328
struct k_thread_runtime_stats k_thread_runtime_stats_t
void(* k_thread_timeslice_fn_t)(struct k_thread *thread, void *data)
Definition: kernel_structs.h:255
__UINT32_TYPE__ uint32_t
Definition: stdint.h:90
__INT32_TYPE__ int32_t
Definition: stdint.h:74
__UINT64_TYPE__ uint64_t
Definition: stdint.h:91
__UINT8_TYPE__ uint8_t
Definition: stdint.h:88
__UINTPTR_TYPE__ uintptr_t
Definition: stdint.h:105
__UINT16_TYPE__ uint16_t
Definition: stdint.h:89
__INT8_TYPE__ int8_t
Definition: stdint.h:72
Definition: kernel.h:5144
Memory Domain.
Definition: mem_domain.h:80
Definition: mem_manage.h:91
struct _thread_base base
Definition: thread.h:233
struct k_thread * next_thread
Definition: thread.h:260
struct _thread_arch arch
Definition: thread.h:324
void * init_data
Definition: thread.h:239
void * switch_handle
Definition: thread.h:308
struct k_heap * resource_pool
Definition: thread.h:311
k_thread_stack_t * stack_obj
Definition: thread.h:293
void * custom_data
Definition: thread.h:270
struct __thread_entry entry
Definition: thread.h:257
void * syscall_frame
Definition: thread.h:295
struct _thread_stack_info stack_info
Definition: thread.h:286
_wait_q_t join_queue
Definition: thread.h:242
struct _mem_domain_info mem_domain_info
Definition: thread.h:291
int swap_retval
Definition: thread.h:305
struct _callee_saved callee_saved
Definition: thread.h:236