Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
322f0b57
Commit
322f0b57
authored
May 01, 2019
by
Jacek Caban
Committed by
Alexandre Julliard
May 01, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntoskrnl.exe: Implement IoAllocateWorkItem and IoFreeWorkItem.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
73b99d29
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
4 deletions
+26
-4
ntoskrnl.c
dlls/ntoskrnl.exe/ntoskrnl.c
+23
-3
ntoskrnl.exe.spec
dlls/ntoskrnl.exe/ntoskrnl.exe.spec
+1
-1
wdm.h
include/ddk/wdm.h
+2
-0
No files found.
dlls/ntoskrnl.exe/ntoskrnl.c
View file @
322f0b57
...
...
@@ -1232,13 +1232,33 @@ void WINAPI IoFreeMdl(PMDL mdl)
}
struct
_IO_WORKITEM
{
DEVICE_OBJECT
*
device
;
};
/***********************************************************************
* IoAllocateWorkItem (NTOSKRNL.EXE.@)
*/
PIO_WORKITEM
WINAPI
IoAllocateWorkItem
(
PDEVICE_OBJECT
DeviceObject
)
PIO_WORKITEM
WINAPI
IoAllocateWorkItem
(
PDEVICE_OBJECT
device
)
{
FIXME
(
"stub: %p
\n
"
,
DeviceObject
);
return
NULL
;
PIO_WORKITEM
work_item
;
TRACE
(
"%p
\n
"
,
device
);
if
(
!
(
work_item
=
ExAllocatePool
(
PagedPool
,
sizeof
(
*
work_item
)
)))
return
NULL
;
work_item
->
device
=
device
;
return
work_item
;
}
/***********************************************************************
* IoFreeWorkItem (NTOSKRNL.EXE.@)
*/
void
WINAPI
IoFreeWorkItem
(
PIO_WORKITEM
work_item
)
{
TRACE
(
"%p
\n
"
,
work_item
);
ExFreePool
(
work_item
);
}
...
...
dlls/ntoskrnl.exe/ntoskrnl.exe.spec
View file @
322f0b57
...
...
@@ -383,7 +383,7 @@
@ stub IoFreeErrorLogEntry
@ stdcall IoFreeIrp(ptr)
@ stdcall IoFreeMdl(ptr)
@ st
ub IoFreeWorkItem
@ st
dcall IoFreeWorkItem(ptr)
@ stdcall IoGetAttachedDevice(ptr)
@ stdcall IoGetAttachedDeviceReference(ptr)
@ stub IoGetBaseFileSystemDeviceObject
...
...
include/ddk/wdm.h
View file @
322f0b57
...
...
@@ -1543,6 +1543,7 @@ NTSTATUS WINAPI IoAllocateDriverObjectExtension(PDRIVER_OBJECT,PVOID,ULONG,PVOI
PVOID
WINAPI
IoAllocateErrorLogEntry
(
PVOID
,
UCHAR
);
PIRP
WINAPI
IoAllocateIrp
(
CCHAR
,
BOOLEAN
);
PMDL
WINAPI
IoAllocateMdl
(
PVOID
,
ULONG
,
BOOLEAN
,
BOOLEAN
,
IRP
*
);
PIO_WORKITEM
WINAPI
IoAllocateWorkItem
(
PDEVICE_OBJECT
);
PDEVICE_OBJECT
WINAPI
IoAttachDeviceToDeviceStack
(
PDEVICE_OBJECT
,
PDEVICE_OBJECT
);
PIRP
WINAPI
IoBuildDeviceIoControlRequest
(
ULONG
,
DEVICE_OBJECT
*
,
PVOID
,
ULONG
,
PVOID
,
ULONG
,
BOOLEAN
,
PKEVENT
,
IO_STATUS_BLOCK
*
);
PIRP
WINAPI
IoBuildSynchronousFsdRequest
(
ULONG
,
DEVICE_OBJECT
*
,
PVOID
,
ULONG
,
PLARGE_INTEGER
,
PKEVENT
,
IO_STATUS_BLOCK
*
);
...
...
@@ -1557,6 +1558,7 @@ void WINAPI IoDeleteDriver(DRIVER_OBJECT*);
NTSTATUS
WINAPI
IoDeleteSymbolicLink
(
UNICODE_STRING
*
);
void
WINAPI
IoFreeIrp
(
IRP
*
);
void
WINAPI
IoFreeMdl
(
MDL
*
);
void
WINAPI
IoFreeWorkItem
(
PIO_WORKITEM
);
PEPROCESS
WINAPI
IoGetCurrentProcess
(
void
);
NTSTATUS
WINAPI
IoGetDeviceInterfaces
(
const
GUID
*
,
PDEVICE_OBJECT
,
ULONG
,
PWSTR
*
);
NTSTATUS
WINAPI
IoGetDeviceObjectPointer
(
UNICODE_STRING
*
,
ACCESS_MASK
,
PFILE_OBJECT
*
,
PDEVICE_OBJECT
*
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment