ReactOS 0.4.16-dev-306-g647d351
|
#include <wdm.h>
Go to the source code of this file.
Classes | |
struct | _WORK_ITEM |
Macros | |
#define | FOURCC(w, x, y, z) (((w) << 24) | ((x) << 16) | ((y) << 8) | (z)) |
#define | CHEW_TAG FOURCC('C','H','E','W') |
Typedefs | |
typedef struct _WORK_ITEM | WORK_ITEM |
typedef struct _WORK_ITEM * | PWORK_ITEM |
Functions | |
VOID | ChewInit (PDEVICE_OBJECT DeviceObject) |
VOID | ChewShutdown (VOID) |
VOID NTAPI | ChewWorkItem (PDEVICE_OBJECT DeviceObject, PVOID ChewItem) |
BOOLEAN | ChewCreate (VOID(*Worker)(PVOID), PVOID WorkerContext) |
Variables | |
PDEVICE_OBJECT | WorkQueueDevice |
LIST_ENTRY | WorkQueue |
KSPIN_LOCK | WorkQueueLock |
KEVENT | WorkQueueClear |
Definition at line 12 of file workqueue.c.
typedef struct _WORK_ITEM * PWORK_ITEM |
typedef struct _WORK_ITEM WORK_ITEM |
Creates and queues a work item.
Definition at line 61 of file workqueue.c.
Referenced by CompleteBucket(), LanSubmitReceiveWork(), LoopTransmit(), and ProtocolStatus().
VOID ChewInit | ( | PDEVICE_OBJECT | DeviceObject | ) |
Initialize CHEW, given a device object (since IoAllocateWorkItem relies on it).
Definition at line 28 of file workqueue.c.
Referenced by DriverEntry().
Shutdown CHEW, waits for remaining work items.
Definition at line 36 of file workqueue.c.
Referenced by TiUnload().
VOID NTAPI ChewWorkItem | ( | PDEVICE_OBJECT | DeviceObject, |
PVOID | ChewItem | ||
) |
Definition at line 41 of file workqueue.c.
Referenced by ChewCreate().
LIST_ENTRY WorkQueue |
Definition at line 16 of file workqueue.c.
Referenced by CcPostWorkQueue(), ChewCreate(), ChewInit(), ChewWorkItem(), ExpWorkerThreadEntryPoint(), ExQueueWorkItem(), RxBootstrapWorkerThreadDispatcher(), RxInitializeWorkQueue(), RxInsertWorkQueueItem(), RxpWorkerThreadDispatcher(), RxSpinUpRequestsDispatcher(), and RxSpinUpWorkerThread().
KEVENT WorkQueueClear |
Definition at line 18 of file workqueue.c.
Referenced by ChewCreate(), ChewInit(), ChewShutdown(), and ChewWorkItem().
PDEVICE_OBJECT WorkQueueDevice |
Definition at line 15 of file workqueue.c.
Referenced by ChewCreate(), and ChewInit().
KSPIN_LOCK WorkQueueLock |
Definition at line 17 of file workqueue.c.
Referenced by ChewCreate(), ChewInit(), and ChewWorkItem().