Home
last modified time | relevance | path

Searched refs:PF_KTHREAD (Results 1 - 25 of 134) sorted by relevance

123456

/kernel/linux/linux-5.10/kernel/
H A Dfreezer.c48 if (pm_freezing && !(p->flags & PF_KTHREAD)) in freezing_slow_path()
137 if (!(p->flags & PF_KTHREAD)) in freeze_task()
H A Dkthread.c76 * that the caller can't exec, so PF_KTHREAD can't be cleared. in set_kthread_struct()
83 WARN_ON(!(k->flags & PF_KTHREAD)); in to_kthread()
92 * (p->flags & PF_KTHREAD) && p->set_child_tid
95 * PF_KTHREAD on it's own is not, kernel_thread() can exec() (See umh.c and
101 if (kthread && !(p->flags & PF_KTHREAD)) in __to_kthread()
1317 WARN_ON_ONCE(!(tsk->flags & PF_KTHREAD)); in kthread_use_mm()
1351 WARN_ON_ONCE(!(tsk->flags & PF_KTHREAD)); in kthread_unuse_mm()
1382 if (!(current->flags & PF_KTHREAD)) in kthread_associate_blkcg()
1408 if (current->flags & PF_KTHREAD) { in kthread_blkcg()
/kernel/linux/linux-6.6/kernel/
H A Dfreezer.c49 if (pm_freezing && !(p->flags & PF_KTHREAD)) in freezing_slow_path()
163 if (!(p->flags & PF_KTHREAD)) in freeze_task()
H A Dkthread.c76 WARN_ON(!(k->flags & PF_KTHREAD)); in to_kthread()
85 * (p->flags & PF_KTHREAD) && p->worker_private
88 * PF_KTHREAD on it's own is not, kernel_thread() can exec() (See umh.c and
94 if (kthread && !(p->flags & PF_KTHREAD)) in __to_kthread()
1415 WARN_ON_ONCE(!(tsk->flags & PF_KTHREAD)); in kthread_use_mm()
1460 WARN_ON_ONCE(!(tsk->flags & PF_KTHREAD)); in kthread_unuse_mm()
1501 if (!(current->flags & PF_KTHREAD)) in kthread_associate_blkcg()
1527 if (current->flags & PF_KTHREAD) { in kthread_blkcg()
/kernel/linux/linux-5.10/lib/
H A Dis_single_threaded.c31 if (unlikely(p->flags & PF_KTHREAD)) in current_is_single_threaded()
/kernel/linux/linux-6.6/arch/x86/include/asm/fpu/
H A Dsched.h38 * PF_KTHREAD is used to distinguish between kernel and user threads.
43 !(current->flags & (PF_KTHREAD | PF_USER_WORKER))) { in switch_fpu_prepare()
/kernel/linux/linux-6.6/lib/
H A Dis_single_threaded.c31 if (unlikely(p->flags & PF_KTHREAD)) in current_is_single_threaded()
/kernel/linux/linux-6.6/arch/x86/kernel/fpu/
H A Dcontext.h59 if (WARN_ON_ONCE(current->flags & (PF_KTHREAD | PF_USER_WORKER))) in fpregs_restore_userregs()
/kernel/linux/linux-5.10/arch/nds32/kernel/
H A Dprocess.c159 if (unlikely(p->flags & (PF_KTHREAD | PF_IO_WORKER))) { in copy_thread()
210 if (!(next->flags & PF_KTHREAD)) in _switch_fpu()
/kernel/linux/linux-5.10/kernel/cgroup/
H A Dfreezer.c202 if (task->flags & PF_KTHREAD) in cgroup_do_freeze()
230 if (task->flags & PF_KTHREAD) in cgroup_freezer_migrate_task()
/kernel/linux/linux-6.6/kernel/cgroup/
H A Dfreezer.c202 if (task->flags & PF_KTHREAD) in cgroup_do_freeze()
230 if (task->flags & PF_KTHREAD) in cgroup_freezer_migrate_task()
/kernel/linux/linux-6.6/tools/perf/util/bpf_skel/
H A Doff_cpu.bpf.c9 #define PF_KTHREAD 0x00200000 /* I am a kernel thread */ macro
143 if (t->flags & PF_KTHREAD) in can_record()
/kernel/linux/linux-5.10/arch/c6x/kernel/
H A Dprocess.c115 if (unlikely(p->flags & PF_KTHREAD)) { in copy_thread()
/kernel/linux/linux-5.10/arch/csky/kernel/
H A Dprocess.c52 if (unlikely(p->flags & (PF_KTHREAD | PF_IO_WORKER))) { in copy_thread()
/kernel/linux/linux-5.10/mm/
H A Dmemtrace_ashmem.c61 if (tsk->flags & PF_KTHREAD) in ashmem_debug_process_info_show()
H A Dvmacache.c32 return current->mm == mm && !(current->flags & PF_KTHREAD); in vmacache_valid_mm()
H A Dpurgeable_ashmem_trigger.c95 if (tsk->flags & PF_KTHREAD) in purgeable_ashmem_trigger_show()
/kernel/linux/linux-5.10/arch/x86/include/asm/fpu/
H A Dinternal.h501 if (WARN_ON_ONCE(current->flags & PF_KTHREAD)) in __fpregs_load_activate()
532 * PF_KTHREAD is used to distinguish between kernel and user threads.
538 if (static_cpu_has(X86_FEATURE_FPU) && !(prev->flags & PF_KTHREAD)) { in switch_fpu_prepare()
575 if (!(next->flags & PF_KTHREAD)) { in switch_fpu_finish()
/kernel/linux/linux-5.10/security/smack/
H A Dsmack_access.c693 if ((current->flags & (PF_KTHREAD | PF_IO_WORKER)) == PF_KTHREAD) in smack_privileged()
/kernel/linux/linux-5.10/fs/
H A Dfile_table.c340 if (likely(!in_interrupt() && !(task->flags & PF_KTHREAD))) { in fput_many()
373 BUG_ON(!(task->flags & PF_KTHREAD)); in __fput_sync()
/kernel/linux/linux-5.10/arch/hexagon/kernel/
H A Dprocess.c76 if (unlikely(p->flags & (PF_KTHREAD | PF_IO_WORKER))) { in copy_thread()
/kernel/linux/linux-5.10/arch/h8300/kernel/
H A Dprocess.c115 if (unlikely(p->flags & (PF_KTHREAD | PF_IO_WORKER))) { in copy_thread()
/kernel/linux/linux-5.10/drivers/dma-buf/
H A Ddma-buf-process-info.c35 if (tsk->flags & PF_KTHREAD) in init_dma_buf_task_info()
/kernel/linux/linux-6.6/drivers/dma-buf/
H A Ddma-buf-process-info.c35 if (tsk->flags & PF_KTHREAD) in init_dma_buf_task_info()
/kernel/linux/linux-6.6/kernel/power/
H A Dprocess.c228 if (p->flags & PF_KTHREAD) in thaw_kernel_threads()

Completed in 15 milliseconds

123456