lock_may_read(9) suse man page | unix.com

Man Page: lock_may_read

Operating Environment: suse

Section: 9

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) - centos
clri(8) - opendarwin
lockf(3) - minix
lockf(3) - x11r4
lockf(3) - php
Similar Topics in the Unix Linux Community
How to restrict user to a specific directory in solaris 10
Change directory error
Tar Command
A (ksh) Library For and From UNIX.com
Docker learning Phase-I