Source code of Windows XP (NT5)
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.

48 lines
896 B

  1. /*++
  2. Copyright (c) 2000 Microsoft Corporation
  3. Module Name:
  4. viirpdb.h
  5. Abstract:
  6. This header contains private information used to manage the database of
  7. IRP tracking data. This header should be included only by vfirpdb.c.
  8. Author:
  9. Adrian J. Oney (adriao) 20-Apr-1998
  10. Environment:
  11. Kernel mode
  12. Revision History:
  13. AdriaO 05/02/2000 - Seperated out from ntos\io\hashirp.h
  14. --*/
  15. #define VI_DATABASE_HASH_SIZE 256
  16. #define VI_DATABASE_HASH_PRIME 131
  17. #define VI_DATABASE_CALCULATE_HASH(Irp) \
  18. (((((UINT_PTR) Irp)/PAGE_SIZE)*VI_DATABASE_HASH_PRIME) % VI_DATABASE_HASH_SIZE)
  19. #define IOVHEADERFLAG_REMOVED_FROM_TABLE 0x80000000
  20. VOID
  21. FASTCALL
  22. ViIrpDatabaseEntryDestroy(
  23. IN OUT PIOV_DATABASE_HEADER IovHeader
  24. );
  25. PIOV_DATABASE_HEADER
  26. FASTCALL
  27. ViIrpDatabaseFindPointer(
  28. IN PIRP Irp,
  29. OUT PLIST_ENTRY *HashHead
  30. );