ReactOS  0.4.14-dev-552-g2fad488
workitem.c
Go to the documentation of this file.
1 /*
2  * COPYRIGHT: See COPYING in the top level directory
3  * PROJECT: ReactOS NDIS library
4  * FILE: workitem.c
5  * PURPOSE: Implements the NDIS 6.0 work item interface
6  * PROGRAMMERS: Cameron Gutman (aicommander@gmail.com)
7  */
8 
9 #include "ndissys.h"
10 
12 EXPORT
14  IN NDIS_HANDLE NdisObjectHandle)
15 {
16  PLOGICAL_ADAPTER Adapter = NdisObjectHandle;
17 
19 }
20 
21 VOID
22 EXPORT
24  IN NDIS_HANDLE NdisIoWorkItemHandle,
25  IN NDIS_IO_WORKITEM_ROUTINE Routine,
26  IN PVOID WorkItemContext)
27 {
28  PNDIS_IO_WORKITEM WorkItem = NdisIoWorkItemHandle;
29 
30  IoQueueWorkItem(WorkItem,
31  Routine,
33  WorkItemContext);
34 }
35 
36 VOID
37 EXPORT
39  IN NDIS_HANDLE NdisIoWorkItemHandle)
40 {
41  PNDIS_IO_WORKITEM WorkItem = NdisIoWorkItemHandle;
42  IoFreeWorkItem(WorkItem);
43 }
#define IN
Definition: typedefs.h:38
PDEVICE_OBJECT PhysicalDeviceObject
Definition: ndis.h:2553
PIO_WORKITEM NTAPI IoAllocateWorkItem(IN PDEVICE_OBJECT DeviceObject)
Definition: iowork.c:75
VOID NTAPI IoFreeWorkItem(IN PIO_WORKITEM IoWorkItem)
Definition: iowork.c:64
VOID EXPORT NdisFreeIoWorkItem(IN NDIS_HANDLE NdisIoWorkItemHandle)
Definition: workitem.c:38
NDIS_HANDLE EXPORT NdisAllocateIoWorkItem(IN NDIS_HANDLE NdisObjectHandle)
Definition: workitem.c:13
NDIS_MINIPORT_BLOCK NdisMiniportBlock
Definition: miniport.h:89
VOID EXPORT NdisQueueIoWorkItem(IN NDIS_HANDLE NdisIoWorkItemHandle, IN NDIS_IO_WORKITEM_ROUTINE Routine, IN PVOID WorkItemContext)
Definition: workitem.c:23
VOID NTAPI IoQueueWorkItem(IN PIO_WORKITEM IoWorkItem, IN PIO_WORKITEM_ROUTINE WorkerRoutine, IN WORK_QUEUE_TYPE QueueType, IN PVOID Context)
Definition: iowork.c:40