pub unsafe extern "C" fn k_stack_cleanup(stack: *mut k_stack) -> i32
Expand description
@brief Release a stack’s allocated buffer
If a stack object was given a dynamically allocated buffer via k_stack_alloc_init(), this will free it. This function does nothing if the buffer wasn’t dynamically allocated.
@param stack Address of the stack. @retval 0 on success @retval -EAGAIN when object is still in use