Skip to content
BENIBIX Learn

System Call

Development🖥️ Platforms & OSOperating Systems

Also known as Syscall, System Calls

A request from a program to the kernel. Open this file, or send this data.

Think of it like

Think of it like a hatch at a bank counter. You pass your note through, and the clerk does the job.

Example

When Emma's script saves a file, it calls write. The kernel puts the bytes on the disk and reports how many it wrote.

Why it matters

Every file, network message and new program goes through system calls. They are the only door from an app to the hardware.

Definition

A system call is how a program asks the kernel to do something. A program cannot open a file or use the network by itself. It makes a system call, like open, read or write. The kernel checks if the program is allowed. Then it does the work and hands back the result. Most programs make these calls through a library, not by hand.
The arrows from the apps down to the kernel are system calls.

Common mistake

Thinking print or save talks straight to the disk. They end up as system calls that the kernel carries out.

Key takeaways

  1. 1
    The only door. Apps reach hardware only by asking.
  2. 2
    Checked first. The kernel decides if the call is allowed.
  3. 3
    Usually hidden. Libraries make the calls for you.

Learn it properly