Writing Device Drivers

Hot Removal Followed by Insertion

This procedure is used to replace a card with either an identical or a different card.

  1. Indicate, using an administrative application, that a card is to be removed or replaced in a given slot.

  2. Through the administrative application, use kernel functions to place the appropriate driver offline.

    If the driver instance is busy or open, this operation may fail and you will first have to terminate any processes that are accessing the device.

  3. Use the administrative application to disable the appropriate slot, and turn on an optional slot-state indicator to indicate the physical slot and verify that it is now safe to remove the card.

  4. Remove the card.

  5. Insert the replacement card.

  6. Indicate to the administrative application that a card has been inserted.

  7. Through the administrative application, use kernel functions to turn on the slot, and, optionally, turn off the slot-state indicator.

  8. Through the kernel, configure the system, and load and attach the device driver for the newly installed hardware.