diff --git a/Makefile.am b/Makefile.am
index 11abadffe33..c06f1ecb560 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -456,6 +456,7 @@ MANPAGES = \
man/systemd.exec.5 \
man/daemon.7 \
man/sd-daemon.7 \
+ man/sd-readahead.7 \
man/runlevel.8 \
man/telinit.8 \
man/halt.8 \
diff --git a/man/sd-daemon.xml b/man/sd-daemon.xml
index e3ac68eed31..cbfe28f8425 100644
--- a/man/sd-daemon.xml
+++ b/man/sd-daemon.xml
@@ -155,7 +155,8 @@
daemon7,
systemd.service5,
systemd.socket5,
- fprintf3
+ fprintf3,
+ sd-readahead7
diff --git a/man/sd-readahead.xml b/man/sd-readahead.xml
new file mode 100644
index 00000000000..819691e4de2
--- /dev/null
+++ b/man/sd-readahead.xml
@@ -0,0 +1,117 @@
+
+
+
+
+
+
+
+
+ sd-readahead
+ systemd
+
+
+
+ Developer
+ Lennart
+ Poettering
+ lennart@poettering.net
+
+
+
+
+
+ sd-readahead
+ 7
+
+
+
+ sd-readahead
+ Reference implementation of APIs for
+ controlling boot-time read-ahead
+
+
+
+
+ #include "sd-readahead.h"
+
+
+
+
+ Description
+
+ sd-readahead.c and
+ sd-readahead.h provide a
+ reference implementation for APIs for controlling boot-time
+ read-ahead, as implemented by the read-ahead subsystem
+ of the
+ systemd1
+ init system.
+
+ See
+ sd_readahead3
+ for more information about the function
+ implemented.
+
+
+
+ Notes
+
+ This interface is provided by the reference
+ implementation of APIs for controlling boot-time
+ read-ahead and distributed with the systemd
+ package. The algorithms it implements are simple, and
+ can easily be reimplemented in daemons if it is
+ important to support this interface without using the
+ reference implementation. See the respective function
+ man pages for details.
+
+ In addition, for details about the algorithms
+ check the liberally licensed reference implementation
+ sources:
+
+ resp.
+
+ These APIs are implemented in the reference
+ implementation's drop-in
+ sd-readahead.c and
+ sd-readahead.h files. It is
+ recommended that applications consuming these APIs copy
+ the implementation into their source tree, either
+ verbatim or in excerpts. These interfaces are
+ currently not available in a dynamic library.
+
+ The functions provided by this interface become
+ NOPs when -DDISABLE_SYSTEMD is set during
+ compilation. In addition, if
+ sd-readhead.c is compiled on
+ non-Linux systems it becomes NOPs.
+
+
+
+ See Also
+
+ systemd1,
+ sd_readahead3,
+ sd-daemon7
+
+
+
+
diff --git a/man/sd_readahead.xml b/man/sd_readahead.xml
index 178f907afa9..ac54dc48ff8 100644
--- a/man/sd_readahead.xml
+++ b/man/sd_readahead.xml
@@ -44,7 +44,7 @@
sd_readahead
- Control ongoing disk read-ahead operations
+ Control ongoing disk boot-time read-ahead operations
@@ -62,7 +62,7 @@
Description
sd_readahead() may be
called by programs involved with early boot-up to
- control ongoing disk read-ahead operations. It may be
+ control ongoing boot-time disk read-ahead operations. It may be
used to terminate read-ahead operations in case an
uncommon disk access pattern is to be expected and
hence read-ahead replay or collection is unlikely to
@@ -115,12 +115,12 @@
Notes
This function is provided by the reference
- implementation of APIs for new-style daemons and
- distributed with the systemd package. The algorithm
- it implements is simple, and can easily be
- reimplemented in daemons if it is important to support
- this interface without using the reference
- implementation.
+ implementation of APIs for controlling boot-time
+ read-ahead and distributed with the systemd
+ package. The algorithm it implements is simple, and
+ can easily be reimplemented in daemons if it is
+ important to support this interface without using the
+ reference implementation.
Internally, this function creates a file in
/dev/.systemd/readahead/ which is
@@ -129,18 +129,18 @@
For details about the algorithm check the
liberally licensed reference implementation sources:
-
+
resp.
+ url="http://cgit.freedesktop.org/systemd/tree/src/sd-readahead.h"/>
sd_readahead() is
implemented in the reference implementation's drop-in
- sd-daemon.c and
- sd-daemon.h files. It is
+ sd-readahead.c and
+ sd-readahead.h files. It is
recommended that applications consuming this API copy
the implementation into their source tree. For more
details about the reference implementation see
- sd_daemon7
+ sd-readahead7
If -DDISABLE_SYSTEMD is set during compilation
this function will always return 0 and otherwise
@@ -170,7 +170,7 @@ sd_readahead("noreplay");
See Also
systemd1,
- sd_daemon7,
+ sd-readahead7,
daemon7