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.

77 lines
1.3 KiB

  1. /*++
  2. Copyright (c) 1989 Microsoft Corporation
  3. Module Name:
  4. dpc.c
  5. Abstract:
  6. This modules contains the set of functions in the mailslot file
  7. system that are callable at DPC level.
  8. Author:
  9. Manny Weiser (mannyw) 28-Jan-1991
  10. Revision History:
  11. --*/
  12. #include "mailslot.h"
  13. //
  14. // The debug trace level
  15. //
  16. #define Dbg (DEBUG_TRACE_DPC)
  17. #if 0
  18. NOT PAGEABLE -- MsReadTimeoutHandler
  19. #endif
  20. VOID
  21. MsReadTimeoutHandler (
  22. IN PKDPC Dpc,
  23. IN PVOID DeferredContext,
  24. IN PVOID SystemArgument1,
  25. IN PVOID SystemArgument2
  26. )
  27. /*++
  28. Routine Description:
  29. This routine is handles read timeouts. It is called as a DPC whenever
  30. a read timer expires.
  31. *** Non-Pageable ***
  32. Arguments:
  33. Dpc - A pointer to the DPC object.
  34. DeferredContext - A pointer to the data queue entry associated with
  35. this timer.
  36. SystemArgument1, SystemArgument2 - Unused.
  37. Return Value:
  38. None.
  39. --*/
  40. {
  41. PWORK_CONTEXT workContext;
  42. Dpc, SystemArgument1, SystemArgument2; // prevent warnings
  43. //
  44. // Enqueue this packet to an ex worker thread.
  45. //
  46. workContext = DeferredContext;
  47. IoQueueWorkItem (workContext->WorkItem, MsTimeoutRead, CriticalWorkQueue, workContext);
  48. }