suse man page for lock_may_read

Query: lock_may_read

OS: suse

Section: 9

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

LOCK_MAY_READ(9)						   The Linux VFS						  LOCK_MAY_READ(9)

NAME
lock_may_read - checks that the region is free of locks
SYNOPSIS
int lock_may_read(struct inode * inode, loff_t start, unsigned long len);
ARGUMENTS
inode the inode that is being read start the first byte to read len the number of bytes to read
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.
COPYRIGHT
Kernel Hackers Manual 2.6. July 2010 LOCK_MAY_READ(9)
Related Man Pages
vfs_lock_file(9) - suse
vfs_lock_file(9) - centos
lockf(3) - debian
lockf(3) - suse
lockf(3) - php
Similar Topics in the Unix Linux Community
Change directory error
Getting command output to putty window title.
Cut command on RHEL 6.8 compatibility issues
The Future of the PM (Private Message) System at UNIX.com
32 bit process addressing more than 4GB