What is System call?

The mechanism by which applications ask the OS for services such as file I/O or memory allocation. A dedicated instruction raises an exception that switches to privileged mode and invokes the kernel.

Field: OS & Hardware

System call in the explanations

Questions that mention System call (4)

  1. When writing small data one byte at a time, why is accumulating it in a user-space buffer and writing in bulk faster than calling a system call each time?
  2. What happens when the ecall instruction at the end of the RISC-V code above executes?
  3. In a mechanism that maps a file into memory (such as mmap), what happens when the file's contents are read?
  4. What is the idea behind KPTI (kernel page-table isolation), introduced as a software countermeasure to Meltdown?

Related terms

Privileged mode TLB (translation lookaside buffer) Entry point Interrupt Page fault Demand paging Kernel page-table isolation (KPTI) Meltdown ASID Context switch

Back to the glossary