Skip to main content

k_thread_name_copy

Function k_thread_name_copy 

Source
pub unsafe extern "C" fn k_thread_name_copy(
    thread: k_tid_t,
    buf: *mut c_char,
    size: usize,
) -> c_int
Expand description

@brief Copy the thread name into a supplied buffer

@param thread Thread to obtain name information @param buf Destination buffer @param size Destination buffer size @retval 0 Success @retval -ENOSYS Thread name feature not enabled @retval -EINVAL Invalid thread object (user mode only) @retval -ENOSPC Destination buffer too small (user mode only) @retval -EFAULT Memory access error (user mode only)