1<html><head><meta http-equiv="Content-Type" content="text/html; charset=ANSI_X3.4-1968"><title>File Locks</title><meta name="generator" content="DocBook XSL Stylesheets V1.78.1"><link rel="home" href="index.html" title="Linux Filesystems API"><link rel="up" href="vfs.html" title="Chapter 1. The Linux VFS"><link rel="prev" href="API-thaw-super.html" title="thaw_super"><link rel="next" href="API-posix-lock-file.html" title="posix_lock_file"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">File Locks</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="API-thaw-super.html">Prev</a> </td><th width="60%" align="center">Chapter 1. The Linux VFS</th><td width="20%" align="right"> <a accesskey="n" href="API-posix-lock-file.html">Next</a></td></tr></table><hr></div><div class="sect1"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="file_locks"></a>File Locks</h2></div></div></div><div class="toc"><dl class="toc"><dt><span class="refentrytitle"><a href="API-posix-lock-file.html"><span class="phrase">posix_lock_file</span></a></span><span class="refpurpose"> — 2 Apply a POSIX-style lock to a file 3 </span></dt><dt><span class="refentrytitle"><a href="API-posix-lock-inode-wait.html"><span class="phrase">posix_lock_inode_wait</span></a></span><span class="refpurpose"> — 4 Apply a POSIX-style lock to a file 5 </span></dt><dt><span class="refentrytitle"><a href="API-locks-mandatory-area.html"><span class="phrase">locks_mandatory_area</span></a></span><span class="refpurpose"> — 6 Check for a conflicting lock 7 </span></dt><dt><span class="refentrytitle"><a href="API---break-lease.html"><span class="phrase">__break_lease</span></a></span><span class="refpurpose"> — 8 revoke all outstanding leases on file 9 </span></dt><dt><span class="refentrytitle"><a href="API-lease-get-mtime.html"><span class="phrase">lease_get_mtime</span></a></span><span class="refpurpose"> — 10 get the last modified time of an inode 11 </span></dt><dt><span class="refentrytitle"><a href="API-generic-setlease.html"><span class="phrase">generic_setlease</span></a></span><span class="refpurpose"> — 12 sets a lease on an open file 13 </span></dt><dt><span class="refentrytitle"><a href="API-vfs-setlease.html"><span class="phrase">vfs_setlease</span></a></span><span class="refpurpose"> — 14 sets a lease on an open file 15 </span></dt><dt><span class="refentrytitle"><a href="API-flock-lock-inode-wait.html"><span class="phrase">flock_lock_inode_wait</span></a></span><span class="refpurpose"> — 16 Apply a FLOCK-style lock to a file 17 </span></dt><dt><span class="refentrytitle"><a href="API-vfs-test-lock.html"><span class="phrase">vfs_test_lock</span></a></span><span class="refpurpose"> — 18 test file byte range lock 19 </span></dt><dt><span class="refentrytitle"><a href="API-vfs-lock-file.html"><span class="phrase">vfs_lock_file</span></a></span><span class="refpurpose"> — 20 file byte range lock 21 </span></dt><dt><span class="refentrytitle"><a href="API-posix-unblock-lock.html"><span class="phrase">posix_unblock_lock</span></a></span><span class="refpurpose"> — 22 stop waiting for a file lock 23 </span></dt><dt><span class="refentrytitle"><a href="API-vfs-cancel-lock.html"><span class="phrase">vfs_cancel_lock</span></a></span><span class="refpurpose"> — 24 file byte range unblock lock 25 </span></dt><dt><span class="refentrytitle"><a href="API-locks-mandatory-locked.html"><span class="phrase">locks_mandatory_locked</span></a></span><span class="refpurpose"> — 26 Check for an active lock 27 </span></dt><dt><span class="refentrytitle"><a href="API-fcntl-getlease.html"><span class="phrase">fcntl_getlease</span></a></span><span class="refpurpose"> — 28 Enquire what lease is currently active 29 </span></dt><dt><span class="refentrytitle"><a href="API-check-conflicting-open.html"><span class="phrase">check_conflicting_open</span></a></span><span class="refpurpose"> — 30 see if the given dentry points to a file that has an existing open that would conflict with the desired lease. 31 </span></dt><dt><span class="refentrytitle"><a href="API-fcntl-setlease.html"><span class="phrase">fcntl_setlease</span></a></span><span class="refpurpose"> — 32 sets a lease on an open file 33 </span></dt><dt><span class="refentrytitle"><a href="API-sys-flock.html"><span class="phrase">sys_flock</span></a></span><span class="refpurpose"> — 34 <code class="function">flock</code> system call. 35 </span></dt></dl></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="API-thaw-super.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="vfs.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="API-posix-lock-file.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top"><span class="phrase">thaw_super</span> </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> <span class="phrase">posix_lock_file</span></td></tr></table></div></body></html> 36