1LOCKS_MANDATORY_AREA(9) The Linux VFS LOCKS_MANDATORY_AREA(9)
2
3
4
6 locks_mandatory_area - Check for a conflicting lock
7
9 int locks_mandatory_area(int read_write, struct inode * inode,
10 struct file * filp, loff_t offset,
11 size_t count);
12
14 read_write
15
16 FLOCK_VERIFY_WRITE for exclusive access, FLOCK_VERIFY_READ for
17 shared
18
19 inode
20 the file to check
21
22 filp
23 how the file was opened (if it was)
24
25 offset
26 start of area to check
27
28 count
29 length of area to check
30
32 Searches the inode's list of locks to find any POSIX locks which
33 conflict. This function is called from rw_verify_area and
34 locks_verify_truncate.
35
37Kernel Hackers Manual 2.6. November 2011 LOCKS_MANDATORY_AREA(9)