• Home
  • Raw
  • Download

Lines Matching refs:flags

47 	unsigned long flags;  member
75 WARN_ON(!(k->flags & PF_KTHREAD)); in to_kthread()
103 return test_bit(KTHREAD_SHOULD_STOP, &to_kthread(current)->flags); in kthread_should_stop()
109 return test_bit(KTHREAD_SHOULD_PARK, &to_kthread(k)->flags); in __kthread_should_park()
199 if (!test_bit(KTHREAD_SHOULD_PARK, &self->flags)) in __kthread_parkme()
252 if (!test_bit(KTHREAD_SHOULD_STOP, &self->flags)) { in kthread()
397 unsigned long flags; in __kthread_bind_mask() local
405 raw_spin_lock_irqsave(&p->pi_lock, flags); in __kthread_bind_mask()
407 p->flags |= PF_NO_SETAFFINITY; in __kthread_bind_mask()
408 raw_spin_unlock_irqrestore(&p->pi_lock, flags); in __kthread_bind_mask()
459 set_bit(KTHREAD_IS_PER_CPU, &to_kthread(p)->flags); in kthread_create_on_cpu()
480 if (test_bit(KTHREAD_IS_PER_CPU, &kthread->flags)) in kthread_unpark()
483 clear_bit(KTHREAD_SHOULD_PARK, &kthread->flags); in kthread_unpark()
507 if (WARN_ON(k->flags & PF_EXITING)) in kthread_park()
510 if (WARN_ON_ONCE(test_bit(KTHREAD_SHOULD_PARK, &kthread->flags))) in kthread_park()
513 set_bit(KTHREAD_SHOULD_PARK, &kthread->flags); in kthread_park()
556 set_bit(KTHREAD_SHOULD_STOP, &kthread->flags); in kthread_stop()
578 current->flags |= PF_NOFREEZE; in kthreadd()
645 if (worker->flags & KTW_FREEZABLE) in kthread_worker_fn()
682 __kthread_create_worker(int cpu, unsigned int flags, in __kthread_create_worker() argument
706 worker->flags = flags; in __kthread_create_worker()
726 kthread_create_worker(unsigned int flags, const char namefmt[], ...) in kthread_create_worker() argument
732 worker = __kthread_create_worker(-1, flags, namefmt, args); in kthread_create_worker()
757 kthread_create_worker_on_cpu(int cpu, unsigned int flags, in kthread_create_worker_on_cpu() argument
764 worker = __kthread_create_worker(cpu, flags, namefmt, args); in kthread_create_worker_on_cpu()
822 unsigned long flags; in kthread_queue_work() local
824 raw_spin_lock_irqsave(&worker->lock, flags); in kthread_queue_work()
829 raw_spin_unlock_irqrestore(&worker->lock, flags); in kthread_queue_work()
847 unsigned long flags; in kthread_delayed_work_timer_fn() local
856 raw_spin_lock_irqsave(&worker->lock, flags); in kthread_delayed_work_timer_fn()
865 raw_spin_unlock_irqrestore(&worker->lock, flags); in kthread_delayed_work_timer_fn()
918 unsigned long flags; in kthread_queue_delayed_work() local
921 raw_spin_lock_irqsave(&worker->lock, flags); in kthread_queue_delayed_work()
928 raw_spin_unlock_irqrestore(&worker->lock, flags); in kthread_queue_delayed_work()
994 unsigned long *flags) in __kthread_cancel_work() argument
1009 raw_spin_unlock_irqrestore(&worker->lock, *flags); in __kthread_cancel_work()
1011 raw_spin_lock_irqsave(&worker->lock, *flags); in __kthread_cancel_work()
1055 unsigned long flags; in kthread_mod_delayed_work() local
1058 raw_spin_lock_irqsave(&worker->lock, flags); in kthread_mod_delayed_work()
1071 ret = __kthread_cancel_work(work, true, &flags); in kthread_mod_delayed_work()
1075 raw_spin_unlock_irqrestore(&worker->lock, flags); in kthread_mod_delayed_work()
1083 unsigned long flags; in __kthread_cancel_work_sync() local
1089 raw_spin_lock_irqsave(&worker->lock, flags); in __kthread_cancel_work_sync()
1093 ret = __kthread_cancel_work(work, is_dwork, &flags); in __kthread_cancel_work_sync()
1103 raw_spin_unlock_irqrestore(&worker->lock, flags); in __kthread_cancel_work_sync()
1105 raw_spin_lock_irqsave(&worker->lock, flags); in __kthread_cancel_work_sync()
1109 raw_spin_unlock_irqrestore(&worker->lock, flags); in __kthread_cancel_work_sync()
1208 if (!(current->flags & PF_KTHREAD)) in kthread_associate_blkcg()
1234 if (current->flags & PF_KTHREAD) { in kthread_blkcg()