diff options
Diffstat (limited to 'man2')
| -rw-r--r-- | man2/sched_rr_get_interval.2 | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/man2/sched_rr_get_interval.2 b/man2/sched_rr_get_interval.2 index f09df64f94..86257bd6a5 100644 --- a/man2/sched_rr_get_interval.2 +++ b/man2/sched_rr_get_interval.2 @@ -34,19 +34,21 @@ sched_rr_get_interval \- get the SCHED_RR interval for the named process .B #include <sched.h> .sp \fBint sched_rr_get_interval(pid_t \fIpid\fB, struct timespec *\fItp\fB); -.sp -.nf -.ta 4n 12n 24n -\fBstruct timespec { - time_t tv_sec; /* seconds */ - long tv_nsec; /* nanoseconds */ -}; -.ta -.fi .SH DESCRIPTION .BR sched_rr_get_interval () writes into the \fItimespec\fR structure pointed to by \fItp\fR the -round robin time quantum for the process identified by \fIpid\fR. If +round robin time quantum for the process identified by \fIpid\fR. + +The \fItimespec\fR structure has the following form: + +.nf +struct timespec { + time_t tv_sec; /* seconds */ + long tv_nsec; /* nanoseconds */ +}; +.fi + +If \fIpid\fR is zero, the time quantum for the calling process is written into *\fItp\fR. The identified process should be running under the .I SCHED_RR |
