Understanding Linux – The Kernel Perspective
banner
unix-byte.bsky.social
Understanding Linux – The Kernel Perspective
@unix-byte.bsky.social
Book "Understanding Linux: The Kernel Perspective" http://leanpub.com/linuxkernel/
Amazon: https://amazon.com/dp/B0FCBKCGGC
#linux #unix #freebsd #operatingsystems #kernelmodules
When a process invokes a system call referencing a pathname (e.g., "foo/bar/baz"), the kernel calls walk_component() on each component of the path: "foo" → "bar" → "baz". If a component is either "." or "..", walk_component() dispatches handling to handle_dots()
July 30, 2025 at 11:53 AM
Where is it defined that "." denotes the current working directory? Does the C language understand this convention? The answer is no—for example, C's chdir() function simply passes the string to the chdir system call. It is the kernel that interprets "." as the current working directory
July 30, 2025 at 7:53 AM
Where’s the kernel? In this great zine by @b0rk.jvns.ca
the kernel isn’t shown—but the TTY driver is part of it, managing I/O between the terminal and user-space programs—like the shell—and terminal devices. The zine focuses on what the user can see 👀
bsky.app/profile/b0rk...
It really left me feeling like the terminal is full of hidden secrets -- because "the terminal" is made up of so many different pieces, there's no single terminal manual you can read!

Here's the table of contents, which as a bonus shows the different components of the terminal!
July 28, 2025 at 5:49 AM