Skip to content

Conversation

@jebradbury39
Copy link

Manpage for this file:

/proc/[pid]/syscall (since Linux 2.6.27)
              This file exposes the system call number and argument registers for the system call currently being executed by the process, followed by the values of the stack pointer and program counter registers.  The values of all six argument registers are exposed, although most system calls use fewer registers.

              If the process is blocked, but not in a system call, then the file displays -1 in place of the system call number, followed by just the values of the stack pointer and program counter.  If process is not blocked, then the file contains just the string "running". 

This file exists for tasks/threads as well.

@eminence
Copy link
Owner

Sorry for taking so long to notice and review this. This looks good to me, thanks for the contribution

@eminence eminence merged commit 5faa3c4 into eminence:master Aug 27, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants