Полезная информация

next up previous contents
Next: Allocating memory Up: Device Driver Basics Previous: Device Driver Basics

Namespace

One of the first things you will need to do, before writing any code, is to name your device. This name should be a short (probably two or three character) string. For instance, the parallel device is the ``lp'' device, the floppies are the ``fd'' devices, and SCSI disks are the ``sd'' devices. As you write your driver, you will give your functions names prefixed with your chosen string to avoid any namespace confusion. We will call your prefix foo, and give your functions names like foo_read(), foo_write(), etc.



Converted on:
Mon Apr 1 10:20:16 EST 1996