Zephyr API Documentation  2.7.0-rc2
A Scalable Open Source RTOS
k_thread Struct Reference

#include <thread.h>

Data Fields

struct _thread_base base
 
struct _callee_saved callee_saved
 
voidinit_data
 
_wait_q_t join_queue
 
struct __thread_entry entry
 
struct k_threadnext_thread
 
voidcustom_data
 
struct _thread_stack_info stack_info
 
struct _mem_domain_info mem_domain_info
 
k_thread_stack_tstack_obj
 
voidsyscall_frame
 
int swap_retval
 
voidswitch_handle
 
struct k_heapresource_pool
 
struct _thread_arch arch
 

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

◆ 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

◆ 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: