.\" This manpage has been automatically generated by docbook2man .\" from a DocBook document. This tool can be found at: .\" .\" Please send any bug reports, improvements, comments, patches, .\" etc. to Steve Cheng . .TH "LOCKS_MANDATORY_AREA" "" "06 October 2005" "" "" .SH NAME locks_mandatory_area \- Check for a conflicting lock .SH SYNOPSIS "SYNOPSIS" .sp \fB .sp int locks_mandatory_area (int \fIread_write\fB, struct inode * \fIinode\fB, struct file * \fIfilp\fB, loff_t \fIoffset\fB, size_t \fIcount\fB); \fR .SH "ARGUMENTS" .TP \fB\fIread_write\fB\fR FLOCK_VERIFY_WRITE for exclusive access, FLOCK_VERIFY_READ for shared .TP \fB\fIinode\fB\fR the file to check .TP \fB\fIfilp\fB\fR -- undescribed -- .TP \fB\fIoffset\fB\fR start of area to check .TP \fB\fIcount\fB\fR length of area to check .SH "DESCRIPTION" .PP Searches the inode's list of locks to find any POSIX locks which conflict. This function is called from \fBlocks_verify_area\fR and \fBlocks_verify_truncate\fR\&.