Rechercher une page de manuel
posix_lock_file
Langue: en
Version: May 2009 (fedora - 06/07/09)
Section: 9 (Appels noyau Linux)
NAME
posix_lock_file - Apply a POSIX-style lock to a fileSYNOPSIS
- int posix_lock_file(struct file * filp, struct file_lock * fl, struct file_lock * conflock);
ARGUMENTS
filp
- The file to apply the lock to
fl
- The lock to be applied
conflock
- Place to return a copy of the conflicting lock, if found.
DESCRIPTION
Add a POSIX style lock to a file. We merge adjacent & overlapping locks whenever possible. POSIX locks are sorted by owner task, then by starting address
Note that if called with an FL_EXISTS argument, the caller may determine whether or not a lock was successfully freed by testing the return value for -ENOENT.
COPYRIGHT
Contenus ©2006-2024 Benjamin Poulain
Design ©2006-2024 Maxime Vantorre