pub unsafe extern "C" fn k_thread_name_set(
thread: *mut k_thread,
str_: *const i8,
) -> i32
Expand description
@brief Set current thread name
Set the name of the thread to be used when @kconfig{CONFIG_THREAD_MONITOR} is enabled for tracing and debugging.
@param thread Thread to set name, or NULL to set the current thread @param str Name string @retval 0 on success @retval -EFAULT Memory access error with supplied string @retval -ENOSYS Thread name configuration option not enabled @retval -EINVAL Thread name too long