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.