<?xml version="1.0" encoding="ANSI_X3.4-1968" standalone="no"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"><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.75.2" /><link rel="home" href="index.html" title="Linux Filesystems API" /><link rel="up" href="ch01.html" title="Chapter 1. The Linux VFS" /><link rel="prev" href="re54.html" title="get_super" /><link rel="next" href="re55.html" title="posix_lock_file" /></head><body><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="re54.html">Prev</a> </td><th width="60%" align="center">Chapter 1. The Linux VFS</th><td width="20%" align="right"> <a accesskey="n" href="re55.html">Next</a></td></tr></table><hr /></div><div class="sect1" title="File Locks"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a id="file_locks"></a>File Locks</h2></div></div></div><div class="toc"><dl><dt><span class="refentrytitle"><a href="re55.html"><span>posix_lock_file</span></a></span><span class="refpurpose"> — Apply a POSIX-style lock to a file </span></dt><dt><span class="refentrytitle"><a href="re56.html"><span>posix_lock_file_wait</span></a></span><span class="refpurpose"> — Apply a POSIX-style lock to a file </span></dt><dt><span class="refentrytitle"><a href="re57.html"><span>locks_mandatory_area</span></a></span><span class="refpurpose"> — Check for a conflicting lock </span></dt><dt><span class="refentrytitle"><a href="re58.html"><span>__break_lease</span></a></span><span class="refpurpose"> — revoke all outstanding leases on file </span></dt><dt><span class="refentrytitle"><a href="re59.html"><span>lease_get_mtime</span></a></span><span class="refpurpose"> — get the last modified time of an inode </span></dt><dt><span class="refentrytitle"><a href="re60.html"><span>generic_setlease</span></a></span><span class="refpurpose"> — sets a lease on an open file </span></dt><dt><span class="refentrytitle"><a href="re61.html"><span>flock_lock_file_wait</span></a></span><span class="refpurpose"> — Apply a FLOCK-style lock to a file </span></dt><dt><span class="refentrytitle"><a href="re62.html"><span>vfs_test_lock</span></a></span><span class="refpurpose"> — test file byte range lock </span></dt><dt><span class="refentrytitle"><a href="re63.html"><span>vfs_lock_file</span></a></span><span class="refpurpose"> — file byte range lock </span></dt><dt><span class="refentrytitle"><a href="re64.html"><span>posix_unblock_lock</span></a></span><span class="refpurpose"> — stop waiting for a file lock </span></dt><dt><span class="refentrytitle"><a href="re65.html"><span>vfs_cancel_lock</span></a></span><span class="refpurpose"> — file byte range unblock lock </span></dt><dt><span class="refentrytitle"><a href="re66.html"><span>lock_may_read</span></a></span><span class="refpurpose"> — checks that the region is free of locks </span></dt><dt><span class="refentrytitle"><a href="re67.html"><span>lock_may_write</span></a></span><span class="refpurpose"> — checks that the region is free of locks </span></dt><dt><span class="refentrytitle"><a href="re68.html"><span>locks_mandatory_locked</span></a></span><span class="refpurpose"> — Check for an active lock </span></dt><dt><span class="refentrytitle"><a href="re69.html"><span>fcntl_getlease</span></a></span><span class="refpurpose"> — Enquire what lease is currently active </span></dt><dt><span class="refentrytitle"><a href="re70.html"><span>fcntl_setlease</span></a></span><span class="refpurpose"> — sets a lease on an open file </span></dt><dt><span class="refentrytitle"><a href="re71.html"><span>sys_flock</span></a></span><span class="refpurpose"> — <code class="function">flock</code> system call. </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="re54.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="ch01.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="re55.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top"><span>get_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>posix_lock_file</span></td></tr></table></div></body></html>