Zephyr API Documentation  3.6.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
Architecture-specific Thread Local Storage APIs

Functions

size_t arch_tls_stack_setup (struct k_thread *new_thread, char *stack_ptr)
 Setup Architecture-specific TLS area in stack.
 

Detailed Description

Function Documentation

◆ arch_tls_stack_setup()

size_t arch_tls_stack_setup ( struct k_thread new_thread,
char *  stack_ptr 
)

#include </home/runner/work/sdk-nrf/sdk-nrf/ncs/zephyr/kernel/include/kernel_arch_interface.h>

Setup Architecture-specific TLS area in stack.

This sets up the stack area for thread local storage. The structure inside TLS area is architecture specific.

Parameters
new_threadNew thread object
stack_ptrStack pointer
Returns
Number of bytes taken by the TLS area