| /linux/kernel/cgroup/ |
| H A D | freezer.c | 205 if (task->flags & PF_KTHREAD) in cgroup_do_freeze() 233 if (task->flags & PF_KTHREAD) in cgroup_freezer_migrate_task()
|
| /linux/arch/x86/include/asm/fpu/ |
| H A D | sched.h | 36 !(old->flags & (PF_KTHREAD | PF_USER_WORKER))) { in switch_fpu()
|
| /linux/lib/ |
| H A D | is_single_threaded.c | 31 if (unlikely(p->flags & PF_KTHREAD)) in current_is_single_threaded()
|
| /linux/tools/testing/selftests/sched_ext/ |
| H A D | cyclic_kick_wait.bpf.c | 41 if (p->flags & PF_KTHREAD) { in BPF_STRUCT_OPS()
|
| /linux/tools/perf/util/bpf_skel/ |
| H A D | kwork_top.bpf.c | 22 #define PF_KTHREAD 0x00200000 macro 115 .is_kthread = task->flags & PF_KTHREAD ? 1 : 0, in update_task_info()
|
| H A D | off_cpu.bpf.c | 9 #define PF_KTHREAD 0x00200000 /* I am a kernel thread */ macro 173 if (t->flags & PF_KTHREAD) in can_record()
|
| /linux/kernel/ |
| H A D | kthread.c | 84 WARN_ON(!(k->flags & PF_KTHREAD)); in to_kthread() 1620 WARN_ON_ONCE(!(tsk->flags & PF_KTHREAD)); in kthread_use_mm() 1665 WARN_ON_ONCE(!(tsk->flags & PF_KTHREAD)); in kthread_unuse_mm() 1705 if (!(current->flags & PF_KTHREAD)) in kthread_associate_blkcg() 1731 if (current->flags & PF_KTHREAD) { in kthread_blkcg()
|
| H A D | stacktrace.c | 232 if (current->flags & PF_KTHREAD) in stack_trace_save_user()
|
| H A D | fork.c | 557 if (tsk->flags & PF_KTHREAD) in free_task() 1352 if (task->flags & PF_KTHREAD) in get_task_exe_file() 1367 * Returns %NULL if the task has no mm. Checks PF_KTHREAD (meaning 1377 if (task->flags & PF_KTHREAD) in get_task_mm() 2116 p->flags &= ~PF_KTHREAD; in copy_process() 2118 p->flags |= PF_KTHREAD; in copy_process()
|
| /linux/arch/x86/kernel/fpu/ |
| H A D | core.c | 63 if (WARN_ON_ONCE(task->flags & PF_KTHREAD)) in x86_task_fpu() 483 if (!(current->flags & (PF_KTHREAD | PF_USER_WORKER)) && in kernel_fpu_begin_mask() 892 WARN_ON_ONCE(current->flags & PF_KTHREAD); in fpregs_lock_and_load()
|
| /linux/kernel/power/ |
| H A D | process.c | 226 if (p->flags & PF_KTHREAD) in thaw_kernel_threads()
|
| /linux/arch/powerpc/kernel/ |
| H A D | stacktrace.c | 79 if (task->flags & PF_KTHREAD) in arch_stack_walk_reliable()
|
| /linux/tools/sched_ext/ |
| H A D | scx_qmap.bpf.c | 338 if (p->scx.weight < 2 && !(p->flags & PF_KTHREAD)) 379 if (p->flags & PF_KTHREAD) { in dispatch_highpri() 427 p->scx.weight < 2 && !(p->flags & PF_KTHREAD) && !(enq_flags & SCX_ENQ_REENQ)) { in BPF_STRUCT_OPS()
|
| H A D | scx_central.bpf.c | 115 if ((p->flags & PF_KTHREAD) && p->nr_cpus_allowed == 1) { in BPF_STRUCT_OPS()
|
| /linux/include/linux/ |
| H A D | kthread.h | 23 if (p->flags & PF_KTHREAD) in tsk_is_kthread()
|
| H A D | sched.h | 1119 /* PF_KTHREAD | PF_IO_WORKER */ 1797 #define PF_KTHREAD 0x00200000 /* I am a kernel thread */ 1846 return task->mm && !(task->flags & (PF_KTHREAD | PF_USER_WORKER)); 1779 #define PF_KTHREAD global() macro
|
| /linux/kernel/unwind/ |
| H A D | deferred.c | 239 if ((current->flags & (PF_KTHREAD | PF_EXITING)) || in unwind_deferred_request()
|
| /linux/arch/arc/kernel/ |
| H A D | entry.S | 60 mov r0, r13 ; (see PF_KTHREAD block in copy_thread)
|
| /linux/kernel/sched/ |
| H A D | idle.c | 421 WARN_ON_ONCE(!(current->flags & PF_KTHREAD)); in play_idle_precise()
|
| /linux/security/yama/ |
| H A D | yama_lsm.c | 82 if (current->flags & PF_KTHREAD) { in report_access()
|
| /linux/kernel/livepatch/ |
| H A D | transition.c | 405 if (task->flags & PF_KTHREAD) {
|
| /linux/include/trace/events/ |
| H A D | kmem.h | 449 __entry->curr = current->mm == mm && !(current->flags & PF_KTHREAD);
|
| /linux/security/smack/ |
| H A D | smack_access.c | 752 if (unlikely(current->flags & PF_KTHREAD)) in smack_privileged()
|
| /linux/drivers/gpu/drm/amd/amdgpu/ |
| H A D | amdgpu_amdkfd.h | 293 } else if (current->flags & PF_KTHREAD) { \
|
| /linux/security/tomoyo/ |
| H A D | network.c | 619 return current->flags & PF_KTHREAD;
|