Device Driver Tutorial

Compiling with the GNU C Compiler

To get the GNU C Compiler, first install the Oracle Solaris 11 Express OS. The developer tools are available in a repository as packages. See the Oracle Solaris 11 Express Image Packaging System Guide and the Getting Started With Oracle Solaris 11 Express

Use the -D_KERNEL option to indicate that this code defines a kernel module. These examples show options that are required for correct functionality of the result.

For more information on these and other options, see the gcc(1) man page. See also the GCC web site at http://gcc.gnu.org/.