Rechercher une page de manuel
lock_may_write
Langue: en
Version: June 2009 (debian - 07/07/09)
Section: 9 (Appels noyau Linux)
NAME
lock_may_write - checks that the region is free of locksSYNOPSIS
- 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.
COPYRIGHT
Contenus ©2006-2024 Benjamin Poulain
Design ©2006-2024 Maxime Vantorre