/linux-6.6.21/tools/power/cpupower/lib/ |
D | cpufreq.c | 274 struct cpufreq_available_governors *current = NULL; in cpufreq_get_available_governors() local 289 if (current) { in cpufreq_get_available_governors() 290 current->next = malloc(sizeof(*current)); in cpufreq_get_available_governors() 291 if (!current->next) in cpufreq_get_available_governors() 293 current = current->next; in cpufreq_get_available_governors() 298 current = first; in cpufreq_get_available_governors() 300 current->first = first; in cpufreq_get_available_governors() 301 current->next = NULL; in cpufreq_get_available_governors() 303 current->governor = malloc(i - pos + 1); in cpufreq_get_available_governors() 304 if (!current->governor) in cpufreq_get_available_governors() [all …]
|
/linux-6.6.21/arch/sparc/kernel/ |
D | sigutil_32.c | 19 if (test_tsk_thread_flag(current, TIF_USEDFPU)) { in save_fpu_state() 21 fpsave(¤t->thread.float_regs[0], ¤t->thread.fsr, in save_fpu_state() 22 ¤t->thread.fpqueue[0], ¤t->thread.fpqdepth); in save_fpu_state() 24 clear_tsk_thread_flag(current, TIF_USEDFPU); in save_fpu_state() 27 if (current == last_task_used_math) { in save_fpu_state() 29 fpsave(¤t->thread.float_regs[0], ¤t->thread.fsr, in save_fpu_state() 30 ¤t->thread.fpqueue[0], ¤t->thread.fpqdepth); in save_fpu_state() 36 ¤t->thread.float_regs[0], in save_fpu_state() 38 err |= __put_user(current->thread.fsr, &fpu->si_fsr); in save_fpu_state() 39 err |= __put_user(current->thread.fpqdepth, &fpu->si_fpqdepth); in save_fpu_state() [all …]
|
/linux-6.6.21/drivers/tty/ |
D | tty_jobctrl.c | 18 return (sigismember(¤t->blocked, sig) || in is_ignored() 19 current->sighand->action[sig-1].sa.sa_handler == SIG_IGN); in is_ignored() 39 if (current->signal->tty != tty) in __tty_check_change() 43 pgrp = task_pgrp(current); in __tty_check_change() 109 tty->ctrl.pgrp = get_pid(task_pgrp(current)); in __proc_set_tty() 110 tty->ctrl.session = get_pid(task_session(current)); in __proc_set_tty() 112 if (current->signal->tty) { in __proc_set_tty() 114 current->signal->tty->name); in __proc_set_tty() 115 tty_kref_put(current->signal->tty); in __proc_set_tty() 117 put_pid(current->signal->tty_old_pgrp); in __proc_set_tty() [all …]
|
/linux-6.6.21/arch/powerpc/kernel/ |
D | signal_32.c | 250 flush_fp_to_thread(current); in prepare_save_user_regs() 252 if (current->thread.used_vr) in prepare_save_user_regs() 253 flush_altivec_to_thread(current); in prepare_save_user_regs() 255 current->thread.vrsave = mfspr(SPRN_VRSAVE); in prepare_save_user_regs() 258 if (current->thread.used_vsr && ctx_has_vsx_region) in prepare_save_user_regs() 259 flush_vsx_to_thread(current); in prepare_save_user_regs() 262 if (current->thread.used_spe) in prepare_save_user_regs() 263 flush_spe_to_thread(current); in prepare_save_user_regs() 278 if (current->thread.used_vr) { in __unsafe_save_user_regs() 279 unsafe_copy_to_user(&frame->mc_vregs, ¤t->thread.vr_state, in __unsafe_save_user_regs() [all …]
|
D | process.c | 93 if (tsk == current && tsk->thread.regs && in check_if_tm_restore_required() 199 BUG_ON(tsk != current); in flush_fp_to_thread() 215 if (current->thread.regs && (current->thread.regs->msr & MSR_FP)) { in enable_kernel_fp() 216 check_if_tm_restore_required(current); in enable_kernel_fp() 225 MSR_TM_ACTIVE(current->thread.regs->msr)) in enable_kernel_fp() 227 __giveup_fpu(current); in enable_kernel_fp() 266 if (current->thread.regs && (current->thread.regs->msr & MSR_VEC)) { in enable_kernel_altivec() 267 check_if_tm_restore_required(current); in enable_kernel_altivec() 276 MSR_TM_ACTIVE(current->thread.regs->msr)) in enable_kernel_altivec() 278 __giveup_altivec(current); in enable_kernel_altivec() [all …]
|
D | uprobes.c | 66 struct arch_uprobe_task *autask = ¤t->utask->autask; in arch_uprobe_pre_xol() 68 autask->saved_trap_nr = current->thread.trap_nr; in arch_uprobe_pre_xol() 69 current->thread.trap_nr = UPROBE_TRAP_NR; in arch_uprobe_pre_xol() 70 regs_set_return_ip(regs, current->utask->xol_vaddr); in arch_uprobe_pre_xol() 72 user_enable_single_step(current); in arch_uprobe_pre_xol() 114 struct uprobe_task *utask = current->utask; in arch_uprobe_post_xol() 116 WARN_ON_ONCE(current->thread.trap_nr != UPROBE_TRAP_NR); in arch_uprobe_post_xol() 118 current->thread.trap_nr = utask->autask.saved_trap_nr; in arch_uprobe_post_xol() 129 user_disable_single_step(current); in arch_uprobe_post_xol() 170 struct uprobe_task *utask = current->utask; in arch_uprobe_abort_xol() [all …]
|
D | traps.c | 146 if (kexec_should_crash(current)) in die_will_crash() 149 !current->pid || is_global_init(current)) in die_will_crash() 230 if (kexec_should_crash(current)) in oops_end() 242 if (in_interrupt() || panic_on_oops || !current->pid || in oops_end() 243 is_global_init(current)) { in oops_end() 319 if (!unhandled_signal(current, signr)) in show_signal_msg() 326 current->comm, current->pid, signame(signr), signr, in show_signal_msg() 355 current->thread.trap_nr = code; in exception_common() 582 #define single_stepping(regs) (current->thread.debug.dbcr0 & DBCR0_IC) 583 #define clear_single_step(regs) (current->thread.debug.dbcr0 &= ~DBCR0_IC) [all …]
|
/linux-6.6.21/kernel/ |
D | delayacct.c | 114 current->delays->blkio_start = local_clock(); in __delayacct_blkio_start() 209 current->delays->freepages_start = local_clock(); in __delayacct_freepages_start() 214 delayacct_end(¤t->delays->lock, in __delayacct_freepages_end() 215 ¤t->delays->freepages_start, in __delayacct_freepages_end() 216 ¤t->delays->freepages_delay, in __delayacct_freepages_end() 217 ¤t->delays->freepages_count); in __delayacct_freepages_end() 222 *in_thrashing = !!current->in_thrashing; in __delayacct_thrashing_start() 226 current->in_thrashing = 1; in __delayacct_thrashing_start() 227 current->delays->thrashing_start = local_clock(); in __delayacct_thrashing_start() 235 current->in_thrashing = 0; in __delayacct_thrashing_end() [all …]
|
D | rseq.c | 194 if (current->rseq_sig != sig) { in rseq_get_rseq_cs() 197 sig, current->rseq_sig, current->pid, usig); in rseq_get_rseq_cs() 277 struct task_struct *t = current; in rseq_ip_fixup() 317 struct task_struct *t = current; in __rseq_handle_notify_resume() 351 struct task_struct *t = current; in rseq_syscall() 374 if (current->rseq != rseq || !current->rseq) in SYSCALL_DEFINE4() 376 if (rseq_len != current->rseq_len) in SYSCALL_DEFINE4() 378 if (current->rseq_sig != sig) in SYSCALL_DEFINE4() 380 ret = rseq_reset_rseq_cpu_node_id(current); in SYSCALL_DEFINE4() 383 current->rseq = NULL; in SYSCALL_DEFINE4() [all …]
|
/linux-6.6.21/kernel/events/ |
D | hw_breakpoint_test.c | 127 TEST_EXPECT_NOSPC(register_test_bp(-1, current, idx)); in test_one_cpu() 150 fill_bp_slots(test, &idx, -1, current, 0); in test_one_task_on_all_cpus() 151 TEST_EXPECT_NOSPC(register_test_bp(-1, current, idx)); in test_one_task_on_all_cpus() 152 TEST_EXPECT_NOSPC(register_test_bp(get_test_cpu(0), current, idx)); in test_one_task_on_all_cpus() 164 fill_bp_slots(test, &idx, -1, current, 0); in test_two_tasks_on_all_cpus() 167 TEST_EXPECT_NOSPC(register_test_bp(-1, current, idx)); in test_two_tasks_on_all_cpus() 169 TEST_EXPECT_NOSPC(register_test_bp(get_test_cpu(0), current, idx)); in test_two_tasks_on_all_cpus() 181 fill_bp_slots(test, &idx, get_test_cpu(0), current, 0); in test_one_task_on_one_cpu() 182 TEST_EXPECT_NOSPC(register_test_bp(-1, current, idx)); in test_one_task_on_one_cpu() 183 TEST_EXPECT_NOSPC(register_test_bp(get_test_cpu(0), current, idx)); in test_one_task_on_one_cpu() [all …]
|
/linux-6.6.21/arch/s390/kernel/ |
D | guarded_storage.c | 25 if (!current->thread.gs_cb) { in gs_enable() 33 current->thread.gs_cb = gs_cb; in gs_enable() 41 if (current->thread.gs_cb) { in gs_disable() 43 kfree(current->thread.gs_cb); in gs_disable() 44 current->thread.gs_cb = NULL; in gs_disable() 55 gs_cb = current->thread.gs_bc_cb; in gs_set_bc_cb() 60 current->thread.gs_bc_cb = gs_cb; in gs_set_bc_cb() 71 gs_cb = current->thread.gs_bc_cb; in gs_clear_bc_cb() 72 current->thread.gs_bc_cb = NULL; in gs_clear_bc_cb() 83 gs_cb = current->thread.gs_bc_cb; in gs_load_bc_cb() [all …]
|
D | signal.c | 110 save_access_regs(current->thread.acrs); in store_sigregs() 117 restore_access_regs(current->thread.acrs); in load_sigregs() 131 memcpy(&user_sregs.regs.acrs, current->thread.acrs, in save_sigregs() 133 fpregs_store(&user_sregs.fpregs, ¤t->thread.fpu); in save_sigregs() 144 current->restart_block.fn = do_no_restart_syscall; in restore_sigregs() 149 if (!is_ri_task(current) && (user_sregs.regs.psw.mask & PSW_MASK_RI)) in restore_sigregs() 168 memcpy(¤t->thread.acrs, &user_sregs.regs.acrs, in restore_sigregs() 169 sizeof(current->thread.acrs)); in restore_sigregs() 171 fpregs_load(&user_sregs.fpregs, ¤t->thread.fpu); in restore_sigregs() 187 vxrs[i] = current->thread.fpu.vxrs[i].low; in save_sigregs_ext() [all …]
|
/linux-6.6.21/tools/testing/selftests/arm64/signal/ |
D | test_signals.c | 15 struct tdescr *current = &tde; variable 19 ksft_print_msg("%s :: %s\n", current->name, current->descr); in main() 20 if (test_setup(current) && test_init(current)) { in main() 21 test_run(current); in main() 22 test_cleanup(current); in main() 24 test_result(current); in main() 26 return current->result; in main()
|
/linux-6.6.21/arch/m68k/mm/ |
D | fault.c | 27 signo = current->thread.signo; in send_fault_sig() 28 si_code = current->thread.code; in send_fault_sig() 29 addr = (void __user *)current->thread.faddr; in send_fault_sig() 71 struct mm_struct *mm = current->mm; in do_page_fault() 189 current->thread.signo = SIGBUS; in do_page_fault() 190 current->thread.faddr = address; in do_page_fault() 194 current->thread.signo = SIGBUS; in do_page_fault() 195 current->thread.code = BUS_ADRERR; in do_page_fault() 196 current->thread.faddr = address; in do_page_fault() 202 current->thread.signo = SIGSEGV; in do_page_fault() [all …]
|
/linux-6.6.21/include/linux/sched/ |
D | mm.h | 237 unsigned int pflags = READ_ONCE(current->flags); in current_gfp_context() 322 unsigned int flags = current->flags & PF_MEMALLOC_NOIO; in memalloc_noio_save() 323 current->flags |= PF_MEMALLOC_NOIO; in memalloc_noio_save() 337 current->flags = (current->flags & ~PF_MEMALLOC_NOIO) | flags; in memalloc_noio_restore() 353 unsigned int flags = current->flags & PF_MEMALLOC_NOFS; in memalloc_nofs_save() 354 current->flags |= PF_MEMALLOC_NOFS; in memalloc_nofs_save() 368 current->flags = (current->flags & ~PF_MEMALLOC_NOFS) | flags; in memalloc_nofs_restore() 373 unsigned int flags = current->flags & PF_MEMALLOC; in memalloc_noreclaim_save() 374 current->flags |= PF_MEMALLOC; in memalloc_noreclaim_save() 380 current->flags = (current->flags & ~PF_MEMALLOC) | flags; in memalloc_noreclaim_restore() [all …]
|
D | signal.h | 283 struct task_struct *task = current; in kernel_dequeue_signal() 297 spin_lock_irq(¤t->sighand->siglock); in kernel_signal_stop() 298 if (current->jobctl & JOBCTL_STOP_DEQUEUED) { in kernel_signal_stop() 299 current->jobctl |= JOBCTL_STOPPED; in kernel_signal_stop() 302 spin_unlock_irq(¤t->sighand->siglock); in kernel_signal_stop() 383 set_tsk_thread_flag(current, TIF_SIGPENDING); in restart_syscall() 434 (fatal_signal_pending(current) || in fault_signal_pending() 435 (user_mode(regs) && signal_pending(current)))); in fault_signal_pending() 520 current->restore_sigmask = true; in set_restore_sigmask() 528 current->restore_sigmask = false; in clear_restore_sigmask() [all …]
|
/linux-6.6.21/Documentation/hwmon/ |
D | max16601.rst | 83 curr1_input VCORE input current, derived from duty cycle 84 and output current. 85 curr1_max Maximum input current. 89 curr[P+2]_input VCORE phase P input current. 92 curr[N+2]_input VCORE input current, derived from sensor 97 curr[N+3]_input VSA input current. 100 curr[N+4]_input VCORE output current. 101 curr[N+4]_crit Critical output current. 102 curr[N+4]_crit_alarm Output current critical alarm. 103 curr[N+4]_max Maximum output current. [all …]
|
D | ina3221.rst | 21 The Texas Instruments INA3221 monitors voltage, current, and power on the high 23 and supply voltage, with programmable conversion times and averaging, current 35 curr[123]_crit Critical alert current(mA) setting, activates the 36 corresponding alarm when the respective current 38 curr[123]_crit_alarm Critical alert current limit exceeded 39 curr[123]_max Warning alert current(mA) setting, activates the 40 corresponding alarm when the respective current 42 curr[123]_max_alarm Warning alert current limit exceeded 46 curr4_input Sum of current(mA) measurement channels, 49 curr4_crit Critical alert current(mA) setting for sum of current [all …]
|
/linux-6.6.21/arch/mips/math-emu/ |
D | dsemul.c | 77 mm_context_t *mm_ctx = ¤t->mm->context; in alloc_emuframe() 116 pr_debug("allocate emuframe %d to %d\n", idx, current->pid); in alloc_emuframe() 128 pr_debug("free emuframe %d from %d\n", idx, current->pid); in free_emuframe() 180 fr_idx = atomic_read(¤t->thread.bd_emu_frame); in dsemul_thread_rollback() 193 regs->cp0_epc = current->thread.bd_emu_branch_pc; in dsemul_thread_rollback() 195 regs->cp0_epc = current->thread.bd_emu_cont_pc; in dsemul_thread_rollback() 197 atomic_set(¤t->thread.bd_emu_frame, BD_EMUFRAME_NONE); in dsemul_thread_rollback() 198 free_emuframe(fr_idx, current->mm); in dsemul_thread_rollback() 246 fr_idx = atomic_read(¤t->thread.bd_emu_frame); in mips_dsemul() 273 ret = access_process_vm(current, fr_uaddr, &fr, sizeof(fr), in mips_dsemul() [all …]
|
/linux-6.6.21/Documentation/devicetree/bindings/power/supply/ |
D | bq25890.yaml | 38 ti,charge-current: 40 description: maximum charging current (in uA) 42 ti,termination-current: 45 charge will be terminated when current in constant-voltage phase 48 ti,precharge-current: 50 description: maximum charge current during precharge phase (in uA) 62 ti,boost-max-current: 64 description: maximum allowed current draw in boost mode (in uA) 72 ILIM resistor will be used and the input current will be the lower 79 temperature above which the charge current is lowered, to avoid overheating [all …]
|
/linux-6.6.21/arch/arm64/kernel/ |
D | fpsimd.c | 389 switch (current->thread.fp_type) { in task_fpsimd_load() 396 if (!thread_sm_enabled(¤t->thread) && in task_fpsimd_load() 401 sve_set_vq(sve_vq_from_vl(task_get_sve_vl(current)) - 1); in task_fpsimd_load() 423 unsigned long sme_vl = task_get_sme_vl(current); in task_fpsimd_load() 429 write_sysreg_s(current->thread.svcr, SYS_SVCR); in task_fpsimd_load() 431 if (thread_za_enabled(¤t->thread)) in task_fpsimd_load() 432 sme_load_state(current->thread.sme_state, in task_fpsimd_load() 435 if (thread_sm_enabled(¤t->thread)) in task_fpsimd_load() 440 WARN_ON_ONCE(current->thread.fp_type != FP_STATE_SVE); in task_fpsimd_load() 441 sve_load_state(sve_pffr(¤t->thread), in task_fpsimd_load() [all …]
|
/linux-6.6.21/arch/csky/kernel/probes/ |
D | uprobes.c | 50 struct uprobe_task *utask = current->utask; in arch_uprobe_pre_xol() 52 utask->autask.saved_trap_no = current->thread.trap_no; in arch_uprobe_pre_xol() 53 current->thread.trap_no = UPROBE_TRAP_NR; in arch_uprobe_pre_xol() 57 user_enable_single_step(current); in arch_uprobe_pre_xol() 64 struct uprobe_task *utask = current->utask; in arch_uprobe_post_xol() 66 WARN_ON_ONCE(current->thread.trap_no != UPROBE_TRAP_NR); in arch_uprobe_post_xol() 67 current->thread.trap_no = utask->autask.saved_trap_no; in arch_uprobe_post_xol() 71 user_disable_single_step(current); in arch_uprobe_post_xol() 103 struct uprobe_task *utask = current->utask; in arch_uprobe_abort_xol() 105 current->thread.trap_no = utask->autask.saved_trap_no; in arch_uprobe_abort_xol() [all …]
|
/linux-6.6.21/arch/x86/kernel/ |
D | signal.c | 99 sp = current->sas_ss_sp + current->sas_ss_size; in get_sigframe() 135 current->comm, task_pid_nr(current)); in get_sigframe() 230 struct fpu *fpu = ¤t->thread.fpu; in handle_signal() 236 if (syscall_get_nr(current, regs) != -1) { in handle_signal() 238 switch (syscall_get_error(current, regs)) { in handle_signal() 264 user_disable_single_step(current); in handle_signal() 290 if (current->restart_block.arch_data & TS_COMPAT) in get_nr_restart_syscall() 316 if (syscall_get_nr(current, regs) != -1) { in arch_do_signal_or_restart() 318 switch (syscall_get_error(current, regs)) { in arch_do_signal_or_restart() 342 struct task_struct *me = current; in signal_fault() [all …]
|
/linux-6.6.21/arch/powerpc/include/asm/book3s/32/ |
D | kup.h | 60 unsigned long kuap = current->thread.kuap; in __kuap_save_and_lock() 66 current->thread.kuap = KUAP_NONE; in __kuap_save_and_lock() 78 current->thread.kuap = KUAP_NONE; in __kuap_kernel_restore() 85 current->thread.kuap = regs->kuap; in __kuap_kernel_restore() 92 unsigned long kuap = current->thread.kuap; in __kuap_get_and_assert_locked() 108 current->thread.kuap = (__force u32)to; in allow_user_access() 114 u32 kuap = current->thread.kuap; in prevent_user_access() 121 current->thread.kuap = KUAP_NONE; in prevent_user_access() 127 unsigned long flags = current->thread.kuap; in prevent_user_access_return() 130 current->thread.kuap = KUAP_NONE; in prevent_user_access_return() [all …]
|
/linux-6.6.21/kernel/trace/ |
D | fgraph.c | 78 if (!current->ret_stack) in ftrace_push_return_trace() 88 if (current->curr_ret_stack == FTRACE_RETFUNC_DEPTH - 1) { in ftrace_push_return_trace() 89 atomic_inc(¤t->trace_overrun); in ftrace_push_return_trace() 95 index = ++current->curr_ret_stack; in ftrace_push_return_trace() 97 current->ret_stack[index].ret = ret; in ftrace_push_return_trace() 98 current->ret_stack[index].func = func; in ftrace_push_return_trace() 99 current->ret_stack[index].calltime = calltime; in ftrace_push_return_trace() 101 current->ret_stack[index].fp = frame_pointer; in ftrace_push_return_trace() 104 current->ret_stack[index].retp = retp; in ftrace_push_return_trace() 140 trace.depth = ++current->curr_ret_depth; in function_graph_enter() [all …]
|