zephyr::raw

Function k_thread_stack_free

source
pub unsafe extern "C" fn k_thread_stack_free(
    stack: *mut z_thread_stack_element,
) -> i32
Expand description

@brief Free a dynamically allocated thread stack.

@param stack Pointer to the thread stack.

@retval 0 on success. @retval -EBUSY if the thread stack is in use. @retval -EINVAL if @p stack is invalid. @retval -ENOSYS if dynamic thread stack allocation is disabled

@see CONFIG_DYNAMIC_THREAD