12.8. Install Your Kernel PlugIn Driver

12.8.1. Windows Kernel PlugIn Driver Installation

[Note]
Driver installation on Windows requires administrator privileges.
  1. Copy the driver file (xxx.sys) to the target platform's drivers directory: %windir%\system32\drivers (e.g., C:\WINDOWS\system32\drivers).
  2. Register/load your driver, using the wdreg.exe or wdreg_gui.exe utility:

    [Note]
    In the following instructions, KP_NAME stands for your Kernel PlugIn driver's name, without the .sys extension.

    To install your driver, run this command:
    WinDriver\util> wdreg -name KP_NAME install

[Note]
Kernel PlugIn drivers are dynamically loadable — i.e., they can be loaded and unloaded without reboot. For additional information, refer to Section 13.2.3.

12.8.2. Linux Kernel PlugIn Driver Installation

  1. Change directory to your Kernel PlugIn driver directory.

    For example, when installing the sample KP_PCI driver, run
    $ cd WinDriver/samples/pci_diag/kp_pci

    When installing a driver created using the Kernel PlugIn files generated by DriverWizard, run the following command, where <path> signifies the path to your generated DriverWizard project directory (e.g., ~/WinDriver/wizard/my_projects/my_kp):
    $ cd <path>/kermode/

  2. Execute the following command to install your Kernel PlugIn driver:
    [Note]
    The following command must be executed with root privileges.
    # make install
[Note]
Kernel PlugIn drivers are dynamically loadable — i.e., they can be loaded and unloaded without reboot. For additional information, refer to Section 13.3.1.