lock_may_read

Section: Kernel Hacker's Manual (9)
Updated: lock_may_read
Index Return to Main Contents
 

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.


 

Index

NAME
SYNOPSIS
ARGUMENTS
DESCRIPTION

This document was created by man2html, using the manual pages.
Time: 03:15:44 GMT, June 12, 2005