ReactOS  0.4.15-dev-985-gd905dd5
close.c
Go to the documentation of this file.
1 /*
2  * COPYRIGHT: See COPYING in the top level directory
3  * PROJECT: Serial port driver
4  * FILE: drivers/dd/serial/close.c
5  * PURPOSE: Serial IRP_MJ_CLOSE operations
6  *
7  * PROGRAMMERS: Hervé Poussineau (hpoussin@reactos.org)
8  */
9 
10 #include "serial.h"
11 
12 #include <debug.h>
13 
17  IN PIRP Irp)
18 {
19  PSERIAL_DEVICE_EXTENSION pDeviceExtension;
20 
21  TRACE_(SERIAL, "IRP_MJ_CLOSE\n");
23  pDeviceExtension->IsOpened = FALSE;
24 
25  Irp->IoStatus.Information = 0;
26  Irp->IoStatus.Status = STATUS_SUCCESS;
28  return STATUS_SUCCESS;
29 }
#define IN
Definition: typedefs.h:39
_In_ PIRP Irp
Definition: csq.h:116
LONG NTSTATUS
Definition: precomp.h:26
NTSTATUS(* NTAPI)(IN PFILE_FULL_EA_INFORMATION EaBuffer, IN ULONG EaLength, OUT PULONG ErrorOffset)
Definition: IoEaTest.cpp:117
#define FALSE
Definition: types.h:117
PVOID DeviceExtension
Definition: env_spec_w32.h:418
#define IoCompleteRequest
Definition: irp.c:1240
#define TRACE_(x)
Definition: compat.h:76
NTSTATUS NTAPI SerialClose(IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp)
Definition: close.c:15
IN PDEVICE_OBJECT DeviceObject
Definition: fatprocs.h:1569
struct _SERIAL_DEVICE_EXTENSION * PSERIAL_DEVICE_EXTENSION
#define IO_NO_INCREMENT
Definition: iotypes.h:570
return STATUS_SUCCESS
Definition: btrfs.c:3014