How Do Linux Kernel Drivers Work? - Learning Resource
638K views · Dec 12, 2019 · Education
Comments · 613
@first-thoughtgiver-of-will2456 · 5 years ago
I remember my dad, an old school linux military man told me that writing drivers was the "initial task" of many linux programmers. Thank you for sharing your experience.
303
@mrgummage · 6 years ago
Thumbs up for LiveOverflow ASMR where he reads Linux Device Drivers (Third Edition).
246
@davidalm2148 · 6 years ago
Hey @LiveOverflow<br>Regarding <a href="https://www.youtube.com/watch?v=juGNPLdjLH4&t=870">14:30</a>; Python is internally calling the C the standard library's stdio buffered functions (fread/fwrite) which does the buffering which internally makes the syscall specifying the file descriptor, which triggers the char module's read/write function.
242
@trickster1833 · 6 years ago
At the beginning, is that Ben Eater's 8-bit breadboard computer design?
287
@michaelandersson6088 · 6 years ago
Fun fact: Linux kernel v2.6 has ~8 million lines of code, v5 has ~26 million lines of code :)
1.4K
@motohisamoriya2136 · 5 years ago
I wrote the first Linux kernel device driver for the Linux version 2.4.5, SH -3 (Renesas 7709 and 7727) device drivers.<br>I remember compiling and building many times.<br>In Kernel space, there was no convenient crt0 that called the main function, so it was pretty hard.<br>Before that, I had to fix the device drivers for FreeBSD 2.2, but they were completely different, so I had a hard time.<br> The device driver is basically OK if read, write, ioctrl are implemented. As for interrupts, the handler is not too hard to figure out how the interrupt is occurring, but if you didn't follow kmalloc, kfree in that order, it immediately went out of control.
10
@_framedlife · 6 years ago
I now want a 2hr version of this 😂 this was amazing
20
@gabiold · 6 years ago
"tail -f -n 0 /var/log/syslog" if you don't want to see any previous logs.
53
@tonyfremont · 5 years ago (edited)
I have the first edition of this book, and the "Understanding the Linux Kernel". Those books, starting with Linux in 1994 and reading literally hundreds of Howto documents, and doing a Linux from scratch build, taught me a ton. Too bad that pretty much all of what I learned back then has since been superceded by evolution. Getting X up and running in the 90s was also a major learning experience.
6
@samarthtandale9121 · 1 year ago
I've watched this video so many times before and did not really understand a single thing 😂 ... Only for me to now enroll into Virtualization course in our university and get an assignment about implementing linux drivers. Thus, after doing 3-4 days of dirty work, I came again today and understood (and related) every single thing in your video!
4
@robbingoossens · 6 years ago
Mate, are you reading my search history or something? I've been searching for a good explanation of Linux kernel drivers for a couple of days now xD
82
@filipsworks · 6 years ago
Knew about linux drivers and fs devs a long before this video but to see an actual example... Exceptional! Thank You!
2
Up next

Linux device drivers explained - Animated
Bit Byte Talks · 45K views

How Does Linux Work? | Greg Kroah-Hartman
Wookash Podcast · 74K views

How Linux Boots
Joe Collins (EzeeLinux) · 379K views

How CPUs Interact with So Many Different Devices
Core Dumped · 832K views

Reading Kernel Source Code - Analysis of an Exploit
LiveOverflow · 131K views

Kernel Root Exploit via a ptrace() and execve() Race Condition
LiveOverflow · 104K views

How Linux Kernel Runs Executables
Nir Lichtman · 105K views

Linux Kernel Internals: Memory Management
Maple Circuit · 41K views

Fundamentals of Embedded Linux - Chris Simmons - NDC TechTown 2022
NDC Conferences · 85K views

Kernel Mode vs User Mode: Why it Matters, What You Need to Know
Dave's Garage · 175K views

No AI Slop Manifesto
The PrimeTime · 146K views

How to Avoid Writing Device Drivers for Embedded Linux - Chris Simmonds, 2net
The Linux Foundation · 40K views

Trump's NVIDIA Spy Scandal Grows Amid More Huang Affairs & Chip Smuggling Allegations: A Closer Look
Late Night with Seth Meyers · 144K views

AI is now designing its own chips, and it's the end of electronics.
Everlast AI · 91K views

Gehackt werden ist jetzt Mainstream
The Morpheus · 95K views

Has the Riemann Hypothesis Just Been Solved with AI?
Mr. Mathematik · 195K views

How Linux is built with Greg Kroah-Hartman
The Pragmatic Engineer · 55K views

I Checked What Claude & ChatGPT. Are Really Sending Over the Network
Kai · 400K views

How a Single Bit Inside Your Processor Shields Your Operating System's Integrity
Core Dumped · 657K views

How C Really Works
Cave of Programming · 286K views