]> git.ipfire.org Git - thirdparty/man-pages.git/blame - man5/proc_pid_syscall.5
proc_pid_io.5: Dewafflify
[thirdparty/man-pages.git] / man5 / proc_pid_syscall.5
CommitLineData
987b5795
AC
1.\" Copyright (C) 1994, 1995, Daniel Quinlan <quinlan@yggdrasil.com>
2.\" Copyright (C) 2002-2008, 2017, Michael Kerrisk <mtk.manpages@gmail.com>
3.\" Copyright (C) 2023, Alejandro Colomar <alx@kernel.org>
4.\"
5.\" SPDX-License-Identifier: GPL-3.0-or-later
6.\"
7.TH proc_pid_syscall 5 (date) "Linux man-pages (unreleased)"
8.SH NAME
9/proc/pid/syscall \- currently executed system call
10.SH DESCRIPTION
11.TP
12.IR /proc/ pid /syscall " (since Linux 2.6.27)"
13.\" commit ebcb67341fee34061430f3367f2e507e52ee051b
14This file exposes the system call number and argument registers for the
15system call currently being executed by the process,
16followed by the values of the stack pointer and program counter registers.
17The values of all six argument registers are exposed,
18although most system calls use fewer registers.
19.IP
20If the process is blocked, but not in a system call,
21then the file displays \-1 in place of the system call number,
22followed by just the values of the stack pointer and program counter.
23If process is not blocked, then the file contains just the string "running".
24.IP
25This file is present only if the kernel was configured with
26.BR CONFIG_HAVE_ARCH_TRACEHOOK .
27.IP
28Permission to access this file is governed by a ptrace access mode
29.B PTRACE_MODE_ATTACH_FSCREDS
30check; see
31.BR ptrace (2).
32.SH SEE ALSO
33.BR proc (5)