Operating systems notes

System Calls & the User-Kernel Boundary

The one guarded door your code walks through every time it wants the kernel to do real work. Every section is a drawn page beside a clear written explanation, about 18 minutes in all.

  • Chapter 6 of 37
  • About 18 minutes
  • 8 sections

Sign in with Google or GitHub and you land straight on this page. DSA comes with the all labs plan and every ChaiCode batch.

The first drawn page of System Calls & the User-Kernel Boundary: The doorway between your code and the kernel
The chapter's first page: The doorway between your code and the kernel

In this chapter

  • The doorway between your code and the kernel
  • What actually happens on a syscall (the trap)
  • The system call, the wrapper, and libc
  • Categories of system calls
  • A concrete example: reading a file the hard way
  • Why syscalls are (relatively) expensive
  • Watching syscalls with strace
  • Syscalls across OSes & the big picture

Next chapters

Read the whole chapter

Sign in and the chapter opens with every drawn page, and all 38 operating systems chapters beside it.

DSA comes with the all labs plan and every ChaiCode batch.