2014-05-10 18:17:44 +00:00
|
|
|
.\" Copyright (C) 2014 Michael Kerrisk <mtk.manpages@gmail.com>
|
|
|
|
.\" and Copyright (C) 2014 Peter Zijlstra <peterz@infradead.org>
|
|
|
|
.\"
|
|
|
|
.\" %%%LICENSE_START(VERBATIM)
|
|
|
|
.\" 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. The author(s) may not
|
|
|
|
.\" have taken the same level of care in the production of this manual,
|
|
|
|
.\" which is licensed free of charge, as they might when working
|
|
|
|
.\" professionally.
|
|
|
|
.\"
|
|
|
|
.\" Formatted or processed versions of this manual, if unaccompanied by
|
|
|
|
.\" the source, must acknowledge the copyright and authors of this work.
|
|
|
|
.\" %%%LICENSE_END
|
|
|
|
.\"
|
intro.1, locale.1, _exit.2, access.2, bpf.2, brk.2, capget.2, chmod.2, chroot.2, clock_getres.2, clone.2, eventfd.2, fallocate.2, fork.2, getgroups.2, gethostname.2, getpid.2, getpriority.2, getrlimit.2, getrusage.2, gettid.2, iopl.2, ioprio_set.2, killpg.2, mlock.2, mprotect.2, perf_event_open.2, poll.2, posix_fadvise.2, pread.2, ptrace.2, read.2, readv.2, recv.2, rename.2, sched_setaffinity.2, sched_setattr.2, seccomp.2, select.2, send.2, seteuid.2, setgid.2, setresuid.2, setreuid.2, setuid.2, sigaltstack.2, signalfd.2, sigpending.2, sigprocmask.2, sigreturn.2, sigsuspend.2, sigwaitinfo.2, socket.2, stat.2, timer_create.2, uname.2, utimensat.2, wait.2, wait4.2, write.2, MB_LEN_MAX.3, __ppc_get_timebase.3, clearenv.3, dl_iterate_phdr.3, error.3, fexecve.3, fpurge.3, fread.3, fts.3, getaddrinfo.3, getaddrinfo_a.3, getauxval.3, getgrent_r.3, gethostbyname.3, getifaddrs.3, getnameinfo.3, getnetent_r.3, getprotoent.3, getprotoent_r.3, getpw.3, getpwent_r.3, getrpcent.3, getrpcent_r.3, getrpcport.3, getservent.3, getservent_r.3, gsignal.3, key_setsecret.3, malloc_get_state.3, malloc_info.3, malloc_stats.3, malloc_trim.3, memcpy.3, mq_notify.3, mq_open.3, perror.3, profil.3, psignal.3, pthread_attr_init.3, pthread_attr_setaffinity_np.3, pthread_cancel.3, pthread_cleanup_push.3, pthread_create.3, pthread_detach.3, pthread_getattr_np.3, pthread_join.3, pthread_setname_np.3, pthread_tryjoin_np.3, putgrent.3, rcmd.3, rpc.3, rpmatch.3, sem_close.3, sem_open.3, setaliasent.3, shm_open.3, sigqueue.3, strfmon.3, xcrypt.3, xdr.3, console_codes.4, null.4, core.5, host.conf.5, hosts.equiv.5, locale.5, repertoiremap.5, locale.7, man-pages.7, pty.7, rtld-audit.7, sched.7, vdso.7: tstamp
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-07-23 14:12:28 +00:00
|
|
|
.TH SCHED_SETATTR 2 2015-07-23 "Linux" "Linux Programmer's Manual"
|
2014-05-10 18:17:44 +00:00
|
|
|
.SH NAME
|
|
|
|
sched_setattr, sched_getattr \-
|
|
|
|
set and get scheduling policy and attributes
|
|
|
|
.SH SYNOPSIS
|
|
|
|
.nf
|
|
|
|
.B #include <sched.h>
|
|
|
|
|
2015-06-09 12:11:41 +00:00
|
|
|
.BI "int sched_setattr(pid_t " pid ", struct sched_attr *" attr ,
|
2014-05-10 18:17:44 +00:00
|
|
|
.BI " unsigned int " flags );
|
|
|
|
|
2015-02-04 20:23:46 +00:00
|
|
|
.BI "int sched_getattr(pid_t " pid ", struct sched_attr *" attr ,
|
2014-05-10 18:17:44 +00:00
|
|
|
.BI " unsigned int " size ", unsigned int " flags );
|
|
|
|
.fi
|
adjtimex.2, bind.2, cacheflush.2, clone.2, fallocate.2, fanotify_init.2, fanotify_mark.2, flock.2, futex.2, getdents.2, getpriority.2, getrlimit.2, gettid.2, gettimeofday.2, ioprio_set.2, kexec_load.2, migrate_pages.2, modify_ldt.2, mount.2, move_pages.2, mprotect.2, msgop.2, nfsservctl.2, perf_event_open.2, pread.2, ptrace.2, recvmmsg.2, rename.2, restart_syscall.2, sched_setattr.2, send.2, shmop.2, shutdown.2, sigaction.2, signalfd.2, syscalls.2, timer_create.2, timerfd_create.2, tkill.2, vmsplice.2, wait.2, aio_init.3, confstr.3, exit.3, fmemopen.3, fopen.3, getaddrinfo.3, getauxval.3, getspnam.3, isalpha.3, isatty.3, mallinfo.3, malloc.3, mallopt.3, psignal.3, pthread_attr_setinheritsched.3, qecvt.3, queue.3, rtnetlink.3, strerror.3, strftime.3, toupper.3, towlower.3, towupper.3, initrd.4, locale.5, proc.5, bootparam.7, capabilities.7, ddp.7, fanotify.7, icmp.7, inotify.7, ip.7, ipv6.7, netdevice.7, netlink.7, path_resolution.7, rtld-audit.7, rtnetlink.7, sched.7, signal.7, socket.7, svipc.7, tcp.7, unix.7, ld.so.8: srcfix: Update FIXMEs
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-08-21 21:47:44 +00:00
|
|
|
.\" FIXME . Add feature test macro requirements
|
2014-05-10 18:17:44 +00:00
|
|
|
.SH DESCRIPTION
|
|
|
|
.SS sched_setattr()
|
|
|
|
The
|
|
|
|
.BR sched_setattr ()
|
|
|
|
system call sets the scheduling policy and
|
|
|
|
associated attributes for the thread whose ID is specified in
|
|
|
|
.IR pid .
|
|
|
|
If
|
|
|
|
.I pid
|
|
|
|
equals zero,
|
|
|
|
the scheduling policy and attributes of the calling thread will be set.
|
|
|
|
|
|
|
|
Currently, Linux supports the following "normal"
|
|
|
|
(i.e., non-real-time) scheduling policies as values that may be specified in
|
|
|
|
.IR policy :
|
|
|
|
.TP 14
|
|
|
|
.BR SCHED_OTHER
|
|
|
|
the standard round-robin time-sharing policy;
|
|
|
|
.\" In the 2.6 kernel sources, SCHED_OTHER is actually called
|
|
|
|
.\" SCHED_NORMAL.
|
|
|
|
.TP
|
|
|
|
.BR SCHED_BATCH
|
|
|
|
for "batch" style execution of processes; and
|
|
|
|
.TP
|
|
|
|
.BR SCHED_IDLE
|
|
|
|
for running
|
|
|
|
.I very
|
|
|
|
low priority background jobs.
|
|
|
|
.PP
|
|
|
|
Various "real-time" policies are also supported,
|
|
|
|
for special time-critical applications that need precise control over
|
|
|
|
the way in which runnable threads are selected for execution.
|
|
|
|
For the rules governing when a process may use these policies, see
|
|
|
|
.BR sched (7).
|
|
|
|
The real-time policies that may be specified in
|
|
|
|
.IR policy
|
|
|
|
are:
|
|
|
|
.TP 14
|
|
|
|
.BR SCHED_FIFO
|
|
|
|
a first-in, first-out policy; and
|
|
|
|
.TP
|
|
|
|
.BR SCHED_RR
|
|
|
|
a round-robin policy.
|
|
|
|
.PP
|
|
|
|
Linux also provides the following policy:
|
|
|
|
.TP 14
|
|
|
|
.B SCHED_DEADLINE
|
|
|
|
a deadline scheduling policy; see
|
|
|
|
.BR sched (7)
|
|
|
|
for details.
|
|
|
|
.PP
|
|
|
|
The
|
|
|
|
.I attr
|
|
|
|
argument is a pointer to a structure that defines
|
|
|
|
the new scheduling policy and attributes for the specified thread.
|
|
|
|
This structure has the following form:
|
|
|
|
|
|
|
|
.in +4n
|
|
|
|
.nf
|
|
|
|
struct sched_attr {
|
|
|
|
u32 size; /* Size of this structure */
|
|
|
|
u32 sched_policy; /* Policy (SCHED_*) */
|
|
|
|
u64 sched_flags; /* Flags */
|
|
|
|
s32 sched_nice; /* Nice value (SCHED_OTHER,
|
|
|
|
SCHED_BATCH) */
|
|
|
|
u32 sched_priority; /* Static priority (SCHED_FIFO,
|
|
|
|
SCHED_RR) */
|
|
|
|
/* Remaining fields are for SCHED_DEADLINE */
|
|
|
|
u64 sched_runtime;
|
|
|
|
u64 sched_deadline;
|
|
|
|
u64 sched_period;
|
|
|
|
};
|
|
|
|
.fi
|
|
|
|
.in
|
|
|
|
|
|
|
|
The fields of this structure are as follows:
|
|
|
|
.TP
|
|
|
|
.B size
|
|
|
|
This field should be set to the size of the structure in bytes, as in
|
|
|
|
.IR "sizeof(struct sched_attr)" .
|
|
|
|
If the provided structure is smaller than the kernel structure,
|
|
|
|
any additional fields are assumed to be '0'.
|
|
|
|
If the provided structure is larger than the kernel structure,
|
|
|
|
the kernel verifies that all additional fields are 0;
|
|
|
|
if they are not,
|
|
|
|
.BR sched_setattr ()
|
|
|
|
fails with the error
|
|
|
|
.BR E2BIG
|
|
|
|
and updates
|
|
|
|
.I size
|
|
|
|
to contain the size of the kernel structure.
|
|
|
|
.IP
|
|
|
|
The above behavior when the size of the user-space
|
|
|
|
.I sched_attr
|
|
|
|
structure does not match the size of the kernel structure
|
|
|
|
allows for future extensibility of the interface.
|
|
|
|
Malformed applications that pass oversize structures
|
|
|
|
won't break in the future if the size of the kernel
|
|
|
|
.I sched_attr
|
|
|
|
structure is increased.
|
|
|
|
In the future,
|
|
|
|
it could also allow applications that know about a larger user-space
|
|
|
|
.I sched_attr
|
|
|
|
structure to determine whether they are running on an older kernel
|
|
|
|
that does not support the larger structure.
|
|
|
|
.TP
|
|
|
|
.I sched_policy
|
|
|
|
This field specifies the scheduling policy, as one of the
|
|
|
|
.BR SCHED_*
|
|
|
|
values listed above.
|
|
|
|
.TP
|
|
|
|
.I sched_flags
|
|
|
|
This field contains flags controlling scheduling behavior.
|
|
|
|
Only one such flag is currently defined:
|
|
|
|
.BR SCHED_FLAG_RESET_ON_FORK .
|
|
|
|
As a result of including this flag, children created by
|
|
|
|
.BR fork (2)
|
|
|
|
do not inherit privileged scheduling policies.
|
|
|
|
See
|
|
|
|
.BR sched (7)
|
|
|
|
for details.
|
|
|
|
.TP
|
|
|
|
.I sched_nice
|
|
|
|
This field specifies the nice value to be set when specifying
|
|
|
|
.IR sched_policy
|
|
|
|
as
|
|
|
|
.BR SCHED_OTHER
|
|
|
|
or
|
|
|
|
.BR SCHED_BATCH .
|
|
|
|
The nice value is a number in the range \-20 (high priority)
|
|
|
|
to +19 (low priority); see
|
|
|
|
.BR setpriority (2).
|
|
|
|
.TP
|
|
|
|
.I sched_priority
|
|
|
|
This field specifies the static priority to be set when specifying
|
|
|
|
.IR sched_policy
|
|
|
|
as
|
|
|
|
.BR SCHED_FIFO
|
|
|
|
or
|
|
|
|
.BR SCHED_RR .
|
|
|
|
The allowed range of priorities for these policies can be determined using
|
|
|
|
.BR sched_get_priority_min (2)
|
|
|
|
and
|
|
|
|
.BR sched_get_priority_max (2).
|
|
|
|
For other policies, this field must be specified as 0.
|
|
|
|
.TP
|
|
|
|
.I sched_runtime
|
|
|
|
This field specifies the "Runtime" parameter for deadline scheduling.
|
|
|
|
The value is expressed in nanoseconds.
|
|
|
|
This field, and the next two fields,
|
|
|
|
are used only for
|
2014-05-21 11:16:14 +00:00
|
|
|
.BR SCHED_DEADLINE
|
2014-05-10 18:17:44 +00:00
|
|
|
scheduling; for further details, see
|
|
|
|
.BR sched (7).
|
|
|
|
.TP
|
|
|
|
.I sched_deadline
|
|
|
|
This field specifies the "Deadline" parameter for deadline scheduling.
|
|
|
|
The value is expressed in nanoseconds.
|
|
|
|
.TP
|
|
|
|
.I sched_period
|
|
|
|
This field specifies the "Period" parameter for deadline scheduling.
|
|
|
|
The value is expressed in nanoseconds.
|
|
|
|
.PP
|
|
|
|
The
|
|
|
|
.I flags
|
|
|
|
argument is provided to allow for future extensions to the interface;
|
|
|
|
in the current implementation it must be specified as 0.
|
|
|
|
.\"
|
|
|
|
.\"
|
|
|
|
.SS sched_getattr()
|
|
|
|
The
|
|
|
|
.BR sched_getattr ()
|
|
|
|
system call fetches the scheduling policy and the
|
|
|
|
associated attributes for the thread whose ID is specified in
|
|
|
|
.IR pid .
|
|
|
|
If
|
|
|
|
.I pid
|
|
|
|
equals zero,
|
|
|
|
the scheduling policy and attributes of the calling thread
|
|
|
|
will be retrieved.
|
|
|
|
|
|
|
|
The
|
|
|
|
.I size
|
|
|
|
argument should be set to the size of the
|
|
|
|
.I sched_attr
|
|
|
|
structure as known to user space.
|
|
|
|
The value must be at least as large as the size of the initially published
|
|
|
|
.I sched_attr
|
|
|
|
structure, or the call fails with the error
|
|
|
|
.BR EINVAL .
|
|
|
|
|
|
|
|
The retrieved scheduling attributes are placed in the fields of the
|
|
|
|
.I sched_attr
|
|
|
|
structure pointed to by
|
|
|
|
.IR attr .
|
|
|
|
The kernel sets
|
|
|
|
.I attr.size
|
|
|
|
to the size of its
|
|
|
|
.I sched_attr
|
|
|
|
structure.
|
|
|
|
|
|
|
|
If the caller-provided
|
|
|
|
.I attr
|
|
|
|
buffer is larger than the kernel's
|
|
|
|
.I sched_attr
|
|
|
|
structure,
|
|
|
|
the additional bytes in the user-space structure are not touched.
|
|
|
|
If the caller-provided structure is smaller than the kernel
|
|
|
|
.I sched_attr
|
|
|
|
structure and the kernel needs to return values outside the provided space,
|
|
|
|
.BR sched_getattr ()
|
|
|
|
fails with the error
|
|
|
|
.BR E2BIG .
|
|
|
|
As with
|
|
|
|
.BR sched_setattr (),
|
|
|
|
these semantics allow for future extensibility of the interface.
|
|
|
|
|
|
|
|
The
|
|
|
|
.I flags
|
|
|
|
argument is provided to allow for future extensions to the interface;
|
|
|
|
in the current implementation it must be specified as 0.
|
|
|
|
.SH RETURN VALUE
|
|
|
|
On success,
|
|
|
|
.BR sched_setattr ()
|
|
|
|
and
|
|
|
|
.BR sched_getattr ()
|
|
|
|
return 0.
|
|
|
|
On error, \-1 is returned, and
|
|
|
|
.I errno
|
|
|
|
is set to indicate the cause of the error.
|
|
|
|
.SH ERRORS
|
|
|
|
.BR sched_getattr ()
|
|
|
|
and
|
|
|
|
.BR sched_setattr ()
|
|
|
|
can both fail for the following reasons:
|
|
|
|
.TP
|
|
|
|
.B EINVAL
|
|
|
|
.I attr
|
|
|
|
is NULL; or
|
|
|
|
.I pid
|
|
|
|
is negative; or
|
|
|
|
.I flags
|
|
|
|
is not zero.
|
|
|
|
.TP
|
|
|
|
.B ESRCH
|
|
|
|
The thread whose ID is
|
|
|
|
.I pid
|
|
|
|
could not be found.
|
|
|
|
.PP
|
|
|
|
In addition,
|
|
|
|
.BR sched_getattr ()
|
|
|
|
can fail for the following reasons:
|
|
|
|
.TP
|
|
|
|
.B E2BIG
|
|
|
|
The buffer specified by
|
|
|
|
.I size
|
|
|
|
and
|
|
|
|
.I attr
|
|
|
|
is too small.
|
|
|
|
.TP
|
|
|
|
.B EINVAL
|
|
|
|
.I size
|
|
|
|
is invalid; that is, it is smaller than the initial version of the
|
|
|
|
.I sched_attr
|
|
|
|
structure (48 bytes) or larger than the system page size.
|
|
|
|
.PP
|
|
|
|
In addition,
|
|
|
|
.BR sched_setattr ()
|
|
|
|
can fail for the following reasons:
|
|
|
|
.TP
|
|
|
|
.B E2BIG
|
|
|
|
The buffer specified by
|
|
|
|
.I size
|
|
|
|
and
|
|
|
|
.I attr
|
|
|
|
is larger than the kernel structure,
|
|
|
|
and one or more of the excess bytes is nonzero.
|
|
|
|
.TP
|
|
|
|
.B EBUSY
|
|
|
|
.B SCHED_DEADLINE
|
|
|
|
admission control failure, see
|
|
|
|
.BR sched (7).
|
|
|
|
.TP
|
|
|
|
.B EINVAL
|
|
|
|
.I attr.sched_policy
|
|
|
|
is not one of the recognized policies;
|
|
|
|
.I attr.sched_flags
|
|
|
|
contains a flag other than
|
|
|
|
.BR SCHED_FLAG_RESET_ON_FORK ;
|
|
|
|
or
|
|
|
|
.I attr.sched_priority
|
|
|
|
is invalid; or
|
|
|
|
.I attr.sched_policy
|
|
|
|
is
|
|
|
|
.BR SCHED_DEADLINE
|
|
|
|
and the deadline scheduling parameters in
|
|
|
|
.I attr
|
|
|
|
are invalid.
|
|
|
|
.TP
|
|
|
|
.B EPERM
|
|
|
|
The caller does not have appropriate privileges.
|
|
|
|
.TP
|
|
|
|
.B EPERM
|
|
|
|
The caller's CPU affinity mask
|
|
|
|
does not include all CPUs in the system
|
|
|
|
(see
|
|
|
|
.BR sched_setaffinity (2)).
|
|
|
|
.SH VERSIONS
|
|
|
|
These system calls first appeared in Linux 3.14.
|
adjtimex.2, bind.2, cacheflush.2, clone.2, fallocate.2, fanotify_init.2, fanotify_mark.2, flock.2, futex.2, getdents.2, getpriority.2, getrlimit.2, gettid.2, gettimeofday.2, ioprio_set.2, kexec_load.2, migrate_pages.2, modify_ldt.2, mount.2, move_pages.2, mprotect.2, msgop.2, nfsservctl.2, perf_event_open.2, pread.2, ptrace.2, recvmmsg.2, rename.2, restart_syscall.2, sched_setattr.2, send.2, shmop.2, shutdown.2, sigaction.2, signalfd.2, syscalls.2, timer_create.2, timerfd_create.2, tkill.2, vmsplice.2, wait.2, aio_init.3, confstr.3, exit.3, fmemopen.3, fopen.3, getaddrinfo.3, getauxval.3, getspnam.3, isalpha.3, isatty.3, mallinfo.3, malloc.3, mallopt.3, psignal.3, pthread_attr_setinheritsched.3, qecvt.3, queue.3, rtnetlink.3, strerror.3, strftime.3, toupper.3, towlower.3, towupper.3, initrd.4, locale.5, proc.5, bootparam.7, capabilities.7, ddp.7, fanotify.7, icmp.7, inotify.7, ip.7, ipv6.7, netdevice.7, netlink.7, path_resolution.7, rtld-audit.7, rtnetlink.7, sched.7, signal.7, socket.7, svipc.7, tcp.7, unix.7, ld.so.8: srcfix: Update FIXMEs
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-08-21 21:47:44 +00:00
|
|
|
.\" FIXME . Add glibc version
|
2014-05-10 18:17:44 +00:00
|
|
|
.SH CONFORMING TO
|
|
|
|
These system calls are nonstandard Linux extensions.
|
|
|
|
.SH NOTES
|
|
|
|
.BR sched_setattr ()
|
|
|
|
provides a superset of the functionality of
|
|
|
|
.BR sched_setscheduler (2),
|
|
|
|
.BR sched_setparam (2),
|
|
|
|
.BR nice (2),
|
|
|
|
and (other than the ability to set the priority of all processes
|
|
|
|
belonging to a specified user or all processes in a specified group)
|
|
|
|
.BR setpriority (2).
|
|
|
|
Analogously,
|
2015-01-16 06:55:31 +00:00
|
|
|
.BR sched_getattr ()
|
2014-05-10 18:17:44 +00:00
|
|
|
provides a superset of the functionality of
|
|
|
|
.BR sched_getscheduler (2),
|
|
|
|
.BR sched_getparam (2),
|
|
|
|
and (partially)
|
|
|
|
.BR getpriority (2).
|
|
|
|
.SH BUGS
|
|
|
|
In Linux versions up to
|
adjtimex.2, bind.2, cacheflush.2, clone.2, fallocate.2, fanotify_init.2, fanotify_mark.2, flock.2, futex.2, getdents.2, getpriority.2, getrlimit.2, gettid.2, gettimeofday.2, ioprio_set.2, kexec_load.2, migrate_pages.2, modify_ldt.2, mount.2, move_pages.2, mprotect.2, msgop.2, nfsservctl.2, perf_event_open.2, pread.2, ptrace.2, recvmmsg.2, rename.2, restart_syscall.2, sched_setattr.2, send.2, shmop.2, shutdown.2, sigaction.2, signalfd.2, syscalls.2, timer_create.2, timerfd_create.2, tkill.2, vmsplice.2, wait.2, aio_init.3, confstr.3, exit.3, fmemopen.3, fopen.3, getaddrinfo.3, getauxval.3, getspnam.3, isalpha.3, isatty.3, mallinfo.3, malloc.3, mallopt.3, psignal.3, pthread_attr_setinheritsched.3, qecvt.3, queue.3, rtnetlink.3, strerror.3, strftime.3, toupper.3, towlower.3, towupper.3, initrd.4, locale.5, proc.5, bootparam.7, capabilities.7, ddp.7, fanotify.7, icmp.7, inotify.7, ip.7, ipv6.7, netdevice.7, netlink.7, path_resolution.7, rtld-audit.7, rtnetlink.7, sched.7, signal.7, socket.7, svipc.7, tcp.7, unix.7, ld.so.8: srcfix: Update FIXMEs
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-08-21 21:47:44 +00:00
|
|
|
.\" FIXME . patch sent to Peter Zijlstra
|
2014-05-10 18:17:44 +00:00
|
|
|
3.15,
|
|
|
|
.BR sched_settattr ()
|
|
|
|
failed with the error
|
|
|
|
.BR EFAULT
|
|
|
|
instead of
|
|
|
|
.BR E2BIG
|
|
|
|
for the case described in ERRORS.
|
|
|
|
.\" In Linux versions up to up 3.15,
|
adjtimex.2, bind.2, cacheflush.2, clone.2, fallocate.2, fanotify_init.2, fanotify_mark.2, flock.2, futex.2, getdents.2, getpriority.2, getrlimit.2, gettid.2, gettimeofday.2, ioprio_set.2, kexec_load.2, migrate_pages.2, modify_ldt.2, mount.2, move_pages.2, mprotect.2, msgop.2, nfsservctl.2, perf_event_open.2, pread.2, ptrace.2, recvmmsg.2, rename.2, restart_syscall.2, sched_setattr.2, send.2, shmop.2, shutdown.2, sigaction.2, signalfd.2, syscalls.2, timer_create.2, timerfd_create.2, tkill.2, vmsplice.2, wait.2, aio_init.3, confstr.3, exit.3, fmemopen.3, fopen.3, getaddrinfo.3, getauxval.3, getspnam.3, isalpha.3, isatty.3, mallinfo.3, malloc.3, mallopt.3, psignal.3, pthread_attr_setinheritsched.3, qecvt.3, queue.3, rtnetlink.3, strerror.3, strftime.3, toupper.3, towlower.3, towupper.3, initrd.4, locale.5, proc.5, bootparam.7, capabilities.7, ddp.7, fanotify.7, icmp.7, inotify.7, ip.7, ipv6.7, netdevice.7, netlink.7, path_resolution.7, rtld-audit.7, rtnetlink.7, sched.7, signal.7, socket.7, svipc.7, tcp.7, unix.7, ld.so.8: srcfix: Update FIXMEs
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-08-21 21:47:44 +00:00
|
|
|
.\" FIXME . patch from Peter Zijlstra pending
|
2014-05-10 18:17:44 +00:00
|
|
|
.\" .BR sched_setattr ()
|
|
|
|
.\" allowed a negative
|
|
|
|
.\" .I attr.sched_policy
|
|
|
|
.\" value.
|
|
|
|
.SH SEE ALSO
|
|
|
|
.ad l
|
|
|
|
.nh
|
2014-09-15 09:08:18 +00:00
|
|
|
.BR chrt (1),
|
2014-05-10 18:17:44 +00:00
|
|
|
.BR nice (2),
|
|
|
|
.BR sched_get_priority_max (2),
|
|
|
|
.BR sched_get_priority_min (2),
|
|
|
|
.BR sched_getaffinity (2),
|
|
|
|
.BR sched_getscheduler (2),
|
|
|
|
.BR sched_getparam (2),
|
|
|
|
.BR sched_rr_get_interval (2),
|
|
|
|
.BR sched_setaffinity (2),
|
|
|
|
.BR sched_setscheduler (2),
|
|
|
|
.BR sched_setparam (2),
|
|
|
|
.BR sched_yield (2),
|
|
|
|
.BR setpriority (2),
|
|
|
|
.BR pthread_getschedparam (3),
|
|
|
|
.BR pthread_setschedparam (3),
|
|
|
|
.BR pthread_setschedprio (3),
|
|
|
|
.BR capabilities (7),
|
|
|
|
.BR cpuset (7),
|
|
|
|
.BR sched (7)
|
|
|
|
.ad
|