Course Hive
Search

Welcome

Sign in or create your account

Continue with Google
or
Workqueues & Bottom Halves | LDD with Raspberry Pi #25
Play lesson

Linux Driver Development with Raspberry Pi - Workqueues & Bottom Halves | LDD with Raspberry Pi #25

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 explore Workqueues and Bottom Halves in Linux Kernel Driver Development. Your ISR must return fast: But what happens to the slow work? Reading a sensor, writing to storage, waiting for a bus transaction, none of those can run inside an interrupt handler. That is exactly the problem workqueues solve. We cover everything from the theory behind deferred execution to simple driver examples running on Raspberry Pi 4. What you will learn: * What deferred execution is and why it matters in real drivers * How the kernel's kworker threads work behind the scenes * System workqueue vs dedicated workqueue, when to use which * How to use delayed work for periodic and timed driver tasks * Why tasklets are deprecated and how workqueues replace them * Safe cleanup patterns, cancel_work_sync, flush_workqueue, destroy_workqueue Examples covered: * System workqueue with sysfs trigger * Dedicated workqueue with dynamic work items * Self-rescheduling delayed work with the module parameter * GPIO ISR scheduling a workqueue to toggle an LED with a delay * Tasklet vs workqueue side-by-side comparison on the same hardware GitHub :- https://github.com/madhawapolkotuwa/linux_driver_development_with_raspberrypi Let's Connect ====================== Buy me a Coffee : ☕https://buymeacoffee.com/madhawapolb Patreon : https://patreon.com/MadhawaPolkotuwa #kernel #linux #linuxdevicedriver

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