lock_may_read - checks that the region is free of locks
2. SYNOPSIS ▲
int lock_may_read(struct inode * inode , loff_t start , unsigned long len );
3. ARGUMENTS ▲
the inode that is being read
the first byte to read
the number of bytes to read
4. DESCRIPTION ▲
Emulates Windows locking requirements. Whole-file mandatory locks (share modes) can prohibit a read and byte-range POSIX locks can prohibit a read if they overlap.
N.B. this function is only ever called from knfsd and ownership of locks is never checked.
5. COPYRIGHT ▲