1LOCK_MAY_WRITE(9) The Linux VFS LOCK_MAY_WRITE(9)
2
3
4
6 lock_may_write - checks that the region is free of locks
7
9 int lock_may_write(struct inode * inode, loff_t start,
10 unsigned long len);
11
13 inode
14 the inode that is being written
15
16 start
17 the first byte to write
18
19 len
20 the number of bytes to write
21
23 Emulates Windows locking requirements. Whole-file mandatory locks
24 (share modes) can prohibit a write and byte-range POSIX locks can
25 prohibit a write 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. November 2011 LOCK_MAY_WRITE(9)