]> git.proxmox.com Git - systemd.git/blame - man/sd-readahead.3
Imported Upstream version 215
[systemd.git] / man / sd-readahead.3
CommitLineData
14228c0d 1'\" t
e842803a 2.TH "SD\-READAHEAD" "3" "" "systemd 215" "sd-readahead"
14228c0d
MB
3.\" -----------------------------------------------------------------
4.\" * Define some portability stuff
5.\" -----------------------------------------------------------------
6.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
7.\" http://bugs.debian.org/507673
8.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
9.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
10.ie \n(.g .ds Aq \(aq
11.el .ds Aq '
12.\" -----------------------------------------------------------------
13.\" * set default formatting
14.\" -----------------------------------------------------------------
15.\" disable hyphenation
16.nh
17.\" disable justification (adjust text to left margin only)
18.ad l
19.\" -----------------------------------------------------------------
20.\" * MAIN CONTENT STARTS HERE *
21.\" -----------------------------------------------------------------
22.SH "NAME"
23sd-readahead \- Reference implementation of APIs for controlling boot\-time read\-ahead
24.SH "SYNOPSIS"
25.sp
26.ft B
27.nf
28#include "sd\-readahead\&.h"
29.fi
30.ft
31.SH "DESCRIPTION"
32.PP
33sd\-readahead\&.c
34and
35sd\-readahead\&.h
36provide a reference implementation for APIs for controlling boot\-time read\-ahead, as implemented by the read\-ahead subsystem of the
37\fBsystemd\fR(1)
38init system\&.
39.PP
40See
41\fBsd_readahead\fR(3)
42for more information about the function implemented\&.
43.SH "NOTES"
44.PP
45This 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\&.
46.PP
60f067b4 47In addition, for details about the algorithms, check the liberally licensed reference implementation sources:
14228c0d
MB
48\m[blue]\fB\%http://cgit.freedesktop.org/systemd/systemd/plain/src/readahead/sd-readahead.c\fR\m[]
49and
50\m[blue]\fB\%http://cgit.freedesktop.org/systemd/systemd/plain/src/systemd/sd-readahead.h\fR\m[]
51.PP
52These APIs are implemented in the reference implementation\*(Aqs drop\-in
53sd\-readahead\&.c
54and
55sd\-readahead\&.h
56files\&. 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\&.
57.PP
58The functions provided by this interface become NOPs when \-DDISABLE_SYSTEMD is set during compilation\&. In addition, if
59sd\-readhead\&.c
60is compiled on non\-Linux systems it becomes NOPs\&.
61.SH "SEE ALSO"
62.PP
63\fBsystemd\fR(1),
64\fBsd_readahead\fR(3),
65\fBsd-daemon\fR(3)