Skip to main content
Definition Website Computer and Technology

System Call

Subject: Computer and Technology noun /ˈsɪs.təm kɔːl/ 1 definition

  1. Definition (noun)

    Entry #35 · Updated

    A 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 syscall on x86-64 or svc on 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, and exit).

    • 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, and ioctl).

    • Memory Management: Allocates, maps, resizes, and configures access permissions on a process's virtual address space (such as mmap, munmap, and mprotect).

    • 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, and pipe).

    Example

    When a C program on Linux calls fopen("/etc/hosts", "r"), the C standard library loads the openat system call number and arguments into CPU registers and executes the syscall instruction. 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.