.\" 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 "POSIX_LOCK_FILE_WAIT" "9" "09 October 2005" "" "" .SH NAME posix_lock_file_wait \- Apply a POSIX-style lock to a file .SH SYNOPSIS "SYNOPSIS" .sp \fB .sp int posix_lock_file_wait (struct file * \fIfilp\fB, struct file_lock * \fIfl\fB); \fR .SH "ARGUMENTS" .TP \fB\fIfilp\fB\fR The file to apply the lock to .TP \fB\fIfl\fB\fR The lock to be applied .SH "DESCRIPTION" .PP Add a POSIX style lock to a file. We merge adjacent & overlapping locks whenever possible. POSIX locks are sorted by owner task, then by starting address