Home
last modified time | relevance | path

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

12345678910>>...54

/linux-2.4.37.9/kernel/
Dsys.c200 if (!who && p == current) in proc_sel()
205 who = current->pgrp; in proc_sel()
209 who = current->uid; in proc_sel()
235 if (p->uid != current->euid && in sys_setpriority()
236 p->uid != current->uid && !capable(CAP_SYS_NICE)) { in sys_setpriority()
397 int old_rgid = current->gid; in sys_setregid()
398 int old_egid = current->egid; in sys_setregid()
404 (current->egid==rgid) || in sys_setregid()
412 (current->egid == egid) || in sys_setregid()
413 (current->sgid == egid) || in sys_setregid()
[all …]
Dexit.c31 if (p != current) { in release_task()
54 current->cmin_flt += p->min_flt + p->cmin_flt; in release_task()
55 current->cmaj_flt += p->maj_flt + p->cmaj_flt; in release_task()
56 current->cnswap += p->nswap + p->cnswap; in release_task()
66 current->counter += p->counter; in release_task()
67 if (current->counter >= MAX_COUNTER) in release_task()
68 current->counter = MAX_COUNTER; in release_task()
281 struct mm_struct *mm = current->mm; in start_lazy_tlb()
282 current->mm = NULL; in start_lazy_tlb()
285 enter_lazy_tlb(mm, current, smp_processor_id()); in start_lazy_tlb()
[all …]
Dsignal.c154 sigaddset(&current->pending.signal, sig); in sig_exit()
155 recalc_sigpending(current); in sig_exit()
156 current->flags |= PF_SIGNALED; in sig_exit()
187 spin_lock_irqsave(&current->sigmask_lock, flags); in block_all_signals()
188 current->notifier_mask = mask; in block_all_signals()
189 current->notifier_data = priv; in block_all_signals()
190 current->notifier = notifier; in block_all_signals()
191 spin_unlock_irqrestore(&current->sigmask_lock, flags); in block_all_signals()
201 spin_lock_irqsave(&current->sigmask_lock, flags); in unblock_all_signals()
202 current->notifier = NULL; in unblock_all_signals()
[all …]
/linux-2.4.37.9/arch/s390x/kernel/
Dieee.h13 current->tss.fprs[R1].fd = current->tss.fprs[R1].fd + in _adddf()
14 current->tss.fprs[R2].fd; in _adddf()
19 current->tss.fprs[R1].fd = current->tss.fprs[R1].fd - in _subdf()
20 current->tss.fprs[R2].fd; in _subdf()
25 current->tss.fprs[R1].fd = current->tss.fprs[R1].fd * in _muldf()
26 current->tss.fprs[R2].fd; in _muldf()
31 current->tss.fprs[R1].fd = current->tss.fprs[R1].fd / in _divdf()
32 current->tss.fprs[R2].fd; in _divdf()
37 current->tss.fprs[R1].fd = -current->tss.fprs[R1].fd; in _negdf()
42 current->tss.regs->gprs[R1] = (__u32) current->tss.fprs[R2].fd; in _fixdfsi()
[all …]
Dsignal.c94 spin_lock_irq(&current->sigmask_lock); in sys_sigsuspend()
95 saveset = current->blocked; in sys_sigsuspend()
96 siginitset(&current->blocked, mask); in sys_sigsuspend()
97 recalc_sigpending(current); in sys_sigsuspend()
98 spin_unlock_irq(&current->sigmask_lock); in sys_sigsuspend()
122 spin_lock_irq(&current->sigmask_lock); in sys_rt_sigsuspend()
123 saveset = current->blocked; in sys_rt_sigsuspend()
124 current->blocked = newset; in sys_rt_sigsuspend()
125 recalc_sigpending(current); in sys_rt_sigsuspend()
126 spin_unlock_irq(&current->sigmask_lock); in sys_rt_sigsuspend()
[all …]
/linux-2.4.37.9/arch/alpha/kernel/
Dsemaphore.c58 DECLARE_WAITQUEUE(wait, current); in __down_failed()
62 current->comm, current->pid, sem); in __down_failed()
65 current->state = TASK_UNINTERRUPTIBLE; in __down_failed()
94 set_task_state(current, TASK_UNINTERRUPTIBLE); in __down_failed()
98 current->state = TASK_RUNNING; in __down_failed()
102 current->comm, current->pid, sem); in __down_failed()
109 DECLARE_WAITQUEUE(wait, current); in __down_failed_interruptible()
114 current->comm, current->pid, sem); in __down_failed_interruptible()
117 current->state = TASK_INTERRUPTIBLE; in __down_failed_interruptible()
170 : "r"(signal_pending(current)), "r"(-EINTR), in __down_failed_interruptible()
[all …]
/linux-2.4.37.9/arch/sparc64/kernel/
Dsys_sparc.c62 if (current->thread.flags & SPARC_FLAG_32BIT) in arch_get_unmapped_area()
79 for (vmm = find_vma(current->mm, addr); ; vmm = vmm->vm_next) { in arch_get_unmapped_area()
83 vmm = find_vma(current->mm, PAGE_OFFSET); in arch_get_unmapped_area()
143 if ((current->thread.flags & SPARC_FLAG_32BIT) && in sparc_brk()
145 return current->mm->brk; in sparc_brk()
147 if ((current->mm->brk & PAGE_OFFSET) != (brk & PAGE_OFFSET)) in sparc_brk()
148 return current->mm->brk; in sparc_brk()
263 if (current->personality == PER_LINUX32 && !ret) { in sparc64_newuname()
275 if (current->personality == PER_LINUX32 && personality == PER_LINUX) in sparc64_personality()
301 if (current->thread.flags & SPARC_FLAG_32BIT) { in sys_mmap()
[all …]
Dbinfmt_aout32.c52 down_write(&current->mm->mmap_sem); in set_brk()
54 up_write(&current->mm->mmap_sem); in set_brk()
99 current->flags |= PF_DUMPCORE; in aout32_core_dump()
100 strncpy(dump.u_comm, current->comm, sizeof(current->comm)); in aout32_core_dump()
107 current->rlim[RLIMIT_CORE].rlim_cur) in aout32_core_dump()
112 current->rlim[RLIMIT_CORE].rlim_cur) in aout32_core_dump()
141 DUMP_WRITE(current,sizeof(*current)); in aout32_core_dump()
173 current->mm->arg_start = (unsigned long) p; in create_aout32_tables()
182 current->mm->arg_end = current->mm->env_start = (unsigned long) p; in create_aout32_tables()
191 current->mm->env_end = (unsigned long) p; in create_aout32_tables()
[all …]
/linux-2.4.37.9/arch/s390/math-emu/
Dmath.c111 instr, current->comm, current->pid); in display_emulation_not_implemented()
153 mode = current->thread.fp_regs.fpc & 3; in emu_axbr()
154 cvt.w.high = current->thread.fp_regs.fprs[rx].ui; in emu_axbr()
155 cvt.w.low = current->thread.fp_regs.fprs[rx+2].ui; in emu_axbr()
157 cvt.w.high = current->thread.fp_regs.fprs[ry].ui; in emu_axbr()
158 cvt.w.low = current->thread.fp_regs.fprs[ry+2].ui; in emu_axbr()
162 current->thread.fp_regs.fprs[rx].ui = cvt.w.high; in emu_axbr()
163 current->thread.fp_regs.fprs[rx+2].ui = cvt.w.low; in emu_axbr()
174 mode = current->thread.fp_regs.fpc & 3; in emu_adbr()
175 FP_UNPACK_DP(DA, &current->thread.fp_regs.fprs[rx].d); in emu_adbr()
[all …]
/linux-2.4.37.9/arch/sparc/kernel/
Dsignal.c141 spin_lock_irq(&current->sigmask_lock); in _sigpause_common()
142 saveset = current->blocked; in _sigpause_common()
143 siginitset(&current->blocked, set); in _sigpause_common()
144 recalc_sigpending(current); in _sigpause_common()
145 spin_unlock_irq(&current->sigmask_lock); in _sigpause_common()
155 current->state = TASK_INTERRUPTIBLE; in _sigpause_common()
198 spin_lock_irq(&current->sigmask_lock); in do_rt_sigsuspend()
199 oldset = current->blocked; in do_rt_sigsuspend()
200 current->blocked = set; in do_rt_sigsuspend()
201 recalc_sigpending(current); in do_rt_sigsuspend()
[all …]
Dprocess.c79 if (current->pid != 0) in cpu_idle()
83 current->nice = 20; in cpu_idle()
84 current->counter = -100; in cpu_idle()
119 while((!current->need_resched) && pm_idle) { in cpu_idle()
137 current->nice = 20; in cpu_idle()
138 current->counter = -100; in cpu_idle()
142 if(current->need_resched) { in cpu_idle()
343 if(last_task_used_math == current) {
345 if(current->flags & PF_USEDFPU) {
349 fpsave(&current->thread.float_regs[0], &current->thread.fsr,
[all …]
/linux-2.4.37.9/arch/ppc64/kernel/
Dsyscalls.c70 …YS64X, "sys_ipc - entered - pid=%ld current=%lx comm=%s \n", current->pid, current, current->comm); in sys_ipc()
158 …SYS64X, "sys_ipc - exited - pid=%ld current=%lx comm=%s \n", current->pid, current, current->comm); in sys_ipc()
171 …S64X, "sys_pipe - entered - pid=%ld current=%lx comm=%s \n", current->pid, current, current->comm); in sys_pipe()
179 …YS64X, "sys_pipe - exited - pid=%ld current=%lx comm=%s \n", current->pid, current, current->comm); in sys_pipe()
190 …mmap - entered - addr=%lx, len=%lx - pid=%ld, comm=%s \n", addr, len, current->pid, current->comm); in sys_mmap()
198 down_write(&current->mm->mmap_sem); in sys_mmap()
200 up_write(&current->mm->mmap_sem); in sys_mmap()
214 …64X, "sys_pause - entered - pid=%ld current=%lx comm=%s \n", current->pid, current, current->comm); in sys_pause()
215 current->state = TASK_INTERRUPTIBLE; in sys_pause()
218 …S64X, "sys_pause - exited - pid=%ld current=%lx comm=%s \n", current->pid, current, current->comm); in sys_pause()
[all …]
Didle.c91 current->nice = 20; in idle_iSeries()
92 current->counter = -100; in idle_iSeries()
95 current->thread.flags &= ~PPC_FLAG_RUN_LIGHT; in idle_iSeries()
107 if ( !current->need_resched ) in idle_iSeries()
111 oldval = xchg(&current->need_resched, -1); in idle_iSeries()
113 while(current->need_resched == -1) { in idle_iSeries()
122 if (current->need_resched) { in idle_iSeries()
136 current->nice = 20; in idle_default()
137 current->counter = -100; in idle_default()
142 oldval = xchg(&current->need_resched, -1); in idle_default()
[all …]
/linux-2.4.37.9/arch/ppc/kernel/
Dsignal.c92 spin_lock_irq(&current->sigmask_lock); in sys_sigsuspend()
93 saveset = current->blocked; in sys_sigsuspend()
94 siginitset(&current->blocked, mask); in sys_sigsuspend()
95 recalc_sigpending(current); in sys_sigsuspend()
96 spin_unlock_irq(&current->sigmask_lock); in sys_sigsuspend()
102 current->state = TASK_INTERRUPTIBLE; in sys_sigsuspend()
131 spin_lock_irq(&current->sigmask_lock); in sys_rt_sigsuspend()
132 saveset = current->blocked; in sys_rt_sigsuspend()
133 current->blocked = newset; in sys_rt_sigsuspend()
134 recalc_sigpending(current); in sys_rt_sigsuspend()
[all …]
/linux-2.4.37.9/arch/sh/kernel/
Dsignal.c82 spin_lock_irq(&current->sigmask_lock); in sys_sigsuspend()
83 saveset = current->blocked; in sys_sigsuspend()
84 siginitset(&current->blocked, mask); in sys_sigsuspend()
85 recalc_sigpending(current); in sys_sigsuspend()
86 spin_unlock_irq(&current->sigmask_lock); in sys_sigsuspend()
90 current->state = TASK_INTERRUPTIBLE; in sys_sigsuspend()
111 spin_lock_irq(&current->sigmask_lock); in sys_rt_sigsuspend()
112 saveset = current->blocked; in sys_rt_sigsuspend()
113 current->blocked = newset; in sys_rt_sigsuspend()
114 recalc_sigpending(current); in sys_rt_sigsuspend()
[all …]
/linux-2.4.37.9/fs/
Dexec.c343 down_write(&current->mm->mmap_sem); in setup_arg_pages()
345 mpnt->vm_mm = current->mm; in setup_arg_pages()
354 if ((ret = insert_vm_struct(current->mm, mpnt))) { in setup_arg_pages()
355 up_write(&current->mm->mmap_sem); in setup_arg_pages()
359 current->mm->total_vm = (mpnt->vm_end - mpnt->vm_start) >> PAGE_SHIFT; in setup_arg_pages()
366 put_dirty_page(current,page,stack_base); in setup_arg_pages()
370 up_write(&current->mm->mmap_sem); in setup_arg_pages()
432 old_mm = current->mm; in exec_mmap()
447 if (init_new_context(current, mm)) { in exec_mmap()
458 task_lock(current); in exec_mmap()
[all …]
Dbinfmt_aout.c50 down_write(&current->mm->mmap_sem); in set_brk()
52 up_write(&current->mm->mmap_sem); in set_brk()
113 current->flags |= PF_DUMPCORE; in aout_core_dump()
114 strncpy(dump.u_comm, current->comm, sizeof(current->comm)); in aout_core_dump()
125 current->rlim[RLIMIT_CORE].rlim_cur) in aout_core_dump()
129 current->rlim[RLIMIT_CORE].rlim_cur) in aout_core_dump()
136 current->rlim[RLIMIT_CORE].rlim_cur) in aout_core_dump()
140 current->rlim[RLIMIT_CORE].rlim_cur) in aout_core_dump()
189 DUMP_WRITE(current,sizeof(*current)); in aout_core_dump()
235 current->mm->arg_start = (unsigned long) p; in create_aout_tables()
[all …]
Dbinfmt_som.c88 p = current->mm->arg_start; in create_som_tables()
94 current->mm->arg_end = current->mm->env_start = p; in create_som_tables()
100 current->mm->env_end = p; in create_som_tables()
145 current->mm->start_code = code_start; in map_som_binary()
146 current->mm->end_code = code_start + code_size; in map_som_binary()
147 down_write(&current->mm->mmap_sem); in map_som_binary()
150 up_write(&current->mm->mmap_sem); in map_som_binary()
156 current->mm->start_data = data_start; in map_som_binary()
157 current->mm->end_data = bss_start = data_start + data_size; in map_som_binary()
158 down_write(&current->mm->mmap_sem); in map_som_binary()
[all …]
/linux-2.4.37.9/arch/mips64/kernel/
Dsignal.c93 spin_lock_irq(&current->sigmask_lock); in _sys_rt_sigsuspend()
94 saveset = current->blocked; in _sys_rt_sigsuspend()
95 current->blocked = newset; in _sys_rt_sigsuspend()
96 recalc_sigpending(current); in _sys_rt_sigsuspend()
97 spin_unlock_irq(&current->sigmask_lock); in _sys_rt_sigsuspend()
102 current->state = TASK_INTERRUPTIBLE; in _sys_rt_sigsuspend()
142 err |= __get_user(current->used_math, &sc->sc_used_math); in restore_sigcontext()
144 if (current->used_math) { in restore_sigcontext()
176 spin_lock_irq(&current->sigmask_lock); in sys_rt_sigreturn()
177 current->blocked = set; in sys_rt_sigreturn()
[all …]
/linux-2.4.37.9/arch/mips/kernel/
Dsignal.c88 spin_lock_irq(&current->sigmask_lock); in _sys_sigsuspend()
89 saveset = current->blocked; in _sys_sigsuspend()
90 current->blocked = newset; in _sys_sigsuspend()
91 recalc_sigpending(current); in _sys_sigsuspend()
92 spin_unlock_irq(&current->sigmask_lock); in _sys_sigsuspend()
97 current->state = TASK_INTERRUPTIBLE; in _sys_sigsuspend()
120 spin_lock_irq(&current->sigmask_lock); in _sys_rt_sigsuspend()
121 saveset = current->blocked; in _sys_rt_sigsuspend()
122 current->blocked = newset; in _sys_rt_sigsuspend()
123 recalc_sigpending(current); in _sys_rt_sigsuspend()
[all …]
Dirixsig.c103 __put_user(current->used_math, &ctx->usedfp); in setup_irix_frame()
126 force_sig(SIGSEGV, current); in setup_irix_frame()
148 spin_lock_irq(&current->sigmask_lock); in handle_signal()
149 sigorsets(&current->blocked,&current->blocked,&ka->sa.sa_mask); in handle_signal()
150 sigaddset(&current->blocked,sig); in handle_signal()
151 recalc_sigpending(current); in handle_signal()
152 spin_unlock_irq(&current->sigmask_lock); in handle_signal()
181 oldset = &current->blocked; in do_irix_signal()
186 spin_lock_irq(&current->sigmask_lock); in do_irix_signal()
187 signr = dequeue_signal(&current->blocked, &info); in do_irix_signal()
[all …]
/linux-2.4.37.9/arch/s390/kernel/
Dsignal.c96 spin_lock_irq(&current->sigmask_lock); in sys_sigsuspend()
97 saveset = current->blocked; in sys_sigsuspend()
98 siginitset(&current->blocked, mask); in sys_sigsuspend()
99 recalc_sigpending(current); in sys_sigsuspend()
100 spin_unlock_irq(&current->sigmask_lock); in sys_sigsuspend()
124 spin_lock_irq(&current->sigmask_lock); in sys_rt_sigsuspend()
125 saveset = current->blocked; in sys_rt_sigsuspend()
126 current->blocked = newset; in sys_rt_sigsuspend()
127 recalc_sigpending(current); in sys_rt_sigsuspend()
128 spin_unlock_irq(&current->sigmask_lock); in sys_rt_sigsuspend()
[all …]
/linux-2.4.37.9/arch/cris/kernel/
Dsignal.c94 spin_lock_irq(&current->sigmask_lock); in sys_sigsuspend()
95 saveset = current->blocked; in sys_sigsuspend()
96 siginitset(&current->blocked, mask); in sys_sigsuspend()
97 recalc_sigpending(current); in sys_sigsuspend()
98 spin_unlock_irq(&current->sigmask_lock); in sys_sigsuspend()
102 current->state = TASK_INTERRUPTIBLE; in sys_sigsuspend()
133 spin_lock_irq(&current->sigmask_lock); in sys_rt_sigsuspend()
134 saveset = current->blocked; in sys_rt_sigsuspend()
135 current->blocked = newset; in sys_rt_sigsuspend()
136 recalc_sigpending(current); in sys_rt_sigsuspend()
[all …]
/linux-2.4.37.9/arch/ia64/ia32/
Dbinfmt_elf32.c87 vma->vm_mm = current->mm; in ia64_elf32_init()
96 down_write(&current->mm->mmap_sem); in ia64_elf32_init()
98 if (insert_vm_struct(current->mm, vma)) { in ia64_elf32_init()
100 up_write(&current->mm->mmap_sem); in ia64_elf32_init()
104 up_write(&current->mm->mmap_sem); in ia64_elf32_init()
113 vma->vm_mm = current->mm; in ia64_elf32_init()
122 down_write(&current->mm->mmap_sem); in ia64_elf32_init()
124 if (insert_vm_struct(current->mm, vma)) { in ia64_elf32_init()
126 up_write(&current->mm->mmap_sem); in ia64_elf32_init()
130 up_write(&current->mm->mmap_sem); in ia64_elf32_init()
[all …]
/linux-2.4.37.9/arch/i386/kernel/
Dsignal.c78 spin_lock_irq(&current->sigmask_lock); in sys_sigsuspend()
79 saveset = current->blocked; in sys_sigsuspend()
80 siginitset(&current->blocked, mask); in sys_sigsuspend()
81 recalc_sigpending(current); in sys_sigsuspend()
82 spin_unlock_irq(&current->sigmask_lock); in sys_sigsuspend()
86 current->state = TASK_INTERRUPTIBLE; in sys_sigsuspend()
107 spin_lock_irq(&current->sigmask_lock); in sys_rt_sigsuspend()
108 saveset = current->blocked; in sys_rt_sigsuspend()
109 current->blocked = newset; in sys_rt_sigsuspend()
110 recalc_sigpending(current); in sys_rt_sigsuspend()
[all …]

12345678910>>...54