Lines Matching refs:self
157 static void __kthread_parkme(struct kthread *self) in __kthread_parkme() argument
160 while (test_bit(KTHREAD_SHOULD_PARK, &self->flags)) { in __kthread_parkme()
161 if (!test_and_set_bit(KTHREAD_IS_PARKED, &self->flags)) in __kthread_parkme()
162 complete(&self->parked); in __kthread_parkme()
166 clear_bit(KTHREAD_IS_PARKED, &self->flags); in __kthread_parkme()
182 struct kthread self; in kthread() local
185 self.flags = 0; in kthread()
186 self.data = data; in kthread()
187 init_completion(&self.exited); in kthread()
188 init_completion(&self.parked); in kthread()
189 current->vfork_done = &self.exited; in kthread()
205 if (!test_bit(KTHREAD_SHOULD_STOP, &self.flags)) { in kthread()
206 __kthread_parkme(&self); in kthread()