Definition
System Call
A System Call is a programmatic request by a user process for a service performed by the kernel. It serves as the interface between user space and kernel space.
Execution Path
- User Process: Sets up arguments and executes a specific instruction (e.g.,
TRAPorSYSCALL). - Hardware: Triggers a mode switch to kernel mode and jumps to a predefined handler.
- Kernel: Verifies arguments, executes the requested service, and places the result in a register.
- Return: The kernel executes a return-from-trap instruction, switching back to user mode.