/* Perform get_thread_area on behalf of the traced child.  */
int ptrace_get_thread_area(struct task_struct *child, int idx, struct user_desc __user *user_desc)
/* Perform get_thread_area on behalf of the traced child.  */
int ptrace_get_thread_area(struct task_struct *child, int idx, struct user_desc __user *user_desc)
{
	struct user_desc info;
	int ret;
	if (!host_supports_tls)
		return -EIO;
	ret = get_tls_entry(child, &info, idx);
	if (ret < 0)
		goto out;
	if (copy_to_user(user_desc, &info, sizeof(info)))
		ret = -EFAULT;
out:
	return ret;
}