1LOCKS_MANDATORY_AREA(9)          The Linux VFS         LOCKS_MANDATORY_AREA(9)
2
3
4

NAME

6       locks_mandatory_area - Check for a conflicting lock
7

SYNOPSIS

9       int locks_mandatory_area(struct inode * inode, struct file * filp,
10                                loff_t start, loff_t end, unsigned char type);
11

ARGUMENTS

13       inode
14           the file to check
15
16       filp
17           how the file was opened (if it was)
18
19       start
20           first byte in the file to check
21
22       end
23           lastbyte in the file to check
24
25       type
26           F_WRLCK for a write lock, else F_RDLCK
27

DESCRIPTION

29       Searches the inode's list of locks to find any POSIX locks which
30       conflict.
31
33Kernel Hackers Manual 3.10         June 2019           LOCKS_MANDATORY_AREA(9)
Impressum