LOCK_MAY_WRITE
Section: (9)
Updated: 14 August 2003
Index
Return to Main Contents
NAME
lock_may_write - checks that the region is free of locks
SYNOPSIS
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
DESCRIPTION
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.
ABOUT THIS DOCUMENT
This documentation was generated with kernel version 2.6.0.
Index
- NAME
-
- SYNOPSIS
-
- ARGUMENTS
-
- DESCRIPTION
-
- ABOUT THIS DOCUMENT
-
This document was created by
man2html,
using the manual pages.
Time: 23:19:24 GMT, August 13, 2003