Specifications

Driver Installation and Tuning
14-
7
figuration files from the installation media to the hard disk of the system, installs any DSPs
using idinstall, then the UNIX system kernel reconfigures and builds.
What this means to you, as the device driver programmer, is that writing the driver is only
part of the job. You also need to create the configuration files and write the package instal-
lation and removal scripts. The package needs to be tested, to make sure it can be installed
and removed, as well as to ensure that it operates correctly when installed.
Overview of DSP Components 14
A DSP for a device driver typically consists of the following components. Some are
required, others are optional; this distinction is noted in Table 14-1.
The driver module object file, Driver.o
The configuration files for Master(4), System(4), Autotune(4),
Ftab(4), Mtune(4), Node(4), Rc(4), Sassign(4), Sd(4),
Space.c(4), and Stubs.c(4)
Modstub.o for stub-loaded loadable modules.
The component files comprising the DSP are summarized in Table 14-1. In this table, the
term module-name refers to a file or directory that takes its name from the name of the
driver being installed. For the format of specific configuration files, you should refer to
the appropriate Section 4 manual page.
Table 14-1. Components of Driver Software Package (DSP)
DSP
Module
Purpose File Affected in /etc/conf
Driver.o Required driver object file to be configured into
kernel
pack.d/module-name/Driver.o
Master Required generic driver configuration data mdevice.d/module-name
System Required system-specific driver configuration
data
sdevice.d/module-name
Sadapters Required system-specific hardware configura-
tion data
sadapters.d/kernel
Autotune Optional autotuning parameter definitions autotune.d/module-name
Ftab Optional function table specifications ftab.d/module-name
Init Optional inittab entry data init.d/module-name
Mtune Optional tunable parameter definitions mtune.d/module-name
Node Optional /dev device node data node.d/module-name
Rc Optional system startup script rc.d/module-name
Sassign Optional system logical device name assign-
ments
sassign.d/module-name