IFSMgr_CheckLocks


IFSMgr_CheckLocks(
 void * pFSDLockListHead,
 unsigned long Offset,
 unsigned long Length,
 unsigned long Process,
 void * pOpenFileInstance,
 unsigned long fOperation
 )

This service checks if the specified i/o operation can be done on the file without violating any of the locks that are active on the open file. It walks the list of locks active on the open file and checks if the current i/o operation violates any of the locks.

pFSDLockListHead

Supplies a pointer to the head of the list of locks.

Offset

Supplies the starting offset in the file of the region the i/o operation is to be done to.

Length

Supplies the length of the i/o operation.

Process

Supplies the process id of the process performing the i/o operation.

pOpenFileInstance

Supplies a pointer to the structure that describes the current open file instance.

fOperation

Supplies flags indicating what kind of i/o operation is being done.

I/O Operation Flags:

Value

Meaning

LOCKF_RD

Indicates that a read operation is being done.

LOCKF_WR

Indicates that a write operation is being done.