user@lldcoder:~$ cat welcome.txt
Low level code, explained
Practical write-ups on Linux, system programming, device drivers and Python. Real code, real kernels, no hand-waving.
Write your first Linux character driver from scratch
Build a loadable kernel module, register a character device, and talk to it from user space with open, read and write.
Read the article/* hello_chardev.c */
static int __init hello_init(void)
{
major = register_chrdev(0, "hello",
&fops);
pr_info("hello: major %d
", major);
return 0;
}
module_init(hello_init);
Latest posts
View all posts-
Python
Python Pandas for Beginners: Series, DataFrames, and Data Cleaning with Examples
A step-by-step beginner guide to Python Pandas covering Series, DataFrames, reading and writing CSV files, and cleaning empty cells, wrong formats, wrong values, and duplicates.
-
Python
Mastering Pandas in Python: From DataFrames to Fast Vectorized Pipelines
Learn how Pandas stores data under the hood, inspect and clean messy datasets, aggregate with groupby, merge relational tables, and write fast vectorized transformations in Python.
-
System programming
Process management: how fork() creates a child process
How one system call splits a process in two, what the child inherits, and how the parent collects its exit status.
-
Device drivers
Write your first Linux character driver from scratch
Build a loadable kernel module, register a character device, and talk to it from user space with open, read and write.
Topics
Linux
Shell, tooling, filesystems, networking and everyday administration.
0 postsSystem programming
Processes, signals, IPC, sockets and the POSIX API in C.
1 postDevice drivers
Kernel modules, character and block drivers, interrupts, DMA.
1 postPython
Scripting, automation and quick tools for embedded and Linux work.
2 postsAbout
I’m the person behind LLD Coder. I write about the layers of Linux most tutorials skip: system calls, kernel modules and the code that talks to hardware.
Every post comes with code you can build and run yourself.
Get in touchGet new posts by email
One email when a new article is published. No spam.
You can unsubscribe at any time.