Lines Matching defs:to
86 static int load_TLS(int flags, struct task_struct *to)
92 struct uml_tls_struct* curr = &to->thread.arch.tls_array[idx - GDT_ENTRY_TLS_MIN];
95 * flushed to the host, which will clear it.*/
119 /* Verify if we need to do a flush for the new process, i.e. if there are any
130 /* Can't test curr->present, we may need to clear a descriptor
150 /* Still correct to do this, if it wasn't present on the host it
165 * And this will not need be used when (and if) we'll add support to the host
168 int arch_switch_tls_skas(struct task_struct *from, struct task_struct *to)
173 /* We have no need whatsoever to switch TLS for kernel threads; beyond
176 if (likely(to->mm))
177 return load_TLS(O_FORCE, to);
182 int arch_switch_tls_tt(struct task_struct *from, struct task_struct *to)
187 if (needs_TLS_update(to))
188 return load_TLS(0, to);
245 /* Temporary debugging check, to make sure that things have been
255 /* When the TLS entry has not been set, the values read to user in the