1SD-READAHEAD(3)                  sd-readahead                  SD-READAHEAD(3)
2
3
4

NAME

6       sd-readahead - Reference implementation of APIs for controlling
7       boot-time read-ahead
8

SYNOPSIS

10       #include "sd-readahead.h"
11

DESCRIPTION

13       sd-readahead.c and sd-readahead.h provide a reference implementation
14       for APIs for controlling boot-time read-ahead, as implemented by the
15       read-ahead subsystem of the systemd(1) init system.
16
17       See sd_readahead(3) for more information about the function
18       implemented.
19

NOTES

21       This interface is provided by the reference implementation of APIs for
22       controlling boot-time read-ahead and distributed with the systemd
23       package. The algorithms it implements are simple, and can easily be
24       reimplemented in daemons if it is important to support this interface
25       without using the reference implementation. See the respective function
26       man pages for details.
27
28       In addition, for details about the algorithms, check the liberally
29       licensed reference implementation sources:
30       http://cgit.freedesktop.org/systemd/systemd/plain/src/readahead/sd-readahead.c
31       and
32       http://cgit.freedesktop.org/systemd/systemd/plain/src/systemd/sd-readahead.h
33
34       These APIs are implemented in the reference implementation's drop-in
35       sd-readahead.c and sd-readahead.h files. It is recommended that
36       applications consuming these APIs copy the implementation into their
37       source tree, either verbatim or in excerpts. These interfaces are
38       currently not available in a dynamic library.
39
40       The functions provided by this interface become NOPs when
41       -DDISABLE_SYSTEMD is set during compilation. In addition, if
42       sd-readhead.c is compiled on non-Linux systems it becomes NOPs.
43

SEE ALSO

45       systemd(1), sd_readahead(3), sd-daemon(3)
46
47
48
49systemd 219                                                    SD-READAHEAD(3)
Impressum