-/* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil; -*-
- * vim:expandtab:shiftwidth=4:tabstop=4:
- *
+/*
* GPL HEADER START
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* GPL HEADER END
*/
/*
- * Copyright 2008 Sun Microsystems, Inc. All rights reserved
+ * Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved.
* Use is subject to license terms.
*/
/*
IN PIRP Irp
)
{
- NTSTATUS Status;
- PIO_STACK_LOCATION IrpSp;
+ NTSTATUS Status;
+ PIO_STACK_LOCATION IrpSp;
- FILE_FULL_EA_INFORMATION * ea;
- cfs_file_t * fp;
+ FILE_FULL_EA_INFORMATION *ea;
+ struct file *fp;
IrpSp = IoGetCurrentIrpStackLocation(Irp);
ea = (PFILE_FULL_EA_INFORMATION) Irp->AssociatedIrp.SystemBuffer;
IN PDEVICE_OBJECT DeviceObject,
IN PIRP Irp)
{
- PIO_STACK_LOCATION IrpSp;
+ PIO_STACK_LOCATION IrpSp;
- cfs_file_t * fp;
+ struct file *fp;
- IrpSp = IoGetCurrentIrpStackLocation(Irp);
- fp = (cfs_file_t *) IrpSp->FileObject->FsContext;
+ IrpSp = IoGetCurrentIrpStackLocation(Irp);
+ fp = (file_t *) IrpSp->FileObject->FsContext;
ASSERT(fp != NULL);
ASSERT(IrpSp->FileObject->FsContext2 == fp->private_data);
case IOCTL_LIBCFS_ENTRY:
{
- int rc = 0;
- cfs_file_t * fp;
+ int rc = 0;
+ struct file *fp;
- fp = (cfs_file_t *) IrpSp->FileObject->FsContext;
+ fp = (struct file *)IrpSp->FileObject->FsContext;
if (!fp) {
rc = -EINVAL;
NTSTATUS
ProcReadWrite (PDEVICE_OBJECT DeviceObject, PIRP Irp)
{
- PIO_STACK_LOCATION IrpSp;
- NTSTATUS Status;
+ PIO_STACK_LOCATION IrpSp;
+ NTSTATUS Status;
- cfs_file_t * fp;
- int rc;
- PCHAR buf;
+ struct file *fp;
+ int rc;
+ PCHAR buf;
IrpSp = IoGetCurrentIrpStackLocation(Irp);
if (Irp->MdlAddress) {
Status = STATUS_SUCCESS;
rc = 0;
} else {
- fp = (cfs_file_t *) IrpSp->FileObject->FsContext;
+ fp = (struct file *)IrpSp->FileObject->FsContext;
if (!fp) {
Status = STATUS_INVALID_PARAMETER;