mirror of https://github.com/mkerrisk/man-pages
Moved timespec definition from SYNOPSIS into description.
This commit is contained in:
parent
cf0a9ace57
commit
1bef0ec265
|
@ -34,19 +34,21 @@ sched_rr_get_interval \- get the SCHED_RR interval for the named process
|
||||||
.B #include <sched.h>
|
.B #include <sched.h>
|
||||||
.sp
|
.sp
|
||||||
\fBint sched_rr_get_interval(pid_t \fIpid\fB, struct timespec *\fItp\fB);
|
\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
|
.SH DESCRIPTION
|
||||||
.BR sched_rr_get_interval ()
|
.BR sched_rr_get_interval ()
|
||||||
writes into the \fItimespec\fR structure pointed to by \fItp\fR the
|
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
|
\fIpid\fR is zero, the time quantum for the calling process is written
|
||||||
into *\fItp\fR. The identified process should be running under the
|
into *\fItp\fR. The identified process should be running under the
|
||||||
.I SCHED_RR
|
.I SCHED_RR
|
||||||
|
|
Loading…
Reference in New Issue