Ads skipped

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&amp;t=870">14:30</a>; Python is internally calling the C the standard library&apos;s stdio buffered functions (fread/fwrite) which does the buffering which internally makes the syscall specifying the file descriptor, which triggers the char module&apos;s read/write function.

    242

  • @trickster1833 · 6 years ago

    At the beginning, is that Ben Eater&apos;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&apos;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

    &quot;tail -f -n 0 /var/log/syslog&quot; if you don&apos;t want to see any previous logs.

    53

  • @tonyfremont · 5 years ago (edited)

    I have the first edition of this book, and the &quot;Understanding the Linux Kernel&quot;. &nbsp;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. &nbsp;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&apos;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&apos;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

LIVE

Linux device drivers explained - Animated

Bit Byte Talks · 45K views

LIVE

How Does Linux Work? | Greg Kroah-Hartman

Wookash Podcast · 74K views

LIVE

How Linux Boots

Joe Collins (EzeeLinux) · 379K views

LIVE

How CPUs Interact with So Many Different Devices

Core Dumped · 832K views

LIVE

Reading Kernel Source Code - Analysis of an Exploit

LiveOverflow · 131K views

LIVE

Kernel Root Exploit via a ptrace() and execve() Race Condition

LiveOverflow · 104K views

LIVE

How Linux Kernel Runs Executables

Nir Lichtman · 105K views

LIVE

Linux Kernel Internals: Memory Management

Maple Circuit · 41K views

LIVE

Fundamentals of Embedded Linux - Chris Simmons - NDC TechTown 2022

NDC Conferences · 85K views

LIVE

Kernel Mode vs User Mode: Why it Matters, What You Need to Know

Dave's Garage · 175K views

LIVE

No AI Slop Manifesto

The PrimeTime · 146K views

LIVE

How to Avoid Writing Device Drivers for Embedded Linux - Chris Simmonds, 2net

The Linux Foundation · 40K views

LIVE

Trump's NVIDIA Spy Scandal Grows Amid More Huang Affairs & Chip Smuggling Allegations: A Closer Look

Late Night with Seth Meyers · 144K views

LIVE

AI is now designing its own chips, and it's the end of electronics.

Everlast AI · 91K views

LIVE

Gehackt werden ist jetzt Mainstream

The Morpheus · 95K views

LIVE

Has the Riemann Hypothesis Just Been Solved with AI?

Mr. Mathematik · 195K views

LIVE

How Linux is built with Greg Kroah-Hartman

The Pragmatic Engineer · 55K views

LIVE

I Checked What Claude & ChatGPT. Are Really Sending Over the Network

Kai · 400K views

LIVE

How a Single Bit Inside Your Processor Shields Your Operating System's Integrity

Core Dumped · 657K views

LIVE

How C Really Works

Cave of Programming · 286K views

YouTube, with the door locked.

Aegis plays a clean stream instead of YouTube's player, so pre-roll ads, trackers, and fingerprinting never ride along. Drop Shields any time if you want the official player back.