Kernel & System Calls
Explain what the kernel does and how programs cross the user/kernel boundary, and observe it with strace, /proc and /sys.
4 objectives 6 steps about 110 min
Check what you know
The lessons are coming later. The knowledge check is ready now.
This skill page is a public outline. Its lessons and knowledge check appear here as subject-matter experts approve them.
Learning objectives
- Describe the responsibilities of an OS kernel, the difference between user mode and kernel mode, and how monolithic and microkernel designs differ.
- Explain how a system call traps into the kernel and returns, including the role of the C library wrapper and the vDSO.
- Trace a program's system calls with strace and map each call to the resource it manages.
- Inspect kernel state through /proc, /sys, uname, lsmod and dmesg, including kernel version, loaded modules and boot parameters.
Lesson plan
6 steps, about 110 min · 0 of 5 lessons available so far
- What an operating system is for: abstraction, isolation and sharing Concept · 15 min · coming later
- Crossing the boundary: traps, system calls and limited direct execution Concept · 20 min · coming later
- Kernel designs compared: monolithic Linux, microkernels and modules Concept · 15 min · coming later
- Lab: trace cat, ls and a Python one-liner with strace -f and -c Lab · 25 min · coming later
- Lab: read the kernel's view through /proc, /sys, lsmod and dmesg Lab · 20 min · coming later
- Check: match the calls in a trace to program behaviour Knowledge check · 8 questions
Practise it
Run strace -c and strace -f on a program you use (for example git status or curl), list the ten most frequent system calls, and write a short note explaining what resource each one manages and why the program needs it.
Build it from scratch
Practice builds that exercise this skill by re-creating a real technology.
- Build your own ShellIntermediate · 8–16 h
- Build your own Memory AllocatorIntermediate · 6–12 h
- Build your own Container RuntimeAdvanced · 12–24 h
- Build your own DebuggerAdvanced · 15–30 h
- Build your own Operating SystemAdvanced · 40–80 h
References
Hard prerequisites
None.
Unlocks
On these roadmaps
Progress and evidence for this skill are shared across all of them.