Home
last modified time | relevance | path

Searched refs:pid (Results 1 – 25 of 212) sorted by relevance

123456789

/arch/powerpc/mm/book3s64/
A Dradix_tlb.c29 unsigned int pid, in tlbiel_radix_set_isa300() argument
352 unsigned long pid; member
372 struct tlbiel_pid t = { .pid = pid, .ric = ric }; in _tlbiel_pid_multicast()
488 unsigned long pid; member
518 unsigned long pid; member
563 .pid = pid, .page_size = page_size, in _tlbiel_va_range_multicast()
836 unsigned long pid; in radix__flush_tlb_mm() local
877 unsigned long pid; in __flush_all_mm() local
917 unsigned long pid; in radix__flush_tlb_page_psize() local
1021 unsigned long pid; in __radix__flush_tlb_range() local
[all …]
/arch/powerpc/mm/nohash/
A Dtlb.c130 unsigned int pid; in local_flush_tlb_mm() local
133 pid = mm->context.id; in local_flush_tlb_mm()
135 _tlbil_pid(pid); in local_flush_tlb_mm()
143 unsigned int pid; in __local_flush_tlb_page() local
177 unsigned int pid; member
215 unsigned int pid; in flush_tlb_mm() local
218 pid = mm->context.id; in flush_tlb_mm()
222 struct tlb_flush_param p = { .pid = pid }; in flush_tlb_mm()
227 _tlbil_pid(pid); in flush_tlb_mm()
237 unsigned int pid; in __flush_tlb_page() local
[all …]
/arch/um/os-Linux/
A Dstart_up.c49 kill(pid, SIGKILL); in ptrace_child()
51 kill(pid, SIGSTOP); in ptrace_child()
59 if (sc_result == pid) in ptrace_child()
106 int pid, n, status; in start_ptraced_child() local
110 pid = fork(); in start_ptraced_child()
111 if (pid == 0) in start_ptraced_child()
113 else if (pid < 0) in start_ptraced_child()
123 return pid; in start_ptraced_child()
294 int pid; in init_seccomp() local
319 if (pid < 0) in init_seccomp()
[all …]
A Dprocess.c23 void os_alarm_process(int pid) in os_alarm_process() argument
25 if (pid <= 0) in os_alarm_process()
28 kill(pid, SIGALRM); in os_alarm_process()
33 if (pid <= 0) in os_kill_process()
39 kill(pid, SIGKILL); in os_kill_process()
41 CATCH_EINTR(waitpid(pid, NULL, __WALL)); in os_kill_process()
53 if (pid <= 0) in os_kill_ptraced_process()
59 kill(pid, SIGKILL); in os_kill_ptraced_process()
60 ptrace(PTRACE_KILL, pid); in os_kill_ptraced_process()
61 ptrace(PTRACE_CONT, pid); in os_kill_ptraced_process()
[all …]
A Dhelper.c48 int pid, fds[2], ret, n; in run_helper() local
77 if (pid < 0) { in run_helper()
93 ret = pid; in run_helper()
123 int pid, status, err; in run_helper_thread() local
135 if (pid < 0) { in run_helper_thread()
142 CATCH_EINTR(pid = waitpid(pid, &status, __WALL)); in run_helper_thread()
143 if (pid < 0) { in run_helper_thread()
147 pid = err; in run_helper_thread()
155 return pid; in run_helper_thread()
158 int helper_wait(int pid) in helper_wait() argument
[all …]
A Dregisters.c20 int init_pid_registers(int pid) in init_pid_registers() argument
24 err = ptrace(PTRACE_GETREGS, pid, 0, exec_regs); in init_pid_registers()
28 err = arch_init_registers(pid); in init_pid_registers()
33 get_fp_registers(pid, exec_fp_regs); in init_pid_registers()
A Dumid.c138 char pid[sizeof("nnnnnnnnn")], *end, *file; in is_umdir_used() local
159 n = read(fd, pid, sizeof(pid)); in is_umdir_used()
170 p = strtoul(pid, &end, 0); in is_umdir_used()
171 if (end == pid) { in is_umdir_used()
212 char pid[sizeof("nnnnnnnnn")], *file; in create_pid_file() local
230 snprintf(pid, sizeof(pid), "%d\n", getpid()); in create_pid_file()
231 n = write(fd, pid, strlen(pid)); in create_pid_file()
232 if (n != strlen(pid)) in create_pid_file()
/arch/powerpc/mm/
A Dmmu_decl.h31 static inline void _tlbil_pid(unsigned int pid) in _tlbil_pid() argument
34 trace_tlbia(pid); in _tlbil_pid()
36 #define _tlbil_pid_noind(pid) _tlbil_pid(pid) argument
40 extern void _tlbil_pid(unsigned int pid);
42 extern void _tlbil_pid_noind(unsigned int pid);
44 #define _tlbil_pid_noind(pid) _tlbil_pid(pid) argument
56 trace_tlbie(0, 0, address, pid, 0, 0, 0); in _tlbil_va()
59 extern void _tlbil_va(unsigned long address, unsigned int pid,
62 extern void __tlbil_va(unsigned long address, unsigned int pid);
66 __tlbil_va(address, pid); in _tlbil_va()
[all …]
/arch/um/kernel/skas/
A Dmmu.c70 if (mmu->id.pid >= 0 && mmu->id.pid < 2) { in destroy_context()
72 mmu->id.pid); in destroy_context()
76 if (mmu->id.pid > 0) { in destroy_context()
77 os_kill_ptraced_process(mmu->id.pid, 1); in destroy_context()
78 mmu->id.pid = -1; in destroy_context()
94 pid_t pid; in mm_sigchld_irq() local
98 while ((pid = os_reap_child()) > 0) { in mm_sigchld_irq()
106 if (mm_context->id.pid == pid) { in mm_sigchld_irq()
111 mm_context->id.pid = -1; in mm_sigchld_irq()
/arch/powerpc/platforms/powernv/
A Dvas-trace.h24 __field(int, pid)
34 __entry->pid = tsk->pid;
43 __entry->pid, __entry->vasid, __entry->cop,
59 __field(int, pid)
68 __entry->pid = tsk->pid;
76 __entry->pid, __entry->vasid, __entry->cop,
90 __field(int, pid)
97 __entry->pid = tsk->pid;
104 __entry->pid, __entry->vasid, __entry->winid,
/arch/um/drivers/
A Dxterm.c19 int pid; member
35 *data = ((struct xterm_chan) { .pid = -1, in xterm_init()
91 int pid, fd, new, err; in xterm_open() local
137 pid = run_helper(NULL, NULL, argv); in xterm_open()
138 if (pid < 0) { in xterm_open()
139 err = pid; in xterm_open()
183 data->pid = pid; in xterm_open()
191 os_kill_process(pid, 1); in xterm_open()
202 if (data->pid != -1) in xterm_close()
203 os_kill_process(data->pid, 1); in xterm_close()
[all …]
A Dxterm_kern.c17 int pid; member
28 &xterm->pid, sizeof(xterm->pid)); in xterm_interrupt()
34 else if (ret != sizeof(xterm->pid)) in xterm_interrupt()
56 .pid = -1, in xterm_fd()
78 *pid_out = data->pid; in xterm_fd()
A Dharddog_user.c34 int in_fds[2], out_fds[2], pid, n, err; in start_watchdog() local
68 pid = run_helper(pre_exec, &data, args); in start_watchdog()
73 if (pid < 0) { in start_watchdog()
74 err = -pid; in start_watchdog()
82 helper_wait(pid); in start_watchdog()
89 helper_wait(pid); in start_watchdog()
A Dchan_user.c243 int fds[2], n, err, pid; in winch_tramp() local
261 pid = run_helper_thread(winch_thread, &data, CLONE_FILES, stack_out); in winch_tramp()
262 if (pid < 0) { in winch_tramp()
263 err = pid; in winch_tramp()
287 return pid; in winch_tramp()
299 int pid, thread, count, thread_fd = -1; in register_winch() local
305 pid = tcgetpgrp(fd); in register_winch()
306 if (is_skas_winch(pid, fd, port)) { in register_winch()
311 if (pid == -1) { in register_winch()
/arch/x86/um/os-Linux/
A Dregisters.c24 int get_fp_registers(int pid, unsigned long *regs) in get_fp_registers() argument
31 if (ptrace(PTRACE_GETREGSET, pid, ptrace_regset, &iov) < 0) in get_fp_registers()
36 int put_fp_registers(int pid, unsigned long *regs) in put_fp_registers() argument
43 if (ptrace(PTRACE_SETREGSET, pid, ptrace_regset, &iov) < 0) in put_fp_registers()
48 int arch_init_registers(int pid) in arch_init_registers() argument
63 ret = ptrace(PTRACE_GETREGSET, pid, ptrace_regset, &iov); in arch_init_registers()
74 ret = ptrace(PTRACE_GETREGSET, pid, ptrace_regset, &iov); in arch_init_registers()
A Dtls.c49 int os_set_thread_area(user_desc_t *info, int pid) in os_set_thread_area() argument
53 ret = ptrace(PTRACE_SET_THREAD_AREA, pid, info->entry_number, in os_set_thread_area()
60 int os_get_thread_area(user_desc_t *info, int pid) in os_get_thread_area() argument
64 ret = ptrace(PTRACE_GET_THREAD_AREA, pid, info->entry_number, in os_get_thread_area()
/arch/um/os-Linux/skas/
A Dprocess.c39 return pid == getpgrp(); in is_skas_winch()
90 static int ptrace_dump_regs(int pid) in ptrace_dump_regs() argument
117 void wait_stub_done(int pid) in wait_stub_done() argument
141 err = ptrace_dump_regs(pid); in wait_stub_done()
220 if (__READ_ONCE(mm_idp->pid) < 0) in wait_stub_done_seccomp()
261 wait_stub_done(pid); in get_skas_faultinfo()
487 if (mm_id->pid < 0) { in start_userspace()
545 mm_id->pid = -1; in start_userspace()
647 int pid = mm_id->pid; in userspace() local
685 if (ptrace(op, pid, 0, 0)) { in userspace()
[all …]
/arch/x86/um/
A Dptrace_user.c9 int ptrace_getregs(long pid, unsigned long *regs_out) in ptrace_getregs() argument
11 if (ptrace(PTRACE_GETREGS, pid, 0, regs_out) < 0) in ptrace_getregs()
16 int ptrace_setregs(long pid, unsigned long *regs) in ptrace_setregs() argument
18 if (ptrace(PTRACE_SETREGS, pid, 0, regs) < 0) in ptrace_setregs()
/arch/sh/mm/
A Dasids-debugfs.c36 int pid = p->pid; in asids_debugfs_show() local
38 if (unlikely(!pid)) in asids_debugfs_show()
42 seq_printf(file, "%5d : %04lx\n", pid, in asids_debugfs_show()
/arch/mips/mm/
A Dtlb-r3k.c121 int pid = read_c0_entryhi(); in local_flush_tlb_kernel_range() local
140 write_c0_entryhi(pid); in local_flush_tlb_kernel_range()
183 int idx, pid; in __update_tlb() local
191 pid = read_c0_entryhi() & asid_mask; in __update_tlb()
194 if ((pid != (cpu_context(cpu, vma->vm_mm) & asid_mask)) || (cpu_context(cpu, vma->vm_mm) == 0)) { in __update_tlb()
196 (cpu_context(cpu, vma->vm_mm)), pid); in __update_tlb()
202 write_c0_entryhi(address | pid); in __update_tlb()
207 write_c0_entryhi(address | pid); in __update_tlb()
213 write_c0_entryhi(pid); in __update_tlb()
/arch/nios2/mm/
A Dtlb.c25 static void get_misc_and_pid(unsigned long *misc, unsigned long *pid) in get_misc_and_pid() argument
29 *pid = *misc & TLBMISC_PID; in get_misc_and_pid()
58 unsigned long pid; in replace_tlb_one_pid() local
68 pid = (tlbmisc >> TLBMISC_PID_SHIFT) & TLBMISC_PID_MASK; in replace_tlb_one_pid()
69 if (pid != mmu_pid) in replace_tlb_one_pid()
232 unsigned long pid; in flush_tlb_pid() local
237 pid = (tlbmisc >> TLBMISC_PID_SHIFT) & TLBMISC_PID_MASK; in flush_tlb_pid()
238 if (pid != mmu_pid) in flush_tlb_pid()
242 (pid << TLBMISC_PID_SHIFT); in flush_tlb_pid()
296 void set_mmu_pid(unsigned long pid) in set_mmu_pid() argument
[all …]
/arch/um/kernel/
A Dreboot.c23 int pid; in kill_off_processes() local
32 pid = t->mm->context.id.pid; in kill_off_processes()
34 os_kill_ptraced_process(pid, 1); in kill_off_processes()
/arch/powerpc/platforms/book3s/
A Dvas-api.c82 put_pid(task_ref->pid); in get_vas_user_win_ref()
84 current->pid); in get_vas_user_win_ref()
110 struct pid *pid; in ref_get_pid_and_task() local
112 pid = task_ref->pid; in ref_get_pid_and_task()
113 tsk = get_pid_task(pid, PIDTYPE_PID); in ref_get_pid_and_task()
115 pid = task_ref->tgid; in ref_get_pid_and_task()
116 tsk = get_pid_task(pid, PIDTYPE_PID); in ref_get_pid_and_task()
132 *pidp = pid; in ref_get_pid_and_task()
155 struct pid *pid; in vas_update_csb() local
222 csb_addr, pid_vnr(pid)); in vas_update_csb()
[all …]
/arch/um/include/shared/
A Dregisters.h11 extern int init_pid_registers(int pid);
13 extern int get_fp_registers(int pid, unsigned long *regs);
14 extern int put_fp_registers(int pid, unsigned long *regs);
/arch/mips/kernel/
A Dmips-mt-fpaff.c42 static inline struct task_struct *find_process_by_pid(pid_t pid) in find_process_by_pid() argument
44 return pid ? find_task_by_vpid(pid) : current; in find_process_by_pid()
66 asmlinkage long mipsmt_sys_sched_setaffinity(pid_t pid, unsigned int len, in mipsmt_sys_sched_setaffinity() argument
83 p = find_process_by_pid(pid); in mipsmt_sys_sched_setaffinity()
158 asmlinkage long mipsmt_sys_sched_getaffinity(pid_t pid, unsigned int len, in mipsmt_sys_sched_getaffinity() argument
174 p = find_process_by_pid(pid); in mipsmt_sys_sched_getaffinity()

Completed in 50 milliseconds

123456789