Home
last modified time | relevance | path

Searched refs:current (Results 1 – 25 of 2638) sorted by relevance

12345678910>>...106

/linux/tools/power/cpupower/lib/
H A Dcpufreq.c274 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/arch/sparc/kernel/
H A Dsigutil_32.c19 if (test_tsk_thread_flag(current, TIF_USEDFPU)) { in save_fpu_state()
21 fpsave(&current->thread.float_regs[0], &current->thread.fsr, in save_fpu_state()
22 &current->thread.fpqueue[0], &current->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(&current->thread.float_regs[0], &current->thread.fsr, in save_fpu_state()
30 &current->thread.fpqueue[0], &current->thread.fpqdepth); in save_fpu_state()
36 &current->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/drivers/tty/
H A Dtty_jobctrl.c18 return (sigismember(&current->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/arch/riscv/kernel/
H A Dkernel_mode_vector.c23 WRITE_ONCE(current->thread.riscv_v_flags, flags); in riscv_v_flags_set()
86 return &current->thread.riscv_v_flags; in riscv_v_flags_ptr()
116 if (riscv_v_ctx_get_depth() != 0 || !riscv_preempt_v_started(current)) in riscv_v_stop_kernel_context()
119 riscv_preempt_v_clear_dirty(current); in riscv_v_stop_kernel_context()
128 kvstate = &current->thread.kernel_vstate; in riscv_v_start_kernel_context()
132 if (riscv_preempt_v_started(current)) { in riscv_v_start_kernel_context()
136 if (riscv_preempt_v_dirty(current)) { in riscv_v_start_kernel_context()
138 riscv_preempt_v_clear_dirty(current); in riscv_v_start_kernel_context()
140 riscv_preempt_v_set_restore(current); in riscv_v_start_kernel_context()
146 if ((task_pt_regs(current)->status & SR_VS) == SR_VS_DIRTY) { in riscv_v_start_kernel_context()
[all …]
/linux/arch/powerpc/kernel/
H A Dsignal_32.c250 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, &current->thread.vr_state, in __unsafe_save_user_regs()
[all …]
H A Dtraps.c146 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 …]
H A Duprobes.c66 struct arch_uprobe_task *autask = &current->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 …]
/linux/kernel/
H A Ddelayacct.c113 current->delays->blkio_start = local_clock(); in __delayacct_blkio_start()
208 current->delays->freepages_start = local_clock(); in __delayacct_freepages_start()
213 delayacct_end(&current->delays->lock, in __delayacct_freepages_end()
214 &current->delays->freepages_start, in __delayacct_freepages_end()
215 &current->delays->freepages_delay, in __delayacct_freepages_end()
216 &current->delays->freepages_count); in __delayacct_freepages_end()
221 *in_thrashing = !!current->in_thrashing; in __delayacct_thrashing_start()
225 current->in_thrashing = 1; in __delayacct_thrashing_start()
226 current->delays->thrashing_start = local_clock(); in __delayacct_thrashing_start()
234 current->in_thrashing = 0; in __delayacct_thrashing_end()
[all …]
H A Drseq.c194 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 …]
H A Dacct.c215 struct pid_namespace *ns = task_active_pid_ns(current); in acct_on()
309 pin_kill(task_active_pid_ns(current)->bacct); in SYSCALL_DEFINE1()
435 struct pacct_struct *pacct = &current->signal->pacct; in fill_ac()
447 strscpy(ac->ac_comm, current->comm, sizeof(ac->ac_comm)); in fill_ac()
451 run_time -= current->group_leader->start_time; in fill_ac()
476 spin_lock_irq(&current->sighand->siglock); in fill_ac()
477 tty = current->signal->tty; /* Safe as we hold the siglock */ in fill_ac()
486 spin_unlock_irq(&current->sighand->siglock); in fill_ac()
502 current->signal->rlim[RLIMIT_FSIZE].rlim_cur = RLIM_INFINITY; in do_acct_process()
525 ac.ac_pid = task_tgid_nr_ns(current, ns); in do_acct_process()
[all …]
/linux/kernel/events/
H A Dhw_breakpoint_test.c127 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/arch/s390/kernel/
H A Dguarded_storage.c25 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 …]
H A Dsignal.c111 save_access_regs(current->thread.acrs); in store_sigregs()
118 restore_access_regs(current->thread.acrs); in load_sigregs()
132 memcpy(&user_sregs.regs.acrs, current->thread.acrs, in save_sigregs()
134 fpregs_store(&user_sregs.fpregs, &current->thread.ufpu); in save_sigregs()
145 current->restart_block.fn = do_no_restart_syscall; in restore_sigregs()
150 if (!is_ri_task(current) && (user_sregs.regs.psw.mask & PSW_MASK_RI)) in restore_sigregs()
165 memcpy(&current->thread.acrs, &user_sregs.regs.acrs, in restore_sigregs()
166 sizeof(current->thread.acrs)); in restore_sigregs()
168 fpregs_load(&user_sregs.fpregs, &current->thread.ufpu); in restore_sigregs()
184 vxrs[i] = current->thread.ufpu.vxrs[i].low; in save_sigregs_ext()
[all …]
/linux/tools/testing/selftests/cgroup/
H A Dtest_hugetlb_memcg.c99 long old_current, expected_current, current; in hugetlb_test_program()
102 old_current = cg_read_long(test_group, "memory.current"); in hugetlb_test_program()
104 current = cg_read_long(test_group, "memory.current"); in hugetlb_test_program()
105 if (current - old_current >= MB(2)) { in hugetlb_test_program()
108 ksft_print_msg("before: %ld, after: %ld\n", old_current, current); in hugetlb_test_program()
117 current = cg_read_long(test_group, "memory.current"); in hugetlb_test_program()
118 if (current - old_current >= MB(2)) { in hugetlb_test_program()
120 ksft_print_msg("before: %ld, after: %ld\n", old_current, current); in hugetlb_test_program()
97 long old_current, expected_current, current; hugetlb_test_program() local
[all...]
/linux/tools/testing/selftests/arm64/signal/
H A Dtest_signals.c19 struct tdescr *current = &tde; in main()
33 ksft_print_msg("%s :: %s\n", current->name, current->descr);
34 if (test_setup(current) && test_init(current)) {
35 test_run(current);
36 test_cleanup(current);
38 test_result(current);
41 exit(current->result);
15 struct tdescr *current = &tde; global() variable
/linux/arch/m68k/mm/
H A Dfault.c29 signo = current->thread.signo; in send_fault_sig()
30 si_code = current->thread.code; in send_fault_sig()
31 addr = (void __user *)current->thread.faddr; in send_fault_sig()
73 struct mm_struct *mm = current->mm; in do_page_fault()
191 current->thread.signo = SIGBUS; in do_page_fault()
192 current->thread.faddr = address; in do_page_fault()
196 current->thread.signo = SIGBUS; in do_page_fault()
197 current->thread.code = BUS_ADRERR; in do_page_fault()
198 current->thread.faddr = address; in do_page_fault()
204 current->thread.signo = SIGSEGV; in do_page_fault()
[all …]
/linux/Documentation/hwmon/
H A Dmax16601.rst83 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 …]
H A Dina3221.rst21 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/arch/mips/math-emu/
H A Ddsemul.c77 mm_context_t *mm_ctx = &current->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(&current->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(&current->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(&current->thread.bd_emu_frame); in mips_dsemul()
273 ret = access_process_vm(current, fr_uaddr, &fr, sizeof(fr), in mips_dsemul()
[all …]
/linux/arch/um/kernel/
H A Dprocess.c77 arch_switch_to(current); in __switch_to()
79 return current->thread.prev_sched; in __switch_to()
84 struct pt_regs *regs = &current->thread.regs; in interrupt_end()
97 return task_pid_nr(current); in get_current_pid()
109 if (current->thread.prev_sched != NULL) in new_thread_handler()
110 schedule_tail(current->thread.prev_sched); in new_thread_handler()
111 current->thread.prev_sched = NULL; in new_thread_handler()
113 fn = current->thread.request.thread.proc; in new_thread_handler()
114 arg = current->thread.request.thread.arg; in new_thread_handler()
120 userspace(&current->thread.regs.regs); in new_thread_handler()
[all …]
/linux/include/linux/sched/
H A Dsignal.h284 struct task_struct *task = current; in kernel_dequeue_signal()
298 spin_lock_irq(&current->sighand->siglock); in kernel_signal_stop()
299 if (current->jobctl & JOBCTL_STOP_DEQUEUED) { in kernel_signal_stop()
300 current->jobctl |= JOBCTL_STOPPED; in kernel_signal_stop()
303 spin_unlock_irq(&current->sighand->siglock); in kernel_signal_stop()
372 set_tsk_thread_flag(current, TIF_SIGPENDING); in restart_syscall()
423 (fatal_signal_pending(current) || in fault_signal_pending()
424 (user_mode(regs) && signal_pending(current)))); in fault_signal_pending()
508 current->restore_sigmask = true; in set_restore_sigmask()
516 current->restore_sigmask = false; in clear_restore_sigmask()
[all …]
/linux/arch/arm64/kernel/
H A Dsignal.c250 &current->thread.uw.fpsimd_state; in preserve_fpsimd_context()
281 current->thread.fp_type = FP_STATE_FPSIMD; in restore_fpsimd_context()
294 current->thread.uw.fpmr = read_sysreg_s(SYS_FPMR); in preserve_fpmr_context()
298 __put_user_error(current->thread.uw.fpmr, &ctx->fpmr, err); in preserve_fpmr_context()
353 unsigned int vl = task_get_sve_vl(current); in preserve_sve_context()
356 if (thread_sm_enabled(&current->thread)) { in preserve_sve_context()
357 vl = task_get_sme_vl(current); in preserve_sve_context()
360 } else if (current->thread.fp_type == FP_STATE_SVE) { in preserve_sve_context()
381 current->thread.sve_state, in preserve_sve_context()
407 vl = task_get_sme_vl(current); in restore_sve_fpsimd_context()
[all …]
/linux/arch/csky/kernel/probes/
H A Duprobes.c50 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/tools/iio/
H A Diio_utils.c31 char *current; in iioutils_break_up_name() local
43 current = strdup(full_name + strlen(prefix) + 1); in iioutils_break_up_name()
44 if (!current) in iioutils_break_up_name()
47 working = strtok(current, "_\0"); in iioutils_break_up_name()
49 free(current); in iioutils_break_up_name()
66 free(current); in iioutils_break_up_name()
321 struct iio_channel_info *current; in build_channel_array() local
385 current = &(*ci_array)[count++]; in build_channel_array()
421 current->scale = 1.0; in build_channel_array()
422 current->offset = 0; in build_channel_array()
[all …]
/linux/arch/x86/kernel/
H A Dsignal.c119 sp = current->sas_ss_sp + current->sas_ss_size; in get_sigframe()
155 current->comm, task_pid_nr(current)); in get_sigframe()
258 struct fpu *fpu = &current->thread.fpu; in handle_signal()
264 if (syscall_get_nr(current, regs) != -1) { in handle_signal()
266 switch (syscall_get_error(current, regs)) { in handle_signal()
292 user_disable_single_step(current); in handle_signal()
318 if (current->restart_block.arch_data & TS_COMPAT) in get_nr_restart_syscall()
344 if (syscall_get_nr(current, regs) != -1) { in arch_do_signal_or_restart()
346 switch (syscall_get_error(current, regs)) { in arch_do_signal_or_restart()
370 struct task_struct *me = current; in signal_fault()
[all …]

12345678910>>...106