Course Hive
Search

Welcome

Sign in or create your account

Continue with Google
or
Linux Device Model Explained | Buses, Devices, Drivers & Classes | LDD with Raspberry Pi #26
Play lesson

Linux Driver Development with Raspberry Pi - Linux Device Model Explained | Buses, Devices, Drivers & Classes | LDD with Raspberry Pi #26

4.0 (3)
31 learners

What you'll learn

This course includes

  • 8.3 hours of video
  • Certificate of completion
  • Access on mobile and TV

Summary

Keywords

Full Transcript

In this video, we dive deep into the Linux Device Model (LDM), the unified framework that controls how the Linux kernel manages hardware, drivers, and their connections. If you've been writing Linux drivers without really understanding what happens under the hood, this video is for you. 📌 What we cover: ✅ What is the Linux Device Model and why it exists ✅ kobject - the foundation of everything ✅ Buses - struct bus_type, match(), uevent() ✅ Devices - struct device and the embedding pattern ✅ Drivers - struct device_driver, probe() and remove() ✅ Classes - automatic /dev node creation via udev ✅ Hotplug and uevents - how the kernel notifies user space ✅ container_of() - getting your private data back ✅ Full working example - custom bus, device, and driver from scratch ✅ Live sysfs and udevadm monitor demonstration on Raspberry Pi 🔥 The real driver lifecycle: DTB → platform_device → match() → probe() → /dev appears remove() → cleanup → hardware safe state Let's Connect ====================== Buy me a Coffee : ☕https://buymeacoffee.com/madhawapolb Patreon : https://patreon.com/MadhawaPolkotuwa GitHub :- https://github.com/madhawapolkotuwa/linux_driver_development_with_raspberrypi Reference :- https://linux-kernel-labs.github.io/refs/heads/master/labs/device_model.html ⏱️ Timestamps: 00:08 - Introduction 00:50 - What is the Linux Device Model 02:32 - kobject - The Foundation 04:40 - Buses 08:42 - Devices 11:55 - Drivers 14:23 - Classes 17:43 - probe() and remove() - The Real Lifecycle 20:33 - Hotplug and Uevents 22:15 - Sysfs Map 22:37 - Live Example Walkthrough #linuxkernel #embeddedsystems #linuxdevicemodel #EmbeddedLinux #ldd #india

Course Hive

Continue this lesson in the app

Install CourseHive on Android or iOS to keep learning while you move.

Related Courses

FAQs

Course Hive
Download CourseHive
Keep learning anywhere