Debian Codegraph @

templates/man2/subpage_prot.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:45+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 "subpage_prot"
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 "subpage_prot - define a subpage protection for an address range"
50 msgstr ""
51
52 #. type: SH
53 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
54 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
55 #, no-wrap
56 msgid "LIBRARY"
57 msgstr ""
58
59 #. type: Plain text
60 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
61 #: opensuse-leap-16-1 opensuse-tumbleweed
62 msgid "Standard C library (I<libc>,\\ I<-lc>)"
63 msgstr ""
64
65 #. type: SH
66 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
67 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
68 #, no-wrap
69 msgid "SYNOPSIS"
70 msgstr ""
71
72 #. type: Plain text
73 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
74 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
75 #, no-wrap
76 msgid ""
77 "B<#include E<lt>sys/syscall.hE<gt>> /* Definition of B<SYS_*> constants */\n"
78 "B<#include E<lt>unistd.hE<gt>>\n"
79 msgstr ""
80
81 #. type: Plain text
82 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
83 #: opensuse-leap-16-1 opensuse-tumbleweed
84 #, no-wrap
85 msgid ""
86 "B<int syscall(SYS_subpage_prot, unsigned long >I<addr>B<, unsigned long >I<size>B<,>\n"
87 "B< uint32_t *>I<map>B<);>\n"
88 msgstr ""
89
90 #. type: Plain text
91 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
92 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
93 msgid ""
94 "I<Note>: glibc provides no wrapper for B<subpage_prot>(), necessitating the "
95 "use of B<syscall>(2)."
96 msgstr ""
97
98 #. type: SH
99 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
100 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
101 #, no-wrap
102 msgid "DESCRIPTION"
103 msgstr ""
104
105 #. type: Plain text
106 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
107 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
108 msgid ""
109 "The PowerPC-specific B<subpage_prot>() system call provides the facility to "
110 "control the access permissions on individual 4\\ kB subpages on systems "
111 "configured with a page size of 64\\ kB."
112 msgstr ""
113
114 #. type: Plain text
115 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
116 #: opensuse-leap-16-1 opensuse-tumbleweed
117 msgid ""
118 "The protection map is applied to the memory pages in the region starting at "
119 "I<addr> and continuing for I<size> bytes. Both of these arguments must be "
120 "aligned to a 64-kB boundary."
121 msgstr ""
122
123 #. type: Plain text
124 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
125 #: opensuse-leap-16-1 opensuse-tumbleweed
126 msgid ""
127 "The protection map is specified in the buffer pointed to by I<map>. The map "
128 "has 2 bits per 4\\ kB subpage; thus each 32-bit word specifies the "
129 "protections of 16 4\\ kB subpages inside a 64\\ kB page (so, the number of "
130 "32-bit words pointed to by I<map> should equate to the number of 64-kB pages "
131 "specified by I<size>). Each 2-bit field in the protection map is either 0 "
132 "to allow any access, 1 to prevent writes, or 2 or 3 to prevent all accesses."
133 msgstr ""
134
135 #. type: SH
136 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
137 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
138 #, no-wrap
139 msgid "RETURN VALUE"
140 msgstr ""
141
142 #. type: Plain text
143 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
144 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
145 msgid ""
146 "On success, B<subpage_prot>() returns 0. Otherwise, one of the error codes "
147 "specified below is returned."
148 msgstr ""
149
150 #. type: SH
151 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
152 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
153 #, no-wrap
154 msgid "ERRORS"
155 msgstr ""
156
157 #. type: TP
158 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
159 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
160 #, no-wrap
161 msgid "B<EFAULT>"
162 msgstr ""
163
164 #. type: Plain text
165 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
166 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
167 msgid "The buffer referred to by I<map> is not accessible."
168 msgstr ""
169
170 #. type: TP
171 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
172 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
173 #, no-wrap
174 msgid "B<EINVAL>"
175 msgstr ""
176
177 #. type: Plain text
178 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
179 #: opensuse-leap-16-1 opensuse-tumbleweed
180 msgid ""
181 "The I<addr> or I<size> arguments are incorrect. Both of these arguments "
182 "must be aligned to a multiple of the system page size, and they must not "
183 "refer to a region outside of the address space of the process or to a region "
184 "that consists of huge pages."
185 msgstr ""
186
187 #. type: TP
188 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
189 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
190 #, no-wrap
191 msgid "B<ENOMEM>"
192 msgstr ""
193
194 #. type: Plain text
195 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
196 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
197 msgid "Out of memory."
198 msgstr ""
199
200 #. type: SH
201 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
202 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
203 #, no-wrap
204 msgid "STANDARDS"
205 msgstr ""
206
207 #. type: Plain text
208 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
209 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
210 msgid "Linux."
211 msgstr ""
212
213 #. type: SH
214 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
215 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
216 #, no-wrap
217 msgid "HISTORY"
218 msgstr ""
219
220 #. type: Plain text
221 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
222 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
223 msgid "Linux 2.6.25 (PowerPC)."
224 msgstr ""
225
226 #. type: Plain text
227 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
228 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
229 msgid ""
230 "The system call is provided only if the kernel is configured with "
231 "B<CONFIG_PPC_64K_PAGES>."
232 msgstr ""
233
234 #. type: SH
235 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
236 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
237 #, no-wrap
238 msgid "NOTES"
239 msgstr ""
240
241 #. type: Plain text
242 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
243 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
244 msgid ""
245 "Normal page protections (at the 64-kB page level) also apply; the subpage "
246 "protection mechanism is an additional constraint, so putting 0 in a 2-bit "
247 "field won't allow writes to a page that is otherwise write-protected."
248 msgstr ""
249
250 #. type: SS
251 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
252 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
253 #, no-wrap
254 msgid "Rationale"
255 msgstr ""
256
257 #. In the initial implementation, it was the case that:
258 #. In fact the whole process is switched to use 4 kB hardware pages when the
259 #. subpage_prot system call is used, but this could be improved in future
260 #. to switch only the affected segments.
261 #. But Paul Mackerass says (Oct 2010): I'm pretty sure we now only switch
262 #. the affected segment, not the whole process.
263 #. type: Plain text
264 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
265 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
266 msgid ""
267 "This system call is provided to assist writing emulators that operate using "
268 "64-kB pages on PowerPC systems. When emulating systems such as x86, which "
269 "uses a smaller page size, the emulator can no longer use the memory-"
270 "management unit (MMU) and normal system calls for controlling page "
271 "protections. (The emulator could emulate the MMU by checking and possibly "
272 "remapping the address for each memory access in software, but that is "
273 "slow.) The idea is that the emulator supplies an array of protection masks "
274 "to apply to a specified range of virtual addresses. These masks are applied "
275 "at the level where hardware page-table entries (PTEs) are inserted into the "
276 "hardware page table based on the Linux PTEs, so the Linux PTEs are not "
277 "affected. Implicit in this is that the regions of the address space that "
278 "are protected are switched to use 4-kB hardware pages rather than 64-kB "
279 "hardware pages (on machines with hardware 64-kB page support)."
280 msgstr ""
281
282 #. type: SH
283 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
284 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
285 #, no-wrap
286 msgid "SEE ALSO"
287 msgstr ""
288
289 #. type: Plain text
290 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
291 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
292 msgid "B<mprotect>(2), B<syscall>(2)"
293 msgstr ""
294
295 #. type: Plain text
296 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
297 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
298 msgid ""
299 "I<Documentation/admin-guide/mm/hugetlbpage.rst> in the Linux kernel source "
300 "tree"
301 msgstr ""
302
303 #. type: TH
304 #: debian-trixie
305 #, no-wrap
306 msgid "2024-05-02"
307 msgstr ""
308
309 #. type: TH
310 #: debian-trixie
311 #, no-wrap
312 msgid "Linux man-pages 6.9.1"
313 msgstr ""
314
315 #. type: Plain text
316 #: debian-trixie
317 msgid "Standard C library (I<libc>, I<-lc>)"
318 msgstr ""
319
320 #. type: Plain text
321 #: debian-trixie
322 #, no-wrap
323 msgid ""
324 "B<int syscall(SYS_subpage_prot, unsigned long >I<addr>B<, unsigned long >I<len>B<,>\n"
325 "B< uint32_t *>I<map>B<);>\n"
326 msgstr ""
327
328 #. type: Plain text
329 #: debian-trixie
330 msgid ""
331 "The protection map is applied to the memory pages in the region starting at "
332 "I<addr> and continuing for I<len> bytes. Both of these arguments must be "
333 "aligned to a 64-kB boundary."
334 msgstr ""
335
336 #. type: Plain text
337 #: debian-trixie
338 msgid ""
339 "The protection map is specified in the buffer pointed to by I<map>. The map "
340 "has 2 bits per 4\\ kB subpage; thus each 32-bit word specifies the "
341 "protections of 16 4\\ kB subpages inside a 64\\ kB page (so, the number of "
342 "32-bit words pointed to by I<map> should equate to the number of 64-kB pages "
343 "specified by I<len>). Each 2-bit field in the protection map is either 0 to "
344 "allow any access, 1 to prevent writes, or 2 or 3 to prevent all accesses."
345 msgstr ""
346
347 #. type: Plain text
348 #: debian-trixie
349 msgid ""
350 "The I<addr> or I<len> arguments are incorrect. Both of these arguments must "
351 "be aligned to a multiple of the system page size, and they must not refer to "
352 "a region outside of the address space of the process or to a region that "
353 "consists of huge pages."
354 msgstr ""
355
356 #. type: TH
357 #: fedora-44 fedora-rawhide
358 #, no-wrap
359 msgid "2024-11-17"
360 msgstr ""
361
362 #. type: TH
363 #: fedora-44 fedora-rawhide
364 #, no-wrap
365 msgid "Linux man-pages 6.13"
366 msgstr ""
367
368 #. type: TH
369 #: mageia-cauldron
370 #, no-wrap
371 msgid "Linux man-pages 6.17"
372 msgstr ""
373
374 #. type: TH
375 #: opensuse-leap-16-1 opensuse-tumbleweed
376 #, no-wrap
377 msgid "Linux man-pages (unreleased)"
378 msgstr ""