The Linux Kernel API | ||
---|---|---|
<<< Previous | Next >>> |
The file to apply the lock to
The lock to be applied
1 to retry automatically, 0 to return -EAGAIN
Add a POSIX style lock to a file. We merge adjacent locks whenever possible. POSIX locks are sorted by owner task, then by starting address
To make freeing a lock much faster, we keep a pointer to the lock before the actual one. But the real gain of the new coding was, that lock_it and unlock_it became one function.
<<< Previous | Home | Next >>> |
File Locks | Up | __get_lease |