Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
wine
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package registry
Container registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Lorenzo Ferrillo
wine
Commits
a38aaf43
Commit
a38aaf43
authored
9 years ago
by
Alexandre Julliard
Browse files
Options
Downloads
Patches
Plain Diff
ntoskrnl: Add support for flush requests.
parent
2cd717a6
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dlls/ntoskrnl.exe/ntoskrnl.c
+17
-1
17 additions, 1 deletion
dlls/ntoskrnl.exe/ntoskrnl.c
with
17 additions
and
1 deletion
dlls/ntoskrnl.exe/ntoskrnl.c
+
17
−
1
View file @
a38aaf43
...
...
@@ -203,6 +203,22 @@ static NTSTATUS dispatch_write( DEVICE_OBJECT *device, const irp_params_t *param
return
dispatch_irp
(
device
,
irp
);
}
/* process a flush request for a given device */
static
NTSTATUS
dispatch_flush
(
DEVICE_OBJECT
*
device
,
const
irp_params_t
*
params
,
void
*
in_buff
,
ULONG
in_size
,
ULONG
out_size
,
HANDLE
irp_handle
)
{
IRP
*
irp
;
TRACE
(
"device %p
\n
"
,
device
);
/* note: we abuse UserIosb to store the server irp handle */
if
(
!
(
irp
=
IoBuildSynchronousFsdRequest
(
IRP_MJ_FLUSH_BUFFERS
,
device
,
in_buff
,
in_size
,
NULL
,
NULL
,
irp_handle
)))
return
STATUS_NO_MEMORY
;
return
dispatch_irp
(
device
,
irp
);
}
/* process an ioctl request for a given device */
static
NTSTATUS
dispatch_ioctl
(
DEVICE_OBJECT
*
device
,
const
irp_params_t
*
params
,
void
*
in_buff
,
ULONG
in_size
,
ULONG
out_size
,
HANDLE
irp_handle
)
...
...
@@ -249,7 +265,7 @@ static const dispatch_func dispatch_funcs[IRP_MJ_MAXIMUM_FUNCTION + 1] =
NULL
,
/* IRP_MJ_SET_INFORMATION */
NULL
,
/* IRP_MJ_QUERY_EA */
NULL
,
/* IRP_MJ_SET_EA */
NULL
,
/* IRP_MJ_FLUSH_BUFFERS */
dispatch_flush
,
/* IRP_MJ_FLUSH_BUFFERS */
NULL
,
/* IRP_MJ_QUERY_VOLUME_INFORMATION */
NULL
,
/* IRP_MJ_SET_VOLUME_INFORMATION */
NULL
,
/* IRP_MJ_DIRECTORY_CONTROL */
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment