Next | Prev | Top | Contents | Index

Chapter 7: Writing Kernel-level General
Memory-mapping Device Drivers


This chapter explains how to write kernel-level general memory-mapping device drivers.

It contains the following sections:

This chapter describes how a kernel-level device driver can map VME device hardware or main (kernel) memory to user space. It introduces two system calls, mmap(2) and munmap(2), as well as describing two IRIX driver functions, drvmap() and drvunmap()[16]. Because your driver allows the user to map the device user space, your driver may not need to include drvread() and drvwrite() functions.


[16] SVR4 also uses a drvmmap() function and an optional drvunmap() function.
Including a Memory-mapping Device Driver in the Kernel
Mapping and Unmapping Functions
Sharing Kernel Memory with a User Program
Example Program
Returning Opaque Handle Data

Next | Prev | Top | Contents | Index