How Does Linux Driver Work?
Contents

Linux drivers are built with the kernel, compiled in or as a module. Alternatively, drivers can be built against the kernel headers in a source tree. You can see a list of currently installed kernel modules by typing lsmod and, if installed, take a look at most devices connected through the bus by using lspci .

How do I create a Linux driver?

How to build and deploy a Linux driver?

  1. one . c file in drivers/hid/
  2. add one line in drivers/hid/Makefile.
  3. add a few lines to drivers/hid/usbhid/Kconfig.
  4. add a few lines to drivers/hid/hid-ids. h.
  5. add a few lines to drivers/hid/usbhid/hid-quirks. c ‘s hid_blacklist struct before { 0, 0 }

Does Linux use drivers?

Linux does use drivers, and the developers need to know the specifics to make the driver. Some device types are common enough that a single driver can be used against that hardware type (de-facto standard, such as the SB16 and its clones, or the NE2000 clones).

David Miller

David Miller

Executive Financial & Market Analyst

David Miller brings 15 years of experience in global economics, personal finance strategy, and market dynamics. He specializes in turning complex economic trends into actionable insights for everyday readers.

Share this article
Twitter Facebook Pinterest