Zephyr API Documentation 4.0.0-rc2
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
k_thread Struct Reference

Thread Structure. More...

#include <thread.h>

Data Fields

struct _thread_base base
 
struct _callee_saved callee_saved
 defined by the architecture, but all archs need these
 
void * init_data
 static thread init data
 
_wait_q_t join_queue
 threads waiting in k_thread_join()
 
struct __thread_entry entry
 thread entry and parameters description
 
struct k_threadnext_thread
 next item in list of all threads
 
void * custom_data
 crude thread-local storage
 
struct _thread_stack_info stack_info
 Stack Info.
 
struct _mem_domain_info mem_domain_info
 memory domain info of the thread
 
k_thread_stack_tstack_obj
 Base address of thread stack.
 
void * syscall_frame
 current syscall frame pointer
 
int swap_retval
 z_swap() return value
 
void * switch_handle
 Context handle returned via arch_switch()
 
struct k_heapresource_pool
 resource pool
 
_wait_q_t halt_queue
 threads waiting in k_thread_suspend()
 
struct _thread_arch arch
 arch-specifics: must always be at the end
 

Detailed Description

Thread Structure.

Field Documentation

◆ arch

struct _thread_arch k_thread::arch

arch-specifics: must always be at the end

◆ base

struct _thread_base k_thread::base

◆ callee_saved

struct _callee_saved k_thread::callee_saved

defined by the architecture, but all archs need these

◆ custom_data

void* k_thread::custom_data

crude thread-local storage

◆ entry

struct __thread_entry k_thread::entry

thread entry and parameters description

◆ halt_queue

_wait_q_t k_thread::halt_queue

threads waiting in k_thread_suspend()

◆ init_data

void* k_thread::init_data

static thread init data

◆ join_queue

_wait_q_t k_thread::join_queue

threads waiting in k_thread_join()

◆ mem_domain_info

struct _mem_domain_info k_thread::mem_domain_info

memory domain info of the thread

◆ next_thread

struct k_thread* k_thread::next_thread

next item in list of all threads

◆ resource_pool

struct k_heap* k_thread::resource_pool

resource pool

◆ stack_info

struct _thread_stack_info k_thread::stack_info

Stack Info.

◆ stack_obj

k_thread_stack_t* k_thread::stack_obj

Base address of thread stack.

If memory mapped stack (CONFIG_THREAD_STACK_MEM_MAPPED) is enabled, this is the physical address of the stack.

◆ swap_retval

int k_thread::swap_retval

z_swap() return value

◆ switch_handle

void* k_thread::switch_handle

Context handle returned via arch_switch()

◆ syscall_frame

void* k_thread::syscall_frame

current syscall frame pointer


The documentation for this struct was generated from the following file: