Debian Codegraph @

templates/man2/sched_setattr.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:42+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 "sched_setattr"
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 "sched_setattr, sched_getattr - set and get scheduling policy and attributes"
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<#include E<lt>sched.hE<gt>> /* Definition of B<SCHED_*> constants */\n"
79 "B<#include E<lt>sys/syscall.hE<gt>> /* Definition of B<SYS_*> constants */\n"
80 "B<#include E<lt>unistd.hE<gt>>\n"
81 msgstr ""
82
83 #. type: Plain text
84 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
85 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
86 #, no-wrap
87 msgid ""
88 "B<int syscall(SYS_sched_setattr, pid_t >I<pid>B<, struct sched_attr *>I<attr>B<,>\n"
89 "B< unsigned int >I<flags>B<);>\n"
90 "B<int syscall(SYS_sched_getattr, pid_t >I<pid>B<, struct sched_attr *>I<attr>B<,>\n"
91 "B< unsigned int >I<size>B<, unsigned int >I<flags>B<);>\n"
92 msgstr ""
93
94 #. type: Plain text
95 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
96 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
97 msgid ""
98 "I<Note>: glibc provides no wrappers for these system calls, necessitating "
99 "the use of B<syscall>(2)."
100 msgstr ""
101
102 #. type: SH
103 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
104 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
105 #, no-wrap
106 msgid "DESCRIPTION"
107 msgstr ""
108
109 #. type: SS
110 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
111 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
112 #, no-wrap
113 msgid "sched_setattr()"
114 msgstr ""
115
116 #. type: Plain text
117 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
118 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
119 msgid ""
120 "The B<sched_setattr>() system call sets the scheduling policy and "
121 "associated attributes for the thread whose ID is specified in I<pid>. If "
122 "I<pid> equals zero, the scheduling policy and attributes of the calling "
123 "thread will be set."
124 msgstr ""
125
126 #. type: Plain text
127 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
128 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
129 msgid ""
130 "Currently, Linux supports the following \"normal\" (i.e., non-real-time) "
131 "scheduling policies as values that may be specified in I<policy>:"
132 msgstr ""
133
134 #. type: TP
135 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
136 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
137 #, no-wrap
138 msgid "B<SCHED_OTHER>"
139 msgstr ""
140
141 #. In the 2.6 kernel sources, SCHED_OTHER is actually called
142 #. SCHED_NORMAL.
143 #. type: Plain text
144 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
145 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
146 msgid "the standard round-robin time-sharing policy;"
147 msgstr ""
148
149 #. type: TP
150 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
151 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
152 #, no-wrap
153 msgid "B<SCHED_BATCH>"
154 msgstr ""
155
156 #. type: Plain text
157 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
158 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
159 msgid "for \"batch\" style execution of processes; and"
160 msgstr ""
161
162 #. type: TP
163 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
164 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
165 #, no-wrap
166 msgid "B<SCHED_IDLE>"
167 msgstr ""
168
169 #. type: Plain text
170 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
171 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
172 msgid "for running I<very> low priority background jobs."
173 msgstr ""
174
175 #. type: Plain text
176 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
177 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
178 msgid ""
179 "Various \"real-time\" policies are also supported, for special time-critical "
180 "applications that need precise control over the way in which runnable "
181 "threads are selected for execution. For the rules governing when a process "
182 "may use these policies, see B<sched>(7). The real-time policies that may be "
183 "specified in I<policy> are:"
184 msgstr ""
185
186 #. type: TP
187 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
188 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
189 #, no-wrap
190 msgid "B<SCHED_FIFO>"
191 msgstr ""
192
193 #. type: Plain text
194 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
195 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
196 msgid "a first-in, first-out policy; and"
197 msgstr ""
198
199 #. type: TP
200 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
201 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
202 #, no-wrap
203 msgid "B<SCHED_RR>"
204 msgstr ""
205
206 #. type: Plain text
207 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
208 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
209 msgid "a round-robin policy."
210 msgstr ""
211
212 #. type: Plain text
213 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
214 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
215 msgid "Linux also provides the following policy:"
216 msgstr ""
217
218 #. type: TP
219 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
220 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
221 #, no-wrap
222 msgid "B<SCHED_DEADLINE>"
223 msgstr ""
224
225 #. type: Plain text
226 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
227 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
228 msgid "a deadline scheduling policy; see B<sched>(7) for details."
229 msgstr ""
230
231 #. type: Plain text
232 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
233 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
234 msgid ""
235 "The I<attr> argument is a pointer to a structure that defines the new "
236 "scheduling policy and attributes for the specified thread. This structure "
237 "has the following form:"
238 msgstr ""
239
240 #. type: Plain text
241 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
242 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
243 #, no-wrap
244 msgid ""
245 "struct sched_attr {\n"
246 " u32 size; /* Size of this structure */\n"
247 " u32 sched_policy; /* Policy (SCHED_*) */\n"
248 " u64 sched_flags; /* Flags */\n"
249 " s32 sched_nice; /* Nice value (SCHED_OTHER,\n"
250 " SCHED_BATCH) */\n"
251 " u32 sched_priority; /* Static priority (SCHED_FIFO,\n"
252 " SCHED_RR) */\n"
253 " /* For SCHED_DEADLINE */\n"
254 " u64 sched_runtime;\n"
255 " u64 sched_deadline;\n"
256 " u64 sched_period;\n"
257 "\\&\n"
258 " /* Utilization hints */\n"
259 " u32 sched_util_min;\n"
260 " u32 sched_util_max;\n"
261 "};\n"
262 msgstr ""
263
264 #. type: Plain text
265 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
266 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
267 msgid "The fields of the I<sched_attr> structure are as follows:"
268 msgstr ""
269
270 #. type: TP
271 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
272 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
273 #, no-wrap
274 msgid "B<size>"
275 msgstr ""
276
277 #. type: Plain text
278 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
279 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
280 msgid ""
281 "This field should be set to the size of the structure in bytes, as in "
282 "I<sizeof(struct sched_attr)>. If the provided structure is smaller than the "
283 "kernel structure, any additional fields are assumed to be '0'. If the "
284 "provided structure is larger than the kernel structure, the kernel verifies "
285 "that all additional fields are 0; if they are not, B<sched_setattr>() fails "
286 "with the error B<E2BIG> and updates I<size> to contain the size of the "
287 "kernel structure."
288 msgstr ""
289
290 #. type: Plain text
291 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
292 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
293 msgid ""
294 "The above behavior when the size of the user-space I<sched_attr> structure "
295 "does not match the size of the kernel structure allows for future "
296 "extensibility of the interface. Malformed applications that pass oversize "
297 "structures won't break in the future if the size of the kernel I<sched_attr> "
298 "structure is increased. In the future, it could also allow applications "
299 "that know about a larger user-space I<sched_attr> structure to determine "
300 "whether they are running on an older kernel that does not support the larger "
301 "structure."
302 msgstr ""
303
304 #. type: TP
305 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
306 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
307 #, no-wrap
308 msgid "I<sched_policy>"
309 msgstr ""
310
311 #. type: Plain text
312 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
313 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
314 msgid ""
315 "This field specifies the scheduling policy, as one of the B<SCHED_*> values "
316 "listed above."
317 msgstr ""
318
319 #. type: TP
320 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
321 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
322 #, no-wrap
323 msgid "I<sched_flags>"
324 msgstr ""
325
326 #. type: Plain text
327 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
328 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
329 msgid ""
330 "This field contains zero or more of the following flags that are ORed "
331 "together to control scheduling behavior:"
332 msgstr ""
333
334 #. type: TP
335 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
336 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
337 #, no-wrap
338 msgid "B<SCHED_FLAG_RESET_ON_FORK>"
339 msgstr ""
340
341 #. type: Plain text
342 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
343 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
344 msgid ""
345 "Children created by B<fork>(2) do not inherit privileged scheduling "
346 "policies. See B<sched>(7) for details."
347 msgstr ""
348
349 #. type: TP
350 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
351 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
352 #, no-wrap
353 msgid "B<SCHED_FLAG_RECLAIM> (since Linux 4.13)"
354 msgstr ""
355
356 #. #-#-#-#-# archlinux: sched_setattr.2.pot (PACKAGE VERSION) #-#-#-#-#
357 #. 2d4283e9d583a3ee8cfb1cbb9c1270614df4c29d
358 #. Bandwidth reclaim is done via the GRUB algorithm; see
359 #. Documentation/scheduler/sched-deadline.rst
360 #. type: Plain text
361 #. #-#-#-#-# debian-trixie: sched_setattr.2.pot (PACKAGE VERSION) #-#-#-#-#
362 #. 2d4283e9d583a3ee8cfb1cbb9c1270614df4c29d
363 #. Bandwidth reclaim is done via the GRUB algorithm; see
364 #. Documentation/scheduler/sched-deadline.txt
365 #. type: Plain text
366 #. #-#-#-#-# debian-unstable: sched_setattr.2.pot (PACKAGE VERSION) #-#-#-#-#
367 #. 2d4283e9d583a3ee8cfb1cbb9c1270614df4c29d
368 #. Bandwidth reclaim is done via the GRUB algorithm; see
369 #. Documentation/scheduler/sched-deadline.rst
370 #. type: Plain text
371 #. #-#-#-#-# fedora-44: sched_setattr.2.pot (PACKAGE VERSION) #-#-#-#-#
372 #. 2d4283e9d583a3ee8cfb1cbb9c1270614df4c29d
373 #. Bandwidth reclaim is done via the GRUB algorithm; see
374 #. Documentation/scheduler/sched-deadline.txt
375 #. type: Plain text
376 #. #-#-#-#-# fedora-rawhide: sched_setattr.2.pot (PACKAGE VERSION) #-#-#-#-#
377 #. 2d4283e9d583a3ee8cfb1cbb9c1270614df4c29d
378 #. Bandwidth reclaim is done via the GRUB algorithm; see
379 #. Documentation/scheduler/sched-deadline.txt
380 #. type: Plain text
381 #. #-#-#-#-# mageia-cauldron: sched_setattr.2.pot (PACKAGE VERSION) #-#-#-#-#
382 #. 2d4283e9d583a3ee8cfb1cbb9c1270614df4c29d
383 #. Bandwidth reclaim is done via the GRUB algorithm; see
384 #. Documentation/scheduler/sched-deadline.rst
385 #. type: Plain text
386 #. #-#-#-#-# opensuse-leap-16-1: sched_setattr.2.pot (PACKAGE VERSION) #-#-#-#-#
387 #. 2d4283e9d583a3ee8cfb1cbb9c1270614df4c29d
388 #. Bandwidth reclaim is done via the GRUB algorithm; see
389 #. Documentation/scheduler/sched-deadline.rst
390 #. type: Plain text
391 #. #-#-#-#-# opensuse-tumbleweed: sched_setattr.2.pot (PACKAGE VERSION) #-#-#-#-#
392 #. 2d4283e9d583a3ee8cfb1cbb9c1270614df4c29d
393 #. Bandwidth reclaim is done via the GRUB algorithm; see
394 #. Documentation/scheduler/sched-deadline.rst
395 #. type: Plain text
396 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
397 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
398 msgid ""
399 "This flag allows a B<SCHED_DEADLINE> thread to reclaim bandwidth unused by "
400 "other real-time threads."
401 msgstr ""
402
403 #. type: TP
404 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
405 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
406 #, no-wrap
407 msgid "B<SCHED_FLAG_DL_OVERRUN> (since Linux 4.16)"
408 msgstr ""
409
410 #. commit 34be39305a77b8b1ec9f279163c7cdb6cc719b91
411 #. type: Plain text
412 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
413 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
414 msgid ""
415 "This flag allows an application to get informed about run-time overruns in "
416 "B<SCHED_DEADLINE> threads. Such overruns may be caused by (for example) "
417 "coarse execution time accounting or incorrect parameter assignment. "
418 "Notification takes the form of a B<SIGXCPU> signal which is generated on "
419 "each overrun."
420 msgstr ""
421
422 #. type: Plain text
423 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
424 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
425 msgid ""
426 "This B<SIGXCPU> signal is I<process-directed> (see B<signal>(7)) rather "
427 "than thread-directed. This is probably a bug. On the one hand, "
428 "B<sched_setattr>() is being used to set a per-thread attribute. On the "
429 "other hand, if the process-directed signal is delivered to a thread inside "
430 "the process other than the one that had a run-time overrun, the application "
431 "has no way of knowing which thread overran."
432 msgstr ""
433
434 #. type: TP
435 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
436 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
437 #, no-wrap
438 msgid "B<SCHED_FLAG_UTIL_CLAMP_MIN>"
439 msgstr ""
440
441 #. type: TQ
442 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
443 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
444 #, no-wrap
445 msgid "B<SCHED_FLAG_UTIL_CLAMP_MAX> (both since Linux 5.3)"
446 msgstr ""
447
448 #. type: Plain text
449 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
450 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
451 msgid ""
452 "These flags indicate that the I<sched_util_min> or I<sched_util_max> fields, "
453 "respectively, are present, representing the expected minimum and maximum "
454 "utilization of the thread."
455 msgstr ""
456
457 #. type: Plain text
458 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
459 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
460 msgid ""
461 "The utilization attributes provide the scheduler with boundaries within "
462 "which it should schedule the thread, potentially informing its decisions "
463 "regarding task placement and frequency selection."
464 msgstr ""
465
466 #. type: TP
467 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
468 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
469 #, no-wrap
470 msgid "I<sched_nice>"
471 msgstr ""
472
473 #. type: Plain text
474 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
475 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
476 msgid ""
477 "This field specifies the nice value to be set when specifying "
478 "I<sched_policy> as B<SCHED_OTHER> or B<SCHED_BATCH>. The nice value is a "
479 "number in the range -20 (high priority) to +19 (low priority); see "
480 "B<sched>(7)."
481 msgstr ""
482
483 #. type: TP
484 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
485 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
486 #, no-wrap
487 msgid "I<sched_priority>"
488 msgstr ""
489
490 #. type: Plain text
491 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
492 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
493 msgid ""
494 "This field specifies the static priority to be set when specifying "
495 "I<sched_policy> as B<SCHED_FIFO> or B<SCHED_RR>. The allowed range of "
496 "priorities for these policies can be determined using "
497 "B<sched_get_priority_min>(2) and B<sched_get_priority_max>(2). For other "
498 "policies, this field must be specified as 0."
499 msgstr ""
500
501 #. type: TP
502 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
503 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
504 #, no-wrap
505 msgid "I<sched_runtime>"
506 msgstr ""
507
508 #. type: Plain text
509 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
510 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
511 msgid ""
512 "This field specifies the \"Runtime\" parameter for deadline scheduling. The "
513 "value is expressed in nanoseconds. This field, and the next two fields, are "
514 "used only for B<SCHED_DEADLINE> scheduling; for further details, see "
515 "B<sched>(7)."
516 msgstr ""
517
518 #. type: TP
519 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
520 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
521 #, no-wrap
522 msgid "I<sched_deadline>"
523 msgstr ""
524
525 #. type: Plain text
526 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
527 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
528 msgid ""
529 "This field specifies the \"Deadline\" parameter for deadline scheduling. "
530 "The value is expressed in nanoseconds."
531 msgstr ""
532
533 #. type: TP
534 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
535 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
536 #, no-wrap
537 msgid "I<sched_period>"
538 msgstr ""
539
540 #. type: Plain text
541 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
542 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
543 msgid ""
544 "This field specifies the \"Period\" parameter for deadline scheduling. The "
545 "value is expressed in nanoseconds."
546 msgstr ""
547
548 #. type: TP
549 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
550 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
551 #, no-wrap
552 msgid "I<sched_util_min>"
553 msgstr ""
554
555 #. type: TQ
556 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
557 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
558 #, no-wrap
559 msgid "I<sched_util_max> (both since Linux 5.3)"
560 msgstr ""
561
562 #. type: Plain text
563 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
564 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
565 msgid ""
566 "These fields specify the expected minimum and maximum utilization, "
567 "respectively. They are ignored unless their corresponding "
568 "B<SCHED_FLAG_UTIL_CLAMP_MIN> or B<SCHED_FLAG_UTIL_CLAMP_MAX> is set in "
569 "I<sched_flags>."
570 msgstr ""
571
572 #. type: Plain text
573 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
574 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
575 msgid ""
576 "Utilization is a value in the range [0, 1024], representing the percentage "
577 "of CPU time used by a task when running at the maximum frequency on the "
578 "highest capacity CPU of the system. This is a fixed point representation, "
579 "where 1024 corresponds to 100%, and 0 corresponds to 0%. For example, a 20% "
580 "utilization task is a task running for 2ms every 10ms at maximum frequency "
581 "and is represented by a utilization value of I<0.2\\ *\\ 1024\\ =\\ 205>."
582 msgstr ""
583
584 #. type: Plain text
585 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
586 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
587 msgid ""
588 "A task with a minimum utilization value larger than 0 is more likely "
589 "scheduled on a CPU with a capacity big enough to fit the specified value. A "
590 "task with a maximum utilization value smaller than 1024 is more likely "
591 "scheduled on a CPU with no more capacity than the specified value."
592 msgstr ""
593
594 #. type: Plain text
595 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
596 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
597 msgid ""
598 "A task utilization boundary can be reset by setting its field to "
599 "B<UINT32_MAX> (since Linux 5.11)."
600 msgstr ""
601
602 #. type: Plain text
603 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
604 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
605 msgid ""
606 "The I<flags> argument is provided to allow for future extensions to the "
607 "interface; in the current implementation it must be specified as 0."
608 msgstr ""
609
610 #. type: SS
611 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
612 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
613 #, no-wrap
614 msgid "sched_getattr()"
615 msgstr ""
616
617 #. type: Plain text
618 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
619 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
620 msgid ""
621 "The B<sched_getattr>() system call fetches the scheduling policy and the "
622 "associated attributes for the thread whose ID is specified in I<pid>. If "
623 "I<pid> equals zero, the scheduling policy and attributes of the calling "
624 "thread will be retrieved."
625 msgstr ""
626
627 #. type: Plain text
628 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
629 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
630 msgid ""
631 "The I<size> argument should be set to the size of the I<sched_attr> "
632 "structure as known to user space. The value must be at least as large as "
633 "the size of the initially published I<sched_attr> structure, or the call "
634 "fails with the error B<EINVAL>."
635 msgstr ""
636
637 #. type: Plain text
638 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
639 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
640 msgid ""
641 "The retrieved scheduling attributes are placed in the fields of the "
642 "I<sched_attr> structure pointed to by I<attr>. The kernel sets I<attr.size> "
643 "to the size of its I<sched_attr> structure."
644 msgstr ""
645
646 #. type: Plain text
647 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
648 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
649 msgid ""
650 "If the caller-provided I<attr> buffer is larger than the kernel's "
651 "I<sched_attr> structure, the additional bytes in the user-space structure "
652 "are not touched. If the caller-provided structure is smaller than the "
653 "kernel I<sched_attr> structure, the kernel will silently not return any "
654 "values which would be stored outside the provided space. As with "
655 "B<sched_setattr>(), these semantics allow for future extensibility of the "
656 "interface."
657 msgstr ""
658
659 #. type: SH
660 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
661 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
662 #, no-wrap
663 msgid "RETURN VALUE"
664 msgstr ""
665
666 #. type: Plain text
667 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
668 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
669 msgid ""
670 "On success, B<sched_setattr>() and B<sched_getattr>() return 0. On error, "
671 "-1 is returned, and I<errno> is set to indicate the error."
672 msgstr ""
673
674 #. type: SH
675 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
676 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
677 #, no-wrap
678 msgid "ERRORS"
679 msgstr ""
680
681 #. type: Plain text
682 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
683 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
684 msgid ""
685 "B<sched_getattr>() and B<sched_setattr>() can both fail for the following "
686 "reasons:"
687 msgstr ""
688
689 #. type: TP
690 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
691 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
692 #, no-wrap
693 msgid "B<EINVAL>"
694 msgstr ""
695
696 #. type: Plain text
697 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
698 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
699 msgid "I<attr> is NULL; or I<pid> is negative; or I<flags> is not zero."
700 msgstr ""
701
702 #. type: TP
703 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
704 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
705 #, no-wrap
706 msgid "B<ESRCH>"
707 msgstr ""
708
709 #. type: Plain text
710 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
711 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
712 msgid "The thread whose ID is I<pid> could not be found."
713 msgstr ""
714
715 #. type: Plain text
716 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
717 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
718 msgid "In addition, B<sched_getattr>() can fail for the following reasons:"
719 msgstr ""
720
721 #. type: TP
722 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
723 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
724 #, no-wrap
725 msgid "B<E2BIG>"
726 msgstr ""
727
728 #. type: Plain text
729 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
730 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
731 msgid "The buffer specified by I<size> and I<attr> is too small."
732 msgstr ""
733
734 #. type: Plain text
735 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
736 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
737 msgid ""
738 "I<size> is invalid; that is, it is smaller than the initial version of the "
739 "I<sched_attr> structure (48 bytes) or larger than the system page size."
740 msgstr ""
741
742 #. type: Plain text
743 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
744 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
745 msgid "In addition, B<sched_setattr>() can fail for the following reasons:"
746 msgstr ""
747
748 #. type: Plain text
749 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
750 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
751 msgid ""
752 "The buffer specified by I<size> and I<attr> is larger than the kernel "
753 "structure, and one or more of the excess bytes is nonzero."
754 msgstr ""
755
756 #. type: TP
757 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
758 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
759 #, no-wrap
760 msgid "B<EBUSY>"
761 msgstr ""
762
763 #. type: Plain text
764 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
765 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
766 msgid "B<SCHED_DEADLINE> admission control failure, see B<sched>(7)."
767 msgstr ""
768
769 #. type: Plain text
770 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
771 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
772 msgid "I<attr.sched_policy> is not one of the recognized policies."
773 msgstr ""
774
775 #. type: Plain text
776 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
777 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
778 msgid ""
779 "I<attr.sched_flags> contains a flag other than B<SCHED_FLAG_RESET_ON_FORK>."
780 msgstr ""
781
782 #. type: Plain text
783 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
784 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
785 msgid "I<attr.sched_priority> is invalid."
786 msgstr ""
787
788 #. type: Plain text
789 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
790 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
791 msgid ""
792 "I<attr.sched_policy> is B<SCHED_DEADLINE>, and the deadline scheduling "
793 "parameters in I<attr> are invalid."
794 msgstr ""
795
796 #. type: Plain text
797 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
798 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
799 msgid ""
800 "I<attr.sched_flags> contains B<SCHED_FLAG_UTIL_CLAMP_MIN> or "
801 "B<SCHED_FLAG_UTIL_CLAMP_MAX>, and I<attr.sched_util_min> or "
802 "I<attr.sched_util_max> are out of bounds."
803 msgstr ""
804
805 #. type: TP
806 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
807 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
808 #, no-wrap
809 msgid "B<EOPNOTSUPP>"
810 msgstr ""
811
812 #. type: Plain text
813 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
814 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
815 msgid ""
816 "B<SCHED_FLAG_UTIL_CLAMP> was provided, but the kernel was not built with "
817 "B<CONFIG_UCLAMP_TASK> support."
818 msgstr ""
819
820 #. type: TP
821 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
822 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
823 #, no-wrap
824 msgid "B<EPERM>"
825 msgstr ""
826
827 #. type: Plain text
828 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
829 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
830 msgid "The caller does not have appropriate privileges."
831 msgstr ""
832
833 #. type: Plain text
834 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
835 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
836 msgid ""
837 "The CPU affinity mask of the thread specified by I<pid> does not include all "
838 "CPUs in the system (see B<sched_setaffinity>(2))."
839 msgstr ""
840
841 #. type: SH
842 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
843 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
844 #, no-wrap
845 msgid "STANDARDS"
846 msgstr ""
847
848 #. type: Plain text
849 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
850 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
851 msgid "Linux."
852 msgstr ""
853
854 #. type: SH
855 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
856 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
857 #, no-wrap
858 msgid "HISTORY"
859 msgstr ""
860
861 #. FIXME . Add glibc version
862 #. type: Plain text
863 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
864 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
865 msgid "Linux 3.14."
866 msgstr ""
867
868 #. type: SH
869 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
870 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
871 #, no-wrap
872 msgid "NOTES"
873 msgstr ""
874
875 #. type: Plain text
876 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
877 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
878 msgid ""
879 "glibc does not provide wrappers for these system calls; call them using "
880 "B<syscall>(2)."
881 msgstr ""
882
883 #. type: Plain text
884 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
885 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
886 msgid ""
887 "B<sched_setattr>() provides a superset of the functionality of "
888 "B<sched_setscheduler>(2), B<sched_setparam>(2), B<nice>(2), and (other than "
889 "the ability to set the priority of all processes belonging to a specified "
890 "user or all processes in a specified group) B<setpriority>(2). "
891 "Analogously, B<sched_getattr>() provides a superset of the functionality of "
892 "B<sched_getscheduler>(2), B<sched_getparam>(2), and (partially) "
893 "B<getpriority>(2)."
894 msgstr ""
895
896 #. type: SH
897 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
898 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
899 #, no-wrap
900 msgid "BUGS"
901 msgstr ""
902
903 #. FIXME . patch sent to Peter Zijlstra
904 #. type: Plain text
905 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
906 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
907 msgid ""
908 "In Linux versions up to 3.15, B<sched_setattr>() failed with the error "
909 "B<EFAULT> instead of B<E2BIG> for the case described in ERRORS."
910 msgstr ""
911
912 #. In Linux versions up to up 3.15,
913 #. FIXME . patch from Peter Zijlstra pending
914 #. .BR sched_setattr ()
915 #. allowed a negative
916 #. .I attr.sched_policy
917 #. value.
918 #. type: Plain text
919 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
920 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
921 msgid ""
922 "Up to Linux 5.3, B<sched_getattr>() failed with the error B<EFBIG> if the "
923 "in-kernel I<sched_attr> structure was larger than the I<size> passed by user "
924 "space."
925 msgstr ""
926
927 #. type: SH
928 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
929 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
930 #, no-wrap
931 msgid "SEE ALSO"
932 msgstr ""
933
934 #. type: Plain text
935 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
936 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
937 msgid ""
938 "B<chrt>(1), B<nice>(2), B<sched_get_priority_max>(2), "
939 "B<sched_get_priority_min>(2), B<sched_getaffinity>(2), B<sched_getparam>(2), "
940 "B<sched_getscheduler>(2), B<sched_rr_get_interval>(2), "
941 "B<sched_setaffinity>(2), B<sched_setparam>(2), B<sched_setscheduler>(2), "
942 "B<sched_yield>(2), B<setpriority>(2), B<pthread_getschedparam>(3), "
943 "B<pthread_setschedparam>(3), B<pthread_setschedprio>(3), B<capabilities>(7), "
944 "B<cpuset>(7), B<sched>(7)"
945 msgstr ""
946
947 #. type: TH
948 #: debian-trixie
949 #, no-wrap
950 msgid "2024-06-13"
951 msgstr ""
952
953 #. type: TH
954 #: debian-trixie
955 #, no-wrap
956 msgid "Linux man-pages 6.9.1"
957 msgstr ""
958
959 #. type: Plain text
960 #: debian-trixie
961 msgid "Standard C library (I<libc>, I<-lc>)"
962 msgstr ""
963
964 #. type: TH
965 #: fedora-44 fedora-rawhide
966 #, no-wrap
967 msgid "2024-07-23"
968 msgstr ""
969
970 #. type: TH
971 #: fedora-44 fedora-rawhide
972 #, no-wrap
973 msgid "Linux man-pages 6.13"
974 msgstr ""
975
976 #. type: TH
977 #: mageia-cauldron
978 #, no-wrap
979 msgid "Linux man-pages 6.17"
980 msgstr ""
981
982 #. type: TH
983 #: opensuse-leap-16-1 opensuse-tumbleweed
984 #, no-wrap
985 msgid "Linux man-pages (unreleased)"
986 msgstr ""