File: get_mempolicy.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 (177 lines) | stat: -rw-r--r-- 4,738 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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
.\" Copyright 2003,2004 Andi Kleen, SuSE Labs.
.\"
.\" 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.
.\"
.\" 2006-02-03, mtk, substantial wording changes and other improvements
.\"
.\" Japanese Version Copyright (c) 2006 Akihiro MOTOKI
.\"         all rights reserved.
.\" Translated 2006-08-14, Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>, LDP v2.39
.\"
.TH GET_MEMPOLICY 2 2006-02-07 "Linux" "Linux Programmer's Manual"
.SH ̾
get_mempolicy \- ץ NUMA Υݥꥷ
.SH 
.B "#include <numaif.h>"
.nf
.sp
.BI "int get_mempolicy(int *" policy ", unsigned long *" nodemask ,
.BI "                  unsigned long " maxnode ", unsigned long " addr ,
.BI "                  unsigned long " flags );
.fi
.\" FIXME rewrite this DESCRIPTION. it is confusing.
.SH 
.BR get_mempolicy ()
ϡƤӽФץ⤷ϻꤵ줿ꥢɥ쥹
NUMA ݥꥷ
.I flags
˽äƼ롣

NUMA (оΥꥢ) ޥǤϡCPU ˤ
ꥳȥ餬ۤʤꡢΥۤʤäƤ롣
ݥꥷϡɤΥΡɤΥ򤽤Υץ
Ƥ뤫ΤǤ롣

.I flags
 0 ꤵ줿硢
.RB ( set_mempolicy (2)
ꤵ줿)
ƤӽФץΥǥեȥݥꥷ˴ؤ֤

.I flags

.B MPOL_F_ADDR
ꤵ줿硢
.I addr
ǻꤵ줿ꥢɥ쥹ŬѤƤݥꥷ˴ؤ֤
.BR set_mempolicy (2)
Ȥä
.I addr
ޤڡФƥݥꥷꤵƤˤϡ
֤ݥꥷϥץΥǥեȥݥꥷȰ㤦Ȥ롣

.I policy
 NULL ʳξ硢ݥꥷ֤Τ
.I policy
Ȥ롣
.I nodemask
 NULL ʳξ硢ΥݥꥷбΡɥޥ֤Τ
.I nodemask
Ȥ롣
.I maxnode

.I nodemask
˳ǼǤӥåȿ 1 ­ͤꤹ롣
ӥåȿϾ
.I "unsigned long"
ܿڤ夲롣
.\"
.\" If
.\" .I flags
.\" specifies both
.\" .B MPOL_F_NODE
.\" and
.\" .BR MPOL_F_ADDR ,
.\" then
.\" .I policy
.\" instead returns the number of the node on which the address
.\" .I addr
.\" is allocated.
.\"
.\" If
.\" .I flags
.\" specifies
.\" .B MPOL_F_NODE
.\" but not
.\" .BR MPOL_F_ADDR ,
.\" and the process's current policy is
.\" .BR MPOL_INTERLEAVE ,
.\" then
.\" checkme: Andi's text below says that the info is returned in
.\" 'nodemask', not 'policy':
.\" .I policy
.\" instead returns the number of the next node that will be used for
.\" interleaving allocation.
.\" FIXME .
.\" The other valid flag is
.\" .I MPOL_F_NODE.
.\" It is only valid when the policy is
.\" .I MPOL_INTERLEAVE.
.\" In this case not the interleave mask, but an unsigned long with the next
.\" node that would be used for interleaving is returned in
.\" .I nodemask.
.\" Other flag values are reserved.

ǽʥݥꥷγפˤĤƤ
.BR set_mempolicy (2)
򻲾ȡ
.SH ֤
ȡ
.BR get_mempolicy ()
 0 ֤顼ξ硢\-1 ֤
.I errno
˥顼򼨤ͤꤹ롣
.\" .SH ERRORS
.\" FIXME -- no errors are listed on this page
.\" .
.\" .TP
.\" .B EINVAL
.\" .I nodemask
.\" is non-NULL, and
.\" .I maxnode
.\" is too small;
.\" or
.\" .I flags
.\" specified values other than
.\" .B MPOL_F_NODE
.\" or
.\" .BR MPOL_F_ADDR ;
.\" or
.\" .I flags
.\" specified
.\" .B MPOL_F_ADDR
.\" and
.\" .I addr
.\" is NULL.
.\" (And there are other
.\" .B EINVAL
.\" cases.)
.SH 
Υƥॳ Linux ȼǤ롣
.SH 
Υޥ˥奢ڡϴǤϤʤ
ˤϡ
.B MPOL_F_NODE
ե饰ξܺ٤ˤĤƽ񤫤Ƥʤ
.B MPOL_F_NODE
ե饰
.BR get_mempolicy ()
ưѹΤǤ롣
˽񤤤ƤʤΤϰտŪʤΤǤ:
Υե饰ϥץꥱˤäƻȤȤտޤΤǤϤʤ
ͥξΥСǡΥե饰ưѹ뤫⤷ʤ
뤫⤷ʤ
.B Υե饰Ѥʤȡ
.SS Сȥ饤֥Ǥб
.BR mbind (2)
ȡ
.SH Ϣ
.BR mbind (2),
.BR set_mempolicy (2),
.BR numactl (8),
.BR numa (3)