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

NAME

6       lock_may_read - checks that the region is free of locks
7

SYNOPSIS

9       int lock_may_read(struct inode * inode, loff_t start,
10                         unsigned long len);
11

ARGUMENTS

13       inode
14           the inode that is being read
15
16       start
17           the first byte to read
18
19       len
20           the number of bytes to read
21

DESCRIPTION

23       Emulates Windows locking requirements. Whole-file mandatory locks
24       (share modes) can prohibit a read and byte-range POSIX locks can
25       prohibit a read if they overlap.
26
27       N.B. this function is only ever called from knfsd and ownership of
28       locks is never checked.
29
31Kernel Hackers Manual 2.6.         June 2019                  LOCK_MAY_READ(9)
Impressum