File: readahead.2

package info (click to toggle)
manpages-ja 0.5.0.0.20080615-1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 20,508 kB
  • ctags: 1
  • sloc: sh: 13,690; perl: 157; makefile: 114
file content (96 lines) | stat: -rw-r--r-- 3,071 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
.\" Hey Emacs! This file is -*- nroff -*- source.
.\"
.\" This manpage is Copyright (C) 2004, Michael Kerrisk
.\"
.\" Permission is granted to make and distribute verbatim copies of this
.\" manual provided the copyright notice and this permission notice are
.\" preserved on all copies.
.\"
.\" Permission is granted to copy and distribute modified versions of this
.\" manual under the conditions for verbatim copying, provided that the
.\" entire resulting derived work is distributed under the terms of a
.\" permission notice identical to this one.
.\"
.\" Since the Linux kernel and libraries are constantly changing, this
.\" manual page may be incorrect or out-of-date.  The author(s) assume no
.\" responsibility for errors or omissions, or for damages resulting from
.\" the use of the information contained herein.
.\"
.\" Formatted or processed versions of this manual, if unaccompanied by
.\" the source, must acknowledge the copyright and authors of this work.
.\"
.\" 2004-05-40 Created by Michael Kerrisk <mtk.manpages@gmail.com>
.\" 2004-10-05 aeb, minor correction
.\"
.\" Japanese Version Copyright (c) 2005 Akihiro MOTOKI
.\"         all rights reserved.
.\" Translated 2005-02-26, Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>
.\"
.\"WORD:	page cache	ڡå
.\"WORD:	file descriptor	ե뵭һ
.\"
.TH READAHEAD 2 2007-07-26 "Linux" "Linux Programmer's Manual"
.SH ̾
readahead \- äƥեڡåɤ߹
.SH 
.nf
.B #define _GNU_SOURCE
.B #include <fcntl.h>
.sp
.BI "ssize_t readahead(int " fd ", off64_t " offset ", size_t " count );
.fi
.SH 
.BR readahead ()
ϡθƱե뤫Υǡɤ߹߻˥ǥ I/O 
ư (block) ʤ褦ˡäƥեƤ
ڡåɤ߹ࡣ
.I fd
ɤ߹ߤԤե̤ե롦ǥץǤ롣
.I offset
ϥǡɤ߹߳ϰ֤ꤷ
.I count
ɤ߹ǡΥХȿꤹ롣
ǥ I/O ϥڡñ̤Ǽ¹ԤΤǡ
ºݤˤ
.I offset
ϥڡڤ겼졢ɤ߹ߥХȿ
.I "(offset+count)"
꾮ʤΥڡޤڤ夲롣
.BR readahead ()
ϥեۤϰϤޤɤ߽ФԤȤϤʤޤ
.BR readahead ()
ϻꤷǡɤ߹ߤޤ (block) 롣
.I fd
ǻȤ줿ץѤΥեΥե륪եåȤθͤ
ѹʤ
.SH ֤
.BR readahead ()
 0 ֤Ԥ \-1 ֤
.I errno
˥顼θ򼨤ͤꤹ롣
.SH 顼
.TP
.B EBADF
.I fd
ͭʥե롦ǥץǤʤޤ
ɤ߹Ѥ˥ץ󤵤Ƥʤ
.TP
.B EINVAL
.I fd
ȤƤե뤬
.BR readahead ()
ԤȤǤʤפΥեǤä
.SH С
.BR readahead ()
ƥॳ Linux 2.4.13 о줷
glibc ǤΥݡȤ glibc С 2.3 ʹߤǹԤƤ롣
.SH 
.BR readahead ()
ƥॳ Linux ͭǤꡢܿθץǤ
Ѥ򤱤٤Ǥ롣
.SH Ϣ
.BR lseek (2),
.BR madvise (2),
.BR mmap (2),
.BR posix_fadvise (2),
.BR read (2)