Kolam Ayer MakersLinux Foundations

Syscall

Core Idea

A syscall is a controlled request from a user-space program to the kernel.

Why Syscalls Exist

Programs should not directly control disks, memory, devices, users, or network hardware. They ask the kernel. The kernel checks permissions, performs the operation, and returns a result.

Course Examples

How To Observe Syscalls

strace is allowed in this course for observing your own small commands. Use it as a microscope, not as a stunt.

strace -e openat,read,write cat /etc/hostname

On a shared server, trace commands you start yourself. Do not try to attach to other learners’ processes.

On machines without strace, skip the command. The syscall concept still matters.

Common Confusions

Proof Check

Run cat /etc/hostname, then explain which kernel service was needed: file open, file read, or network connection.

Docs Pointers