O'Reilly logo

Bootstrap Yourself with Linux-USB Stack: Design, Develop, Debug, and Validate Embedded USB by Rajaram Regupathy

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 5. USB Device Notification

In This Chapter

  • Bootstrap: Notifier Chain

  • Linux USB Notification

Request-reply (synchronous) and polling methods are common means of communication between software modules. Such methods reduce the performance of the system; they waste processor cycles. Asynchronous methods and publish-subscribe methods act as effective alternatives to address such performance-related issues. Linux uses publish-subscribe methods to communicate between modules. In the publish-subscribe model, the client (subscriber), which requires notification of a certain event, registers a callback function with the server (publisher). The server informs the client whenever an event of interest occurs through the registered callback. Such a model ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required