Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The device driver Close() function should uninitialize the hardware and release or free any resources acquired in the Open() function.

Arguments

p_dev

Pointer to device to close.

Returned Value

None.

Notes/Warnings

  • Tracking whether a device is open is not necessary, because this should ONLY be called when a device is open.
  • This will be called EVERY time the device is closed.
  • The device driver Close() function is called while the caller holds the device lock.