ReactOS  0.4.15-dev-1206-g731eddf
close.c File Reference
#include "serial.h"
#include <debug.h>
Include dependency graph for close.c:

Go to the source code of this file.

Functions

NTSTATUS NTAPI SerialClose (IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp)
 

Function Documentation

◆ SerialClose()

NTSTATUS NTAPI SerialClose ( IN PDEVICE_OBJECT  DeviceObject,
IN PIRP  Irp 
)

Definition at line 15 of file close.c.

18 {
19  PSERIAL_DEVICE_EXTENSION pDeviceExtension;
20 
21  TRACE_(SERIAL, "IRP_MJ_CLOSE\n");
22  pDeviceExtension = (PSERIAL_DEVICE_EXTENSION)DeviceObject->DeviceExtension;
23  pDeviceExtension->IsOpened = FALSE;
24 
25  Irp->IoStatus.Information = 0;
26  Irp->IoStatus.Status = STATUS_SUCCESS;
28  return STATUS_SUCCESS;
29 }
_In_ PIRP Irp
Definition: csq.h:116
#define FALSE
Definition: types.h:117
#define IoCompleteRequest
Definition: irp.c:1240
#define TRACE_(x)
Definition: compat.h:76
struct _SERIAL_DEVICE_EXTENSION * PSERIAL_DEVICE_EXTENSION
_In_ PDEVICE_OBJECT DeviceObject
Definition: iotypes.h:2464
#define IO_NO_INCREMENT
Definition: iotypes.h:581
return STATUS_SUCCESS
Definition: btrfs.c:3014