2 * reactos filesystem oplock functions emulation of libcaptive
3 * Copyright (C) 2002 Jan Kratochvil <project-captive@jankratochvil.net>
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; exactly version 2 of June 1991 is required
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
22 #include "reactos/ddk/fsfuncs.h" /* self */
23 #include "reactos/ddk/status.h" /* for STATUS_SUCCESS */
24 #include <glib/gmessages.h>
27 VOID FsRtlInitializeOplock(IN OUT POPLOCK Oplock)
29 g_return_if_fail(Oplock!=NULL);
31 /* FIXME: NOT IMPLEMENTED YET */
35 VOID FsRtlUninitializeOplock(IN OUT POPLOCK Oplock)
37 g_return_if_fail(Oplock!=NULL);
39 /* FIXME: NOT IMPLEMENTED YET */
46 * %NULL value is forbidden.
48 * %NULL value is forbidden.
50 * %NULL value is permitted.
51 * @CompletionRoutine: ???.
52 * %NULL value is permitted.
54 * %NULL value is permitted.
56 * libcaptive does not support any oplocks. This function is a NOP.
58 * Returns: %STATUS_SUCCESS.
60 NTSTATUS FsRtlCheckOplock(IN POPLOCK Oplock,IN PIRP Irp,IN PVOID Context,
61 IN POPLOCK_WAIT_COMPLETE_ROUTINE CompletionRoutine OPTIONAL,IN POPLOCK_FS_PREPOST_IRP PostIrpRoutine OPTIONAL)
63 g_return_val_if_fail(Oplock!=NULL,STATUS_INVALID_PARAMETER);
64 g_return_val_if_fail(Irp!=NULL,STATUS_INVALID_PARAMETER);
68 return STATUS_SUCCESS;
72 BOOLEAN FsRtlCurrentBatchOplock(IN POPLOCK Oplock)
74 g_return_val_if_fail(Oplock!=NULL,FALSE);
78 return FALSE; /* no oplock operation pending */