Thread: device driver does it work

  1. #1
    Registered User the bassinvader's Avatar
    Join Date
    Jul 2006

    device driver does it work

    hey all!

    i'm afraid this yet another question from a
    noob, but i'm learning to program in C which
    i read is used a lot in games and small device
    drivers. From what i've learnt so far i cant grasp
    how this would be undertaken so are there any sites
    that can give me a rough overview of how its done?
    (just to satisfy my curiosity)

  2. #2
    ... kermit's Avatar
    Join Date
    Jan 2003
    Well, for device drivers under Linux, you could get started with something like this book, available both in print, and online (for free).

  3. #3
    Just Lurking Dave_Sinkula's Avatar
    Join Date
    Oct 2002
    7. It is easier to write an incorrect program than understand a correct one.
    40. There are two ways to write error-free programs; only the third one works.*

  4. #4
    Registered User
    Join Date
    Aug 2005
    Device drivers are often done in assembly because it allows lowest access to hardware.

  5. #5
    Registered User Jaqui's Avatar
    Join Date
    Feb 2005
    For the purpose of Gaming, what you are talking about is taking control of the device from the system and giving it to the game. It's not really writing device drivers it's using the api from the device driver to take control, which is designed to be used by c programs.

    if you really want to learn how to write device drivers, then Kermit's link is a good start. the methoology is that same for all operating systems, the specifics are different because of the differences in operating systems.
    Quote Originally Posted by Jeff Henager
    If the average user can put a CD in and boot the system and follow the prompts, he can install and use Linux. If he can't do that simple task, he doesn't need to be around technology.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 21
    Last Post: 06-24-2009, 09:49 AM
  2. kernel memory char device
    By MK27 in forum Linux Programming
    Replies: 2
    Last Post: 05-02-2009, 06:42 AM
  3. Diving into hardware device driver in Windows
    By AsAdi in forum Windows Programming
    Replies: 1
    Last Post: 02-01-2003, 03:30 AM
  4. Device problem
    By John22 in forum C Programming
    Replies: 0
    Last Post: 12-19-2002, 12:02 PM
  5. writing device driver
    By ronin in forum A Brief History of
    Replies: 7
    Last Post: 07-08-2002, 10:48 AM