Find the answer to your Linux question:
Results 1 to 5 of 5
Hi Everyone I'm learning about device drivers. Where can I find drivers source code to look in? Isn't it part of the kernel headers? I'm looking for simple device drivers ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Sep 2010
    Posts
    9

    Device Drivers source code


    Hi Everyone

    I'm learning about device drivers.
    Where can I find drivers source code to look in?
    Isn't it part of the kernel headers?

    I'm looking for simple device drivers code to begin with. Is there something like that?

    Thanks,
    Tal

  2. #2
    ved
    ved is offline
    Linux User ved's Avatar
    Join Date
    Jan 2008
    Location
    New Delhi
    Posts
    309
    welcome in forum first you search in goggle ond then post to forum i.e second option in goggle is
    HTML Code:
    http://www.adaptec.com/en-US/downloads/linux_source/linux_source_code?productId=ASC-29160LP&dn=Adaptec+SCSI+Card+29160LP
    HTML Code:
    http://www.linuxforums.org/forum/newbie/57918-all-new-users-read-first.html
    asking good question
    HTML Code:
    http://www.linuxforums.org/forum/newbie/42937-google-your-best-friend.html

  3. #3
    Linux Engineer Segfault's Avatar
    Join Date
    Jun 2008
    Location
    Acadiana
    Posts
    877
    Lots of device drivers are part of Linux kernel, get kernel sources and you'll have plenty of drivers source code to look at.

  4. #4
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
    Posts
    11,530
    Quote Originally Posted by tallu View Post
    Hi Everyone

    I'm learning about device drivers.
    Where can I find drivers source code to look in?
    Isn't it part of the kernel headers?

    I'm looking for simple device drivers code to begin with. Is there something like that?

    Thanks,
    Tal
    As Segfault said, you need to download the full kernel sources. The headers are only useful in order to build your own kernel modules, but they don't contain any of the kernel and driver sources themselves. There are 3 main types of device drivers in Linux: character, block, and network. Each type is quite different from the others. You can find and download a PDF copy of "Linux Device Drivers, 3rd Edition" published by O'Reilly. All the chapters in PDF format are available here: Open Book - Linux Device Drivers, 3rd Edition
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  5. #5
    Just Joined!
    Join Date
    Sep 2010
    Posts
    9

    Tnx

    Thanks for the information.
    Tal

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •