12.8  Install Your Kernel PlugIn Driver

12.8.1  On Windows

[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:\WINNT\system32\drivers – on Windows 2000, or C:\Windows\system32\drivers – on Windows 7 / Vista / Server 2008 / Server 2003 / XP).
  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:
    WinDriver\util> wdreg -name KP_NAME install
[Note]
Kernel PlugIn drivers are dynamically loadable, and thus do not require a reboot in order to load.
Kernel PlugIn drivers are dynamically loadable, and thus do not require a reboot in order to load.

12.8.2  On Linux

  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 the DriverWizard, run the following command, where <path> represents the path to your generated DriverWizard project directory (e.g. /home/user/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