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_SCHED_THREAD_USAGE
125typedef struct _thread_base _thread_base_t;
127#if defined(CONFIG_THREAD_STACK_INFO)
129struct _thread_stack_info {
151typedef struct _thread_stack_info _thread_stack_info_t;
154#if defined(CONFIG_USERSPACE)
155struct _mem_domain_info {
164#ifdef CONFIG_THREAD_USERSPACE_LOCAL_DATA
165struct _thread_userspace_local_data {
166#if defined(CONFIG_ERRNO) && !defined(CONFIG_ERRNO_IN_TLS)
173#ifdef CONFIG_SCHED_THREAD_USAGE
183#ifdef CONFIG_SCHED_THREAD_USAGE_ANALYSIS
196#ifdef CONFIG_SCHED_THREAD_USAGE_ALL
229#if defined(CONFIG_POLL)
230 struct z_poller poller;
233#if defined(CONFIG_EVENTS)
240#if defined(CONFIG_THREAD_MONITOR)
248#if defined(CONFIG_THREAD_NAME)
250 char name[CONFIG_THREAD_MAX_NAME_LEN];
253#ifdef CONFIG_THREAD_CUSTOM_DATA
258#ifdef CONFIG_THREAD_USERSPACE_LOCAL_DATA
259 struct _thread_userspace_local_data *userspace_local_data;
262#if defined(CONFIG_ERRNO) && !defined(CONFIG_ERRNO_IN_TLS)
263#ifndef CONFIG_USERSPACE
269#if defined(CONFIG_THREAD_STACK_INFO)
274#if defined(CONFIG_USERSPACE)
284#if defined(CONFIG_USE_SWITCH)
298#if defined(CONFIG_THREAD_LOCAL_STORAGE)
303#ifdef CONFIG_DEMAND_PAGING_THREAD_STATS
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:313
struct k_thread_runtime_stats k_thread_runtime_stats_t
__UINT32_TYPE__ uint32_t
Definition: stdint.h:60
__UINT64_TYPE__ uint64_t
Definition: stdint.h:61
__UINT8_TYPE__ uint8_t
Definition: stdint.h:58
__UINTPTR_TYPE__ uintptr_t
Definition: stdint.h:75
__UINT16_TYPE__ uint16_t
Definition: stdint.h:59
__INT8_TYPE__ int8_t
Definition: stdint.h:42
Definition: kernel.h:5078
Memory Domain.
Definition: mem_domain.h:80
Definition: mem_manage.h:83
struct _thread_base base
Definition: thread.h:218
struct k_thread * next_thread
Definition: thread.h:245
struct _thread_arch arch
Definition: thread.h:309
void * init_data
Definition: thread.h:224
void * switch_handle
Definition: thread.h:293
struct k_heap * resource_pool
Definition: thread.h:296
k_thread_stack_t * stack_obj
Definition: thread.h:278
void * custom_data
Definition: thread.h:255
struct __thread_entry entry
Definition: thread.h:242
void * syscall_frame
Definition: thread.h:280
struct _thread_stack_info stack_info
Definition: thread.h:271
_wait_q_t join_queue
Definition: thread.h:227
struct _mem_domain_info mem_domain_info
Definition: thread.h:276
int swap_retval
Definition: thread.h:290
struct _callee_saved callee_saved
Definition: thread.h:221