System Call
Subject: Computer and Technology noun /ˈsɪs.təm kɔːl/ 1 definition
- operating-systems
- kernel-architecture
- systems-programming
- low-level-computing
-
Definition (noun)
Entry #35 · UpdatedA System Call is the fundamental programmatic interface through which a user-space process requests a privileged service from the operating system kernel. Because user applications execute in an unprivileged processor mode that prevents direct access to physical hardware, kernel memory, and other processes, invoking a system call triggers a controlled transition into kernel mode via a specialized CPU instruction (such as
syscallon x86-64 orsvcon ARM64) or software trap. Once entered, the kernel validates the caller's permissions and arguments, performs the requested operation, and switches control back to user space with a return value or error status.Common Types
Process Control: Manages the lifecycle, execution, and synchronization of processes and threads, including creation, binary loading, waiting, and termination (such as
fork,execve, andexit).File and I/O Management: Handles opening, reading, writing, seeking, and closing files, directories, and device descriptors through uniform kernel abstractions (such as
openat,read,write, andioctl).Memory Management: Allocates, maps, resizes, and configures access permissions on a process's virtual address space (such as
mmap,munmap, andmprotect).Networking and Inter-Process Communication (IPC): Coordinates data exchange and signaling between processes or across networks using sockets, pipes, and shared memory (such as
socket,connect, andpipe).
Example
When a C program on Linux calls
fopen("/etc/hosts", "r"), the C standard library loads theopenatsystem call number and arguments into CPU registers and executes thesyscallinstruction. The processor switches to kernel mode so the operating system can verify read permissions, open the file in the kernel, and return the resulting file descriptor back to the user-space process.