ReactOS  0.4.14-dev-1007-g90d795b
workitem.c File Reference
#include "ndissys.h"
Include dependency graph for workitem.c:

Go to the source code of this file.

Functions

NDIS_HANDLE EXPORT NdisAllocateIoWorkItem (IN NDIS_HANDLE NdisObjectHandle)
 
VOID EXPORT NdisQueueIoWorkItem (IN NDIS_HANDLE NdisIoWorkItemHandle, IN NDIS_IO_WORKITEM_ROUTINE Routine, IN PVOID WorkItemContext)
 
VOID EXPORT NdisFreeIoWorkItem (IN NDIS_HANDLE NdisIoWorkItemHandle)
 

Function Documentation

◆ NdisAllocateIoWorkItem()

NDIS_HANDLE EXPORT NdisAllocateIoWorkItem ( IN NDIS_HANDLE  NdisObjectHandle)

Definition at line 13 of file workitem.c.

15 {
16  PLOGICAL_ADAPTER Adapter = NdisObjectHandle;
17 
19 }
PDEVICE_OBJECT PhysicalDeviceObject
Definition: ndis.h:2553
PIO_WORKITEM NTAPI IoAllocateWorkItem(IN PDEVICE_OBJECT DeviceObject)
Definition: iowork.c:75
NDIS_MINIPORT_BLOCK NdisMiniportBlock
Definition: miniport.h:89

◆ NdisFreeIoWorkItem()

VOID EXPORT NdisFreeIoWorkItem ( IN NDIS_HANDLE  NdisIoWorkItemHandle)

Definition at line 38 of file workitem.c.

40 {
41  PNDIS_IO_WORKITEM WorkItem = NdisIoWorkItemHandle;
42  IoFreeWorkItem(WorkItem);
43 }
VOID NTAPI IoFreeWorkItem(IN PIO_WORKITEM IoWorkItem)
Definition: iowork.c:64

◆ NdisQueueIoWorkItem()

VOID EXPORT NdisQueueIoWorkItem ( IN NDIS_HANDLE  NdisIoWorkItemHandle,
IN NDIS_IO_WORKITEM_ROUTINE  Routine,
IN PVOID  WorkItemContext 
)

Definition at line 23 of file workitem.c.

27 {
28  PNDIS_IO_WORKITEM WorkItem = NdisIoWorkItemHandle;
29 
30  IoQueueWorkItem(WorkItem,
31  Routine,
33  WorkItemContext);
34 }
VOID NTAPI IoQueueWorkItem(IN PIO_WORKITEM IoWorkItem, IN PIO_WORKITEM_ROUTINE WorkerRoutine, IN WORK_QUEUE_TYPE QueueType, IN PVOID Context)
Definition: iowork.c:40