System Calls and Kernel Interfaces
System calls are controlled entry points through which a program asks the operating-system kernel to perform privileged work. Kernel interfaces also include files, sockets, shared mappings, and other contracts that expose kernel-managed state to user space.
itOperating systems | OpenSkills.info
Intro
System Calls and Kernel Interfaces
A system call is an entry point from a user-space program into the operating-system kernel. The kernel owns protected resources such as process state, virtual memory mappings, filesystems, devices, and network protocol stacks. A program requests work on those resources through a defined interface instead of reading or changing kernel memory directly.
On Linux, the system-call interface is one part of the broader user-space application binary interface, or ABI. The ABI defines machine-level details such as system-call numbers, registers, data layouts, and return conventions. A source-level API sits above it. POSIX specifies many portable C interfaces, while Linux also supplies interfaces that are specific to Linux.
Most application code calls a C library function rather than issuing a raw system call. A wrapper such as open() arranges arguments for the target architecture, enters the kernel, translates a kernel error into -1 and errno, and returns to the caller. A wrapper may also select among kernel calls or add library behavior. The wrapper and the raw system call are therefore related interfaces, not guaranteed synonyms.
The request path
A typical request crosses several layers:
- Application code calls a language runtime or library API.
- The library wrapper places a system-call number and arguments where the architecture ABI expects them.
- A processor instruction transfers control from user mode to a kernel entry path.
- The kernel validates the number, arguments, pointers, credentials, and object state.
- The selected subsystem performs the operation or returns an error.
- The entry path restores user-space execution state.
- The wrapper presents the result in the calling language's convention.
Continue the course
This section is part of the paid course.
See pricing to subscribe, or log in if you already have access.
Where this skill leads
Relevant careers
See how this topic contributes to broader role-level skill maps.
