Debian Codegraph @

templates/man2/getcpu.2.pot

raw
1 # SOME DESCRIPTIVE TITLE
2 # Copyright (C) YEAR Free Software Foundation, Inc.
3 # This file is distributed under the same license as the PACKAGE package.
4 # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
5 #
6 #, fuzzy
7 msgid ""
8 msgstr ""
9 "Project-Id-Version: PACKAGE VERSION\n"
10 "POT-Creation-Date: 2026-06-05 06:25+0200\n"
11 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
12 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13 "Language-Team: LANGUAGE <[email protected]>\n"
14 "Language: \n"
15 "MIME-Version: 1.0\n"
16 "Content-Type: text/plain; charset=UTF-8\n"
17 "Content-Transfer-Encoding: 8bit\n"
18
19 #. type: TH
20 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
21 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
22 #, no-wrap
23 msgid "getcpu"
24 msgstr ""
25
26 #. type: TH
27 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
28 #: opensuse-tumbleweed
29 #, no-wrap
30 msgid "2026-02-08"
31 msgstr ""
32
33 #. type: TH
34 #: archlinux debian-unstable
35 #, no-wrap
36 msgid "Linux man-pages 6.18"
37 msgstr ""
38
39 #. type: SH
40 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
41 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
42 #, no-wrap
43 msgid "NAME"
44 msgstr ""
45
46 #. type: Plain text
47 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
48 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
49 msgid ""
50 "getcpu - determine CPU and NUMA node on which the calling thread is running"
51 msgstr ""
52
53 #. type: SH
54 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
55 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
56 #, no-wrap
57 msgid "LIBRARY"
58 msgstr ""
59
60 #. type: Plain text
61 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
62 #: opensuse-leap-16-1 opensuse-tumbleweed
63 msgid "Standard C library (I<libc>,\\ I<-lc>)"
64 msgstr ""
65
66 #. type: SH
67 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
68 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
69 #, no-wrap
70 msgid "SYNOPSIS"
71 msgstr ""
72
73 #. type: Plain text
74 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
75 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
76 #, no-wrap
77 msgid ""
78 "B<#define _GNU_SOURCE> /* See feature_test_macros(7) */\n"
79 "B<#include E<lt>sched.hE<gt>>\n"
80 msgstr ""
81
82 #. type: Plain text
83 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
84 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
85 #, no-wrap
86 msgid "B<int getcpu(unsigned int *_Nullable >I<cpu>B<, unsigned int *_Nullable >I<node>B<);>\n"
87 msgstr ""
88
89 #. type: SH
90 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
91 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
92 #, no-wrap
93 msgid "DESCRIPTION"
94 msgstr ""
95
96 #. type: Plain text
97 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
98 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
99 msgid ""
100 "The B<getcpu>() system call identifies the processor and node on which the "
101 "calling thread or process is currently running and writes them into the "
102 "integers pointed to by the I<cpu> and I<node> arguments. The processor is a "
103 "unique small integer identifying a CPU. The node is a unique small "
104 "identifier identifying a NUMA node. When either I<cpu> or I<node> is NULL "
105 "nothing is written to the respective pointer."
106 msgstr ""
107
108 #. type: Plain text
109 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
110 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
111 msgid ""
112 "The information placed in I<cpu> is guaranteed to be current only at the "
113 "time of the call: unless the CPU affinity has been fixed using "
114 "B<sched_setaffinity>(2), the kernel might change the CPU at any time. "
115 "(Normally this does not happen because the scheduler tries to minimize "
116 "movements between CPUs to keep caches hot, but it is possible.) The caller "
117 "must allow for the possibility that the information returned in I<cpu> and "
118 "I<node> is no longer current by the time the call returns."
119 msgstr ""
120
121 #. type: SH
122 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
123 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
124 #, no-wrap
125 msgid "RETURN VALUE"
126 msgstr ""
127
128 #. type: Plain text
129 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
130 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
131 msgid ""
132 "On success, 0 is returned. On error, -1 is returned, and I<errno> is set to "
133 "indicate the error."
134 msgstr ""
135
136 #. type: SH
137 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
138 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
139 #, no-wrap
140 msgid "ERRORS"
141 msgstr ""
142
143 #. type: TP
144 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
145 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
146 #, no-wrap
147 msgid "B<EFAULT>"
148 msgstr ""
149
150 #. type: Plain text
151 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
152 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
153 msgid "Arguments point outside the calling process's address space."
154 msgstr ""
155
156 #. type: SH
157 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
158 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
159 #, no-wrap
160 msgid "STANDARDS"
161 msgstr ""
162
163 #. type: Plain text
164 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
165 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
166 msgid "Linux."
167 msgstr ""
168
169 #. type: SH
170 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
171 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
172 #, no-wrap
173 msgid "HISTORY"
174 msgstr ""
175
176 #. type: Plain text
177 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
178 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
179 msgid "Linux 2.6.19 (x86-64 and i386), glibc 2.29."
180 msgstr ""
181
182 #. type: SS
183 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
184 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
185 #, no-wrap
186 msgid "C library/kernel differences"
187 msgstr ""
188
189 #. type: Plain text
190 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
191 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
192 msgid "The kernel system call has a third argument:"
193 msgstr ""
194
195 #. type: Plain text
196 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
197 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
198 #, no-wrap
199 msgid ""
200 "B<int getcpu(unsigned int *>I<cpu>B<, unsigned int *>I<node>B<,>\n"
201 "B< struct getcpu_cache *>I<tcache>B<);>\n"
202 msgstr ""
203
204 #. type: Plain text
205 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
206 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
207 msgid ""
208 "The I<tcache> argument is unused since Linux 2.6.24, and (when invoking the "
209 "system call directly) should be specified as NULL, unless portability to "
210 "Linux 2.6.23 or earlier is required."
211 msgstr ""
212
213 #
214 #
215 #. commit 4307d1e5ada595c87f9a4d16db16ba5edb70dcb1
216 #. Author: Ingo Molnar <[email protected]>
217 #. Date: Wed Nov 7 18:37:48 2007 +0100
218 #. x86: ignore the sys_getcpu() tcache parameter
219 #. ===== Before Linux 2.6.24: =====
220 #. .I tcache
221 #. is a pointer to a
222 #. .IR "struct getcpu_cache"
223 #. that is used as a cache by
224 #. .BR getcpu ().
225 #. The caller should put the cache into a thread-local variable
226 #. if the process is multithreaded,
227 #. because the cache cannot be shared between different threads.
228 #. .I tcache
229 #. can be NULL.
230 #. If it is not NULL
231 #. .BR getcpu ()
232 #. will use it to speed up operation.
233 #. The information inside the cache is private to the system call
234 #. and should not be accessed by the user program.
235 #. The information placed in the cache can change between Linux releases.
236 #. When no cache is specified
237 #. .BR getcpu ()
238 #. will be slower,
239 #. but always retrieve the current CPU and node information.
240 #. With a cache
241 #. .BR getcpu ()
242 #. is faster.
243 #. However, the cached information is updated only once per jiffy (see
244 #. .BR time (7)).
245 #. This means that the information could theoretically be out of date,
246 #. although in practice the scheduler's attempt to maintain
247 #. soft CPU affinity means that the information is unlikely to change
248 #. over the course of the caching interval.
249 #. type: Plain text
250 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
251 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
252 msgid ""
253 "In Linux 2.6.23 and earlier, if the I<tcache> argument was non-NULL, then it "
254 "specified a pointer to a caller-allocated buffer in thread-local storage "
255 "that was used to provide a caching mechanism for B<getcpu>(). Use of the "
256 "cache could speed B<getcpu>() calls, at the cost that there was a very "
257 "small chance that the returned information would be out of date. The "
258 "caching mechanism was considered to cause problems when migrating threads "
259 "between CPUs, and so the argument is now ignored."
260 msgstr ""
261
262 #. type: SH
263 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
264 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
265 #, no-wrap
266 msgid "NOTES"
267 msgstr ""
268
269 #. type: Plain text
270 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
271 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
272 msgid ""
273 "Linux makes a best effort to make this call as fast as possible. (On some "
274 "architectures, this is done via an implementation in the B<vdso>(7).) The "
275 "intention of B<getcpu>() is to allow programs to make optimizations with "
276 "per-CPU data or for NUMA optimization."
277 msgstr ""
278
279 #. type: SH
280 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
281 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
282 #, no-wrap
283 msgid "SEE ALSO"
284 msgstr ""
285
286 #. type: Plain text
287 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
288 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
289 msgid ""
290 "B<mbind>(2), B<sched_setaffinity>(2), B<set_mempolicy>(2), "
291 "B<sched_getcpu>(3), B<cpuset>(7), B<vdso>(7)"
292 msgstr ""
293
294 #. type: TH
295 #: debian-trixie
296 #, no-wrap
297 msgid "2024-05-02"
298 msgstr ""
299
300 #. type: TH
301 #: debian-trixie
302 #, no-wrap
303 msgid "Linux man-pages 6.9.1"
304 msgstr ""
305
306 #. type: Plain text
307 #: debian-trixie
308 msgid "Standard C library (I<libc>, I<-lc>)"
309 msgstr ""
310
311 #. type: TH
312 #: fedora-44 fedora-rawhide
313 #, no-wrap
314 msgid "2024-07-23"
315 msgstr ""
316
317 #. type: TH
318 #: fedora-44 fedora-rawhide
319 #, no-wrap
320 msgid "Linux man-pages 6.13"
321 msgstr ""
322
323 #. type: TH
324 #: mageia-cauldron
325 #, no-wrap
326 msgid "Linux man-pages 6.17"
327 msgstr ""
328
329 #. type: TH
330 #: opensuse-leap-16-1 opensuse-tumbleweed
331 #, no-wrap
332 msgid "Linux man-pages (unreleased)"
333 msgstr ""