]>
Commit | Line | Data |
---|---|---|
663996b3 MS |
1 | <html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>sd-readahead</title><meta name="generator" content="DocBook XSL Stylesheets V1.78.1"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><style> |
2 | a.headerlink { | |
3 | color: #c60f0f; | |
4 | font-size: 0.8em; | |
5 | padding: 0 4px 0 4px; | |
6 | text-decoration: none; | |
7 | visibility: hidden; | |
8 | } | |
9 | ||
10 | a.headerlink:hover { | |
11 | background-color: #c60f0f; | |
12 | color: white; | |
13 | } | |
14 | ||
15 | h1:hover > a.headerlink, h2:hover > a.headerlink, h3:hover > a.headerlink, dt:hover > a.headerlink { | |
16 | visibility: visible; | |
17 | } | |
18 | </style><a href="index.html">Index </a>· | |
19 | <a href="systemd.directives.html">Directives </a>· | |
20 | <a href="../python-systemd/index.html">Python </a>· | |
21 | <a href="../libudev/index.html">libudev </a>· | |
e842803a MB |
22 | <a href="../libudev/index.html">gudev </a><span style="float:right">systemd 215</span><hr><div class="refentry"><a name="sd-readahead"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>sd-readahead — Reference implementation of APIs for |
23 | controlling boot-time read-ahead</p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><div class="funcsynopsis"><pre class="funcsynopsisinfo">#include "sd-readahead.h"</pre></div></div><div class="refsect1"><a name="idm214198772224"></a><h2 id="Description">Description<a class="headerlink" title="Permalink to this headline" href="#Description">¶</a></h2><p><code class="filename">sd-readahead.c</code> and | |
663996b3 MS |
24 | <code class="filename">sd-readahead.h</code> provide a |
25 | reference implementation for APIs for controlling boot-time | |
26 | read-ahead, as implemented by the read-ahead subsystem | |
27 | of the | |
28 | <a href="systemd.html"><span class="citerefentry"><span class="refentrytitle">systemd</span>(1)</span></a> | |
29 | init system.</p><p>See | |
30 | <a href="sd_readahead.html"><span class="citerefentry"><span class="refentrytitle">sd_readahead</span>(3)</span></a> | |
31 | for more information about the function | |
e842803a | 32 | implemented.</p></div><div class="refsect1"><a name="idm214198767552"></a><h2 id="Notes">Notes<a class="headerlink" title="Permalink to this headline" href="#Notes">¶</a></h2><p>This interface is provided by the reference |
663996b3 MS |
33 | implementation of APIs for controlling boot-time |
34 | read-ahead and distributed with the systemd | |
35 | package. The algorithms it implements are simple, and | |
36 | can easily be reimplemented in daemons if it is | |
37 | important to support this interface without using the | |
38 | reference implementation. See the respective function | |
60f067b4 | 39 | man pages for details.</p><p>In addition, for details about the algorithms, |
663996b3 MS |
40 | check the liberally licensed reference implementation |
41 | sources: | |
42 | <a class="ulink" href="http://cgit.freedesktop.org/systemd/systemd/plain/src/readahead/sd-readahead.c" target="_top">http://cgit.freedesktop.org/systemd/systemd/plain/src/readahead/sd-readahead.c</a> | |
43 | and <a class="ulink" href="http://cgit.freedesktop.org/systemd/systemd/plain/src/systemd/sd-readahead.h" target="_top">http://cgit.freedesktop.org/systemd/systemd/plain/src/systemd/sd-readahead.h</a></p><p>These APIs are implemented in the reference | |
44 | implementation's drop-in | |
45 | <code class="filename">sd-readahead.c</code> and | |
46 | <code class="filename">sd-readahead.h</code> files. It is | |
47 | recommended that applications consuming these APIs copy | |
48 | the implementation into their source tree, either | |
49 | verbatim or in excerpts. These interfaces are | |
50 | currently not available in a dynamic library.</p><p>The functions provided by this interface become | |
51 | NOPs when -DDISABLE_SYSTEMD is set during | |
52 | compilation. In addition, if | |
53 | <code class="filename">sd-readhead.c</code> is compiled on | |
e842803a | 54 | non-Linux systems it becomes NOPs.</p></div><div class="refsect1"><a name="idm214198760976"></a><h2 id="See Also">See Also<a class="headerlink" title="Permalink to this headline" href="#See%20Also">¶</a></h2><p> |
663996b3 MS |
55 | <a href="systemd.html"><span class="citerefentry"><span class="refentrytitle">systemd</span>(1)</span></a>, |
56 | <a href="sd_readahead.html"><span class="citerefentry"><span class="refentrytitle">sd_readahead</span>(3)</span></a>, | |
57 | <a href="sd-daemon.html"><span class="citerefentry"><span class="refentrytitle">sd-daemon</span>(3)</span></a> | |
58 | </p></div></div></body></html> |