文档介绍:The HyperNews Linux KHG Discussion PagesDevice DriversIf you choose to write a device driver, you must take everything written here as a guide, and no more. Icannot guarantee that this chapter will be free of errors, and I cannot guarantee that you will not damage puter, even if you follow these instructions exactly. It is highly unlikely that you will damage it, but Icannot guarantee against it. There is only one ``infallible'' direction I can give you: Back up! Back up beforeyou test your new device driver, or you may regret it is a Device Driver?What is this ``device driver'' stuff anyway? Here's a very short introduction to the -space device driversIt's not always necessary to write a ``real'' device driver. Sometimes you just need to know how towrite code that runs as a normal user process and still accesses Driver BasicsAssuming that you need to write a ``real'' device driver, there are some things that you need to knowregardless of what type of driver you are writing. In fact, you may need to learn what type of driveryou ought to write...Character Device DriversThis section includes details specific to character device drivers, and assumes that you knoweverything in the previous driversThis section hasn't been written yet. TTY drivers are character devices that interface with the kernel'sgeneric TTY support, and they require more than just a standard character device interface. I'dappreciate it if someone would write up how to attach a character device driver to the generic TTYlayer and submit it to me for inclusion in this Device DriversThis section includes details specific to block device drivers (suprise!)Writing a SCSI Device DriverThis is a technical paper written by Rik Faith at the University of North work Device DriversAlan Cox gives an introduction to work layer, including device FunctionsMany functions are useful to all sorts of drivers. Here is a summary of quite a f