lock_may_write9
Checks that the region is free of locks
Usage
int lock_may_write(struct inode * inode, loff_t start, unsigned long len);
Arguments
inode
the inode that is being written
start
the first byte to write
len
the number of bytes to write
Overview
Emulates Windows locking requirements. Whole-file mandatory locks (share modes) can prohibit a write and byte-range POSIX locks can prohibit a write if they overlap.
N.B. this function is only ever called from knfsd and ownership of locks is never checked.
Releases
5 releases since Debian 4.0 (Etch); the text changed 4 times.