Syscall
System Call
Last updated
System Call
Last updated
A system call is a request made by a program to the kernel to perform a specific function, such as input/output operations, memory allocation, or process control.
Syscalls are typically made through an interrupt instruction, which is a special type of instruction that stops the execution and transfers control to the kernel. The kernel then performs the requested service and returns control to the program once it is completed.
is a list of syscalls for x86/x64 and arm architectures
The instruction used to make a system call vary for each instruction set architecture. Here is some example :
--> int x080
--> syscall
os sysenter
--> svc
etc.
Once the syscall instruction is called, the kernel will check the value stored into a specific register ( for x86/x64 i.e. EAX or RAX ) - This is the syscall number which defines what syscall gets run.
Parameters are stored into the others register dependent of each syscall needs.