130
130
<para>For details about the algorithm check the
131
131
liberally licensed reference implementation sources:
132
<ulink url="http://cgit.freedesktop.org/systemd/tree/src/sd-readahead.c"/>
132
<ulink url="http://cgit.freedesktop.org/systemd/systemd/plain/src/readahead/sd-readahead.c"/>
134
url="http://cgit.freedesktop.org/systemd/tree/src/sd-readahead.h"/></para>
134
url="http://cgit.freedesktop.org/systemd/systemd/plain/src/systemd/sd-readahead.h"/></para>
136
136
<para><function>sd_readahead()</function> is
137
implemented in the reference implementation's
137
implemented in the reference implementation's drop-in
138
138
<filename>sd-readahead.c</filename> and
139
<filename>sd-readahead.h</filename> files. These
140
interfaces are available as shared library, which can
141
be compiled and linked to with the
142
<literal>libsystemd-daemon</literal>
143
<citerefentry><refentrytitle>pkg-config</refentrytitle><manvolnum>1</manvolnum></citerefentry>
144
file. Alternatively, applications consuming this API
145
may copy the implementation into their source
146
tree. For more details about the reference
148
<citerefentry><refentrytitle>sd-readahead</refentrytitle><manvolnum>7</manvolnum></citerefentry>.</para>
139
<filename>sd-readahead.h</filename> files. It is
140
recommended that applications consuming this API copy
141
the implementation into their source tree. For more
142
details about the reference implementation see
143
<citerefentry><refentrytitle>sd-readahead</refentrytitle><manvolnum>7</manvolnum></citerefentry></para>
150
<para>If the reference implementation is used as
151
drop-in files and -DDISABLE_SYSTEMD is set during
152
compilation this function will always return 0 and
153
otherwise become a NOP.</para>
145
<para>If -DDISABLE_SYSTEMD is set during compilation
146
this function will always return 0 and otherwise