For: Embedded Linux, systems, and infrastructure C engineers
Build production multi-process and multi-threaded Linux C11 software across symlink-safe directory trees, monotonic clocks, /proc telemetry, race-free POSIX signals, fork/execve supervisors, and synchronized pthreads.
Inspect Linux's seven VFS file types and struct stat inode fields via stat/fstat/lstat, manage UID/GID ownership, mode bits, special bits, and nanosecond utimensat/futimens timestamps without TOCTOU races, and build symlink-safe directory scanners with crash-atomic rename() updates.
Configure deterministic POSIX signal dispositions via sigaction() while respecting uncatchable SIGKILL/SIGSTOP, eliminate lost-wakeup races and handler deadlocks with sigprocmask(), sigsuspend(), volatile sig_atomic_t, and errno preservation, and transmit ordered payloads over SIGRTMIN+n queues with sigqueue() and SA_SIGINFO.
Spawn, join, and detach POSIX threads safely across disjoint slots, guard critical updates under deferred cancellation with LIFO cleanup handlers and right-sized stacks, and isolate per-thread state and signals using reentrant _r APIs, TSD destructors, _Thread_local, and synchronous sigwait().
Eliminate load-modify-store data races and AB-BA deadlocks with ordered pthread_mutex_t hierarchies, coordinate producer-consumer pipelines and read-heavy tables with monotonic condition variables, spinlocks, and read-write locks, and synthesize a crash-atomic multi-threaded directory indexer.
Inspect Linux's seven VFS file types and struct stat inode fields via stat/fstat/lstat, manage UID/GID ownership, mode bits, special bits, and nanosecond utimensat/futimens timestamps without TOCTOU races, and build symlink-safe directory scanners with crash-atomic rename() updates.
Misclassifying sockets as regular files with unmasked st_mode & S_IFREG, chasing symbolic links with stat() into infinite directory loops, or wrapping 32-bit time_t negative in 2038 breaks Linux storage tools. Building on GL-C01, you will decode all seven VFS file types, contrast stat(), fstat(), and lstat(), and query mask-scoped statx().
Gatekeeping open() with access() creates exploitable TOCTOU privilege escalations, while forgetting VFS short-circuit owner rules or directory execute bits causes mysterious EACCES errors. You will evaluate real vs effective credentials, control umask, fchmod, and fchown safely, and update nanosecond timestamps via futimens() and utimensat().
Format and slice C strings safely with getline(), snprintf() truncation checks, memmove(), and struct node **indir lists. Parse CLI flags via POSIX getopt() paired with errno- and endptr-validated strtol(), strtoul(), and strtod(). Execute and free POSIX Extended Regular Expressions (<regex.h>) using regcomp(REG_EXTENDED), regmatch_t offsets, and regfree().
Query kernel identity, RAM scale, and runtime limits via uname(), sysinfo(), and sysconf(_SC_PAGESIZE, _SC_NPROCESSORS_ONLN). Convert UTC Epoch and timezone calendars reentrantly via clock_gettime(CLOCK_REALTIME), gmtime_r(), localtime_r(), and strftime(). Benchmark intervals on CLOCK_MONOTONIC (warm-up, DCE barrier, median/p99), resume EINTRnanosleep(), and call getrandom().
Configure deterministic POSIX signal dispositions via sigaction() while respecting uncatchable SIGKILL/SIGSTOP, eliminate lost-wakeup races and handler deadlocks with sigprocmask(), sigsuspend(), volatile sig_atomic_t, and errno preservation, and transmit ordered payloads over SIGRTMIN+n queues with sigqueue() and SA_SIGINFO.
Classify synchronous CPU faults (ucontext_t, rt_sigreturn) vs async signals, default dispositions, and 1..31 vs SIGRTMIN ranges. Dispatch signals and probe process liveness and permissions using getpid(), kill(pid, sig), raise(sig), and kill(pid, 0). Install race-free dispositions via struct sigaction (sa_mask, SA_RESTART, SA_ONSTACK) and verify EINVAL on SIGKILL/SIGSTOP.
Construct signal sets (sigemptyset..sigismember) and guard critical sections via sigprocmask(SIG_BLOCK / SIG_SETMASK). Eliminate unblock-then-sleep races using atomic sigsuspend(&mask) and pollable signalfd(SFD_NONBLOCK | SFD_CLOEXEC) descriptors. Author async-signal-safe handlers using volatile sig_atomic_t and saved errno without non-reentrant printf/malloc deadlocks.
Snapshot blocked pending signals via sigpending() and address POSIX realtime signals dynamically as SIGRTMIN + n (<= SIGRTMAX). Transmit queued union sigval events via sigqueue() and inspect si_pid, si_uid, and si_value inside SA_SIGINFO handlers. Verify SIGRTMIN priority and FIFO ordering under sigsuspend(), and contrast unconditional abort() against normal exit.
Diagnose Linux task states (R, S, D, T, Z), process groups (PGID), and controlling-terminal sessions (SID / SIGHUP). Execute canonical setsid() daemon detachment and enforce crash-safe singleton execution via advisory fcntl(F_SETLK) record locks. Classify the Linux IPC taxonomy across pipes/FIFOs/signals, System V and POSIX message queues/semaphores/shm, and BSD sockets.
Spawn, join, and detach POSIX threads safely across disjoint slots, guard critical updates under deferred cancellation with LIFO cleanup handlers and right-sized stacks, and isolate per-thread state and signals using reentrant _r APIs, TSD destructors, _Thread_local, and synchronous sigwait().
Distinguish NPTL 1:1 clone() sharing flags, process TGID (getpid()) vs kernel TID (gettid()), and opaque pthread_self(). Spawn worker threads with -pthread and pthread_create() using dedicated per-worker struct slots and direct return-code checks. Harvest worker results via pthread_join() or enable automatic reclamation via pthread_detach() without stack-pointer hazards.
Control cooperative termination via pthread_cancel(), PTHREAD_CANCEL_DISABLE guards, cancellation points, and pthread_testcancel(). Unwind per-thread resources deterministically in LIFO order using lexically paired pthread_cleanup_push() and pthread_cleanup_pop(). Configure pthread_attr_t stack/guard sizes (PROT_NONE guard pages) while avoiding silent guard disablement in pthread_attr_setstack().
Separate Reentrant (_r), MT-Safe, and Async-Signal-Safe routines to prevent static-buffer corruption and handler self-deadlocks. Isolate per-thread state using C11 _Thread_local (.tdata/.tbss CPU thread register) paired with pthread_key_create() destructors. Implement multi-threaded signal handling by blocking signals via pthread_sigmask() before pthread_create() and dedicating sigwait().
Eliminate load-modify-store data races and AB-BA deadlocks with ordered pthread_mutex_t hierarchies, coordinate producer-consumer pipelines and read-heavy tables with monotonic condition variables, spinlocks, and read-write locks, and synthesize a crash-atomic multi-threaded directory indexer.
Leitner spaced-repetition terminal cards and TSV deck for syscalls, flags, and pitfalls.
# Kernel Systems Academy engineering studio
Every Kernel Systems Academy course follows our 35% principles / 20% guided investigation / 45% engineering studio pedagogy. Listings are compiled against Linux 6.12 · C11 · glibc 2.39 under strict compiler flags (-Wall -Wextra -Werror), and each module culminates in an evidence-checked lab graded locally by ./check.sh.
Unlock GL-C02 + All 16 KSA Terminal Courses (Linux 6.12 · ISO C11)
US$39/month · US$349/year (save 25% · 3 months free) · Team US$290/seat/year (3+ seats, Card or Net-30 PO invoice). Opening preview lessons & Lab 1 are free.
# Frequently asked questions
Can I study this course offline from disk?
Yes. All fonts, stylesheets, diagrams, search indexes, and progress trackers use relative paths and local browser storage, so the bundle works identically over HTTP and file://.
How are the hands-on labs graded?
Each lab directory includes starter source files and an executable ./check.sh runner emitting TAP version 13 diagnostics (ok / not ok) and exiting 0 when every check passes.
What is included in the free preview?
Preview lessons and the opening module lab are unlocked in full so you can inspect our C11 listings, strace transcripts, and ./check.sh workflow before subscribing.