Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

57 lines
1.1 KiB

  1. /*++
  2. Copyright (c) 1990 Microsoft Corporation
  3. Module Name:
  4. remlock.c
  5. Abstract:
  6. This is the NT SCSI port driver.
  7. Authors:
  8. Peter Wieland
  9. Kenneth Ray
  10. Environment:
  11. kernel mode only
  12. Notes:
  13. This module is a driver dll for scsi miniports.
  14. Revision History:
  15. --*/
  16. #define RTL_REMOVE_LOCK_SIG 'COLR'
  17. #if DBG
  18. typedef struct _RTL_REMOVE_LOCK_TRACKING_BLOCK {
  19. struct _RTL_REMOVE_LOCK_TRACKING_BLOCK * Link;
  20. PVOID Tag;
  21. LARGE_INTEGER TimeLocked;
  22. PCSTR File;
  23. ULONG Line;
  24. } RTL_REMOVE_LOCK_TRACKING_BLOCK, *PRTL_REMOVE_LOCK_TRACKING_BLOCK;
  25. #endif
  26. typedef struct _RTL_REMOVE_LOCK {
  27. LONG Signature;
  28. BOOLEAN Removed;
  29. BOOLEAN Reserved [3];
  30. LONG IoCount;
  31. KEVENT RemoveEvent;
  32. #if DBG
  33. LONG HighWatermark;
  34. LONG MaxLockedMinutes;
  35. LONG AllocateTag;
  36. LIST_ENTRY LockList;
  37. KSPIN_LOCK Spin;
  38. RTL_REMOVE_LOCK_TRACKING_BLOCK Blocks;
  39. #endif
  40. } RTL_REMOVE_LOCK, *PRTL_REMOVE_LOCK;