Searched refs:current (Results 276 - 300 of 2002) sorted by relevance

<<11121314151617181920>>

/linux-master/arch/mips/include/asm/
H A Delf.h17 #include <asm/current.h>
334 current->thread.abi = &mips_abi; \
339 if (personality(current->personality) != PER_LINUX) \
352 current->thread.abi = &mips_abi_n32; \
367 current->thread.abi = &mips_abi_32; \
397 current->personality &= ~READ_IMPLIES_EXEC; \
402 current->thread.abi = &mips_abi; \
406 p = personality(current->personality); \
462 (unsigned long)current->mm->context.vdso); \
/linux-master/block/
H A Dblk-ioc.c298 struct io_context *ioc = current->io_context;
326 struct io_context *ioc = current->io_context;
365 struct io_context *ioc = current->io_context;
409 struct io_context *ioc = current->io_context;
417 task_lock(current);
418 if (current->io_context) {
420 ioc = current->io_context;
422 current->io_context = ioc;
426 task_unlock(current);
/linux-master/arch/x86/kernel/fpu/
H A Dsignal.c41 fx_sw->xstate_size > current->thread.fpu.fpstate->user_size ||
57 trace_x86_fpu_xstate_check_failed(&current->thread.fpu);
190 struct task_struct *tsk = current;
201 fpregs_soft_get(current, NULL, (struct membuf){.p = &fp,
221 * Load the FPU registers if they are not valid for the current task.
279 struct fpu *fpu = &current->thread.fpu;
300 * If the FPU registers do not belong to current, then
302 * might preempt current and return to user space with
338 struct task_struct *tsk = current;
380 * hardware state in current'
[all...]
/linux-master/arch/x86/entry/vdso/
H A Dvma.c83 (unsigned long)current->mm->context.vdso;
95 const struct vdso_image *image = current->mm->context.vdso_image;
98 current->mm->context.vdso = (void __user *)new_vma->vm_start;
219 * Add vdso and vvar mappings to current process.
225 struct mm_struct *mm = current->mm;
268 current->mm->context.vdso = (void __user *)text_start;
269 current->mm->context.vdso_image = image;
279 struct mm_struct *mm = current->mm;
350 const struct vdso_image *image = current->mm->context.vdso_image;
351 unsigned long vdso = (unsigned long) current
[all...]
/linux-master/arch/arm64/kernel/
H A Dstacktrace.c59 kunwind_init(state, current);
76 kunwind_init(state, current);
90 * call this for the current task.
179 * Per-cpu stacks are only accessible when unwinding the current task in a
184 ((task == current) && !preemptible()) \
190 * SDEI stacks are only accessible when unwinding the current task in an NMI
195 ((task == current) && in_nmi()) \
202 ((task == current) && current_in_efi()) \
234 if (task != current)
237 } else if (task == current) {
[all...]
H A Dsyscall.c53 syscall_set_return_value(current, regs, 0, ret);
106 syscall_set_return_value(current, regs, -ERESTARTNOINTR, 0);
127 syscall_set_return_value(current, regs, -ENOSYS, 0);
/linux-master/arch/x86/kernel/
H A Ddumpstack.c82 if (regs != task_pt_regs(current))
201 * Iterate through the stacks, starting with the current stack pointer.
312 task = task ? : current;
316 * if we're printing for %current.
318 if (!sp && task == current)
319 sp = get_stack_pointer(current, NULL);
326 show_trace_log_lvl(current, regs, NULL, KERN_DEFAULT);
361 if (regs && kexec_should_crash(current))
391 kasan_unpoison_task_stack(current);
424 current
[all...]
/linux-master/security/yama/
H A Dyama_lsm.c83 if (current->flags & PF_KTHREAD) {
103 if (task_work_add(current, &info->work, TWA_RESUME) == 0)
226 struct task_struct *myself = current;
350 * @child: task that current task is attempting to ptrace
370 if (!rc && !task_is_descendant(current, child) &&
371 !ptracer_exception_found(current, child) &&
390 report_access("attach", child, current);
397 * @parent: task that will become the ptracer of the current task
417 task_lock(current);
418 report_access("traceme", current, paren
[all...]
/linux-master/include/linux/
H A Dsched.h12 #include <asm/current.h>
157 current->task_state_change = _THIS_IP_; \
163 current->task_state_change = _THIS_IP_; \
168 current->saved_state_change = current->task_state_change;\
169 current->task_state_change = _THIS_IP_; \
174 current->task_state_change = current->saved_state_change;\
185 * set_current_state() includes a barrier so that the write of current->__state
224 WRITE_ONCE(current
[all...]
/linux-master/arch/sh/kernel/
H A Ddumpstack.c136 tsk = current;
146 tsk = current;
147 if (tsk == current)
/linux-master/arch/loongarch/include/asm/
H A Dmmu_context.h94 * Mark current->active_mm as not "active" anymore.
120 #define activate_mm(prev, next) switch_mm(prev, next, current)
138 if (!current->mm || (current->mm == mm)) {
/linux-master/arch/powerpc/kernel/
H A Dsyscalls.c81 if (personality(current->personality) == PER_LINUX32
115 regs_set_return_msr(current->thread.regs,
116 current->thread.regs->msr ^ MSR_LE);
/linux-master/arch/arm64/include/asm/
H A Dpointer_auth.h117 ptrauth_keys_install_user(&current->thread.keys_user)
121 ptrauth_keys_init_user(&current->thread.keys_user); \
125 ptrauth_set_enabled_keys(current, \
/linux-master/tools/testing/selftests/powerpc/pmu/
H A Dlib.c179 long current; local
181 err = read_long(PARANOID_PATH, &current, 10);
187 return current < level;
/linux-master/drivers/media/test-drivers/visl/
H A Dvisl.h90 #define frame_dprintk(dev, current, fmt, arg...) \
93 (current) >= visl_dprintk_frame_start && \
94 (current) < visl_dprintk_frame_start + visl_dprintk_nframes) \
/linux-master/arch/riscv/include/asm/
H A Delf.h89 * casting current->mm->context.vdso triggers a cast \
94 (elf_addr_t)(ulong)current->mm->context.vdso); \
139 if (personality(current->personality) != PER_LINUX32) \
141 (current->personality & (~PER_MASK))); \
/linux-master/arch/arm64/kvm/
H A Dfpsimd.c20 * the same task as current (highly likely).
23 * such that on entering hyp the relevant parts of current are already
28 struct user_fpsimd_state *fpsimd = &current->thread.uw.fpsimd_state;
48 * state in the cpu regs (if any) belongs to current on the host.
52 BUG_ON(!current->mm);
65 *host_data_ptr(fpsimd_state) = kern_hyp_va(&current->thread.uw.fpsimd_state);
/linux-master/fs/
H A Dcoredump.c172 exe_file = get_mm_exe_file(current->mm);
174 return cn_esc_printf(cn, "%s (path unknown)", current->comm);
269 task_tgid_vnr(current));
274 task_tgid_nr(current));
278 task_pid_vnr(current));
282 task_pid_nr(current));
322 err = cn_esc_printf(cn, "%s", current->comm);
357 err = cn_printf(cn, ".%d", task_tgid_vnr(current));
376 if (t != current && !(t->flags & PF_POSTCOREDUMP)) {
406 struct task_struct *tsk = current;
[all...]
/linux-master/arch/s390/mm/
H A Dfault.c209 if ((task_pid_nr(current) > 1) && !show_unhandled_signals)
211 if (!unhandled_signal(current, signr))
260 struct mm_struct *mm = current->mm;
300 mm = current->mm;
355 current->thread.gmap_addr = address;
356 current->thread.gmap_write_flag = !!(flags & FAULT_FLAG_WRITE);
357 current->thread.gmap_int_code = regs->int_code & 0xffff;
403 current->thread.gmap_pfault = 1;
413 address = __gmap_link(gmap, current->thread.gmap_addr,
512 send_sig(SIGSEGV, current,
[all...]
/linux-master/mm/
H A Dmlock.c487 is_vm_hugetlb_page(vma) || vma == get_gate_vma(current->mm) ||
530 VMA_ITERATOR(vmi, current->mm, start);
641 if (mmap_write_lock_killable(current->mm))
644 locked += current->mm->locked_vm;
652 locked -= count_mm_mlocked_page_nr(current->mm,
660 mmap_write_unlock(current->mm);
697 if (mmap_write_lock_killable(current->mm))
700 mmap_write_unlock(current->mm);
708 * flags for all current VMAs.
717 VMA_ITERATOR(vmi, current
[all...]
/linux-master/kernel/
H A Dseccomp.c218 * with current->seccomp.filter, the most recently attached or inherited filter.
250 * to safely fetch "current", so just use "task" everywhere below.
252 struct task_struct *task = current;
412 READ_ONCE(current->seccomp.filter);
439 assert_spin_locked(&current->sighand->siglock);
441 if (current->seccomp.mode && current->seccomp.mode != seccomp_mode)
494 BUG_ON(!mutex_is_locked(&current->signal->cred_guard_mutex));
495 assert_spin_locked(&current->sighand->siglock);
498 caller = current;
[all...]
H A Dsys.c182 * Returns true if current's euid is same as p's uid or euid,
252 p = current;
260 pgrp = task_pgrp(current);
315 p = current;
326 pgrp = task_pgrp(current);
518 current->flags |= PF_NPROC_EXCEEDED;
520 current->flags &= ~PF_NPROC_EXCEEDED;
959 * sys_getpid - return the thread group id of the current process
965 * This is SMP safe as current->tgid does not change.
969 return task_tgid_vnr(current);
[all...]
H A Dexec_domain.c40 unsigned int old = current->personality;
/linux-master/include/trace/events/
H A Dpower_cpu_migrate.h46 __define_cpu_migrate_event(current); variable
/linux-master/lib/
H A Dis_single_threaded.c17 struct task_struct *task = current;

Completed in 215 milliseconds

<<11121314151617181920>>