Home
last modified time | relevance | path

Searched refs:PF_KTHREAD (Results 1 – 25 of 68) sorted by relevance

123

/linux/kernel/unwind/
H A Duser.c121 if ((current->flags & PF_KTHREAD) || !user_mode(regs)) { in unwind_user_start()
151 if (current->flags & PF_KTHREAD) in unwind_user()
H A Ddeferred.c239 if ((current->flags & (PF_KTHREAD | PF_EXITING)) || in unwind_deferred_request()
/linux/kernel/
H A Dfreezer.c50 if (pm_freezing && !(p->flags & PF_KTHREAD)) in freezing_slow_path()
174 if (!(p->flags & PF_KTHREAD)) in freeze_task()
H A Dkthread.c84 WARN_ON(!(k->flags & PF_KTHREAD)); in to_kthread()
1620 WARN_ON_ONCE(!(tsk->flags & PF_KTHREAD)); in kthread_use_mm()
1666 WARN_ON_ONCE(!(tsk->flags & PF_KTHREAD)); in kthread_unuse_mm()
1706 if (!(current->flags & PF_KTHREAD)) in kthread_associate_blkcg()
1732 if (current->flags & PF_KTHREAD) { in kthread_blkcg()
H A Dtsacct.c128 if (unlikely(!tsk->mm || (tsk->flags & PF_KTHREAD))) in __acct_update_integrals()
H A Dstacktrace.c232 if (current->flags & PF_KTHREAD) in stack_trace_save_user()
/linux/arch/arm64/kernel/
H A Defi.c173 if (preemptible() && (current->flags & PF_KTHREAD)) { in arch_efi_call_virt_setup()
210 if (preemptible() && (current->flags & PF_KTHREAD)) { in arch_efi_call_virt_teardown()
/linux/kernel/cgroup/
H A Dfreezer.c205 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 Dsched.h36 !(old->flags & (PF_KTHREAD | PF_USER_WORKER))) { in switch_fpu()
/linux/lib/
H A Dis_single_threaded.c31 if (unlikely(p->flags & PF_KTHREAD)) in current_is_single_threaded()
/linux/arch/x86/kernel/fpu/
H A Dcontext.h59 if (WARN_ON_ONCE(current->flags & (PF_KTHREAD | PF_USER_WORKER))) in fpregs_restore_userregs()
H A Dcore.c63 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()
897 WARN_ON_ONCE(current->flags & PF_KTHREAD); in fpregs_lock_and_load()
/linux/tools/perf/util/bpf_skel/
H A Dkwork_top.bpf.c22 #define PF_KTHREAD 0x00200000 macro
115 .is_kthread = task->flags & PF_KTHREAD ? 1 : 0, in update_task_info()
H A Doff_cpu.bpf.c9 #define PF_KTHREAD 0x00200000 /* I am a kernel thread */ macro
173 if (t->flags & PF_KTHREAD) in can_record()
/linux/tools/testing/selftests/sched_ext/
H A Dcyclic_kick_wait.bpf.c41 if (p->flags & PF_KTHREAD) { in BPF_STRUCT_OPS()
/linux/io_uring/
H A Dtw.h22 return (current->flags & (PF_EXITING | PF_KTHREAD)) || percpu_ref_is_dying(&ctx->refs); in io_should_terminate_tw()
/linux/drivers/android/binder/
H A Ddeferred_close.rs74 if unsafe { ((*current.as_ptr()).flags & bindings::PF_KTHREAD) != 0 } { in close_fd()
/linux/kernel/power/
H A Dprocess.c226 if (p->flags & PF_KTHREAD) in thaw_kernel_threads()
/linux/arch/powerpc/kernel/
H A Dstacktrace.c79 if (task->flags & PF_KTHREAD) in arch_stack_walk_reliable()
/linux/drivers/md/dm-vdo/
H A Dlogger.c140 if (((current->flags & PF_KTHREAD) != 0) && in emit_log_message()
/linux/tools/sched_ext/
H A Dscx_central.bpf.c114 if ((p->flags & PF_KTHREAD) && p->nr_cpus_allowed == 1) { in BPF_STRUCT_OPS()
/linux/kernel/trace/rv/monitors/sleep/
H A Dsleep.c56 if (task->flags & PF_KTHREAD) { in ltl_atoms_init()
/linux/include/linux/
H A Dkthread.h23 if (p->flags & PF_KTHREAD) in tsk_is_kthread()
/linux/init/
H A Dinit_task.c104 .flags = PF_KTHREAD,
/linux/arch/x86/kernel/
H A Dprocess.c120 if (fpu_state_size_dynamic() && !(tsk->flags & (PF_KTHREAD | PF_USER_WORKER))) in arch_release_task_struct()
229 if (unlikely(p->flags & PF_KTHREAD)) { in copy_thread()

123