From 25ac81736e91dcb748c4dba5c512c9f0261e01db Mon Sep 17 00:00:00 2001 From: Michael Kerrisk Date: Wed, 14 May 2014 09:19:55 +0200 Subject: [PATCH] pthread_attr_setinheritsched.3, pthread_attr_setschedparam.3, pthread_attr_setschedpolicy.3, pthread_setaffinity_np.3, pthread_setschedparam.3, pthread_setschedprio.3, pthread_yield.3, pthreads.7: Change references to "sched_setscheduler(2)" to "sched(7)" Change consistent with the fact that the scheduling overview page is now sched(7) not sched_setscheduler(2). Signed-off-by: Michael Kerrisk --- man3/pthread_attr_setinheritsched.3 | 4 ++-- man3/pthread_attr_setschedparam.3 | 6 +++--- man3/pthread_attr_setschedpolicy.3 | 6 +++--- man3/pthread_setaffinity_np.3 | 4 ++-- man3/pthread_setschedparam.3 | 10 +++++----- man3/pthread_setschedprio.3 | 6 +++--- man3/pthread_yield.3 | 4 ++-- man7/pthreads.7 | 4 +--- 8 files changed, 21 insertions(+), 23 deletions(-) diff --git a/man3/pthread_attr_setinheritsched.3 b/man3/pthread_attr_setinheritsched.3 index c7607815e..a3e0e2853 100644 --- a/man3/pthread_attr_setinheritsched.3 +++ b/man3/pthread_attr_setinheritsched.3 @@ -138,7 +138,6 @@ See .SH SEE ALSO .ad l .nh -.BR sched_setscheduler (2), .BR pthread_attr_init (3), .BR pthread_attr_setschedparam (3), .BR pthread_attr_setschedpolicy (3), @@ -146,4 +145,5 @@ See .BR pthread_create (3), .BR pthread_setschedparam (3), .BR pthread_setschedprio (3), -.BR pthreads (7) +.BR pthreads ,(7) +.BR sched (7) diff --git a/man3/pthread_attr_setschedparam.3 b/man3/pthread_attr_setschedparam.3 index 49d1e4d14..9a478e8c5 100644 --- a/man3/pthread_attr_setschedparam.3 +++ b/man3/pthread_attr_setschedparam.3 @@ -70,7 +70,7 @@ struct sched_param { As can be seen, only one scheduling parameter is supported. For details of the permitted ranges for scheduling priorities in each scheduling policy, see -.BR sched_setscheduler (2). +.BR sched (7). In order for the parameter setting made by .BR pthread_attr_setschedparam () @@ -117,11 +117,11 @@ See .ad l .nh .BR sched_get_priority_min (2), -.BR sched_setscheduler (2), .BR pthread_attr_init (3), .BR pthread_attr_setinheritsched (3), .BR pthread_attr_setschedpolicy (3), .BR pthread_create (3), .BR pthread_setschedparam (3), .BR pthread_setschedprio (3), -.BR pthreads (7) +.BR pthreads (7). +.BR sched (7) diff --git a/man3/pthread_attr_setschedpolicy.3 b/man3/pthread_attr_setschedpolicy.3 index 794aa92f4..84b508a57 100644 --- a/man3/pthread_attr_setschedpolicy.3 +++ b/man3/pthread_attr_setschedpolicy.3 @@ -58,7 +58,7 @@ are and .BR SCHED_OTHER , with the semantics described in -.BR sched_setscheduler (2). +.BR sched (7). .\" FIXME . pthread_setschedparam() places no restriction on the policy, .\" but pthread_attr_setschedpolicy() restricts policy to RR/FIFO/OTHER .\" http://sourceware.org/bugzilla/show_bug.cgi?id=7013 @@ -112,11 +112,11 @@ See .SH SEE ALSO .ad l .nh -.BR sched_setscheduler (2), .BR pthread_attr_init (3), .BR pthread_attr_setinheritsched (3), .BR pthread_attr_setschedparam (3), .BR pthread_create (3), .BR pthread_setschedparam (3), .BR pthread_setschedprio (3), -.BR pthreads (7) +.BR pthreads (7), +.BR sched (7) diff --git a/man3/pthread_setaffinity_np.3 b/man3/pthread_setaffinity_np.3 index 77800d9e8..6673187d2 100644 --- a/man3/pthread_setaffinity_np.3 +++ b/man3/pthread_setaffinity_np.3 @@ -205,9 +205,9 @@ main(int argc, char *argv[]) .fi .SH SEE ALSO .BR sched_setaffinity (2), -.BR sched_setscheduler (2), .BR pthread_attr_setaffinity_np (3), .BR pthread_self (3), .BR sched_getcpu (3), .BR cpuset (7), -.BR pthreads (7) +.BR pthreads (7), +.BR sched (7) diff --git a/man3/pthread_setschedparam.3 b/man3/pthread_setschedparam.3 index 3e76008e5..8c5589339 100644 --- a/man3/pthread_setschedparam.3 +++ b/man3/pthread_setschedparam.3 @@ -50,7 +50,7 @@ specifies the new scheduling policy for The supported values for .IR policy , and their semantics, are described in -.BR sched_setscheduler (2). +.BR sched (7). .\" FIXME . pthread_setschedparam() places no restriction on the policy, .\" but pthread_attr_setschedpolicy() restricts policy to RR/FIFO/OTHER .\" http://sourceware.org/bugzilla/show_bug.cgi?id=7013 @@ -72,7 +72,7 @@ struct sched_param { As can be seen, only one scheduling parameter is supported. For details of the permitted ranges for scheduling priorities in each scheduling policy, see -.BR sched_setscheduler (2). +.BR sched (7). The .BR pthread_getschedparam () @@ -145,7 +145,7 @@ For a description of the permissions required to, and the effect of, changing a thread's scheduling policy and priority, and details of the permitted ranges for priorities in each scheduling policy, see -.BR sched_setscheduler (2). +.BR sched (7). .SH EXAMPLE The program below demonstrates the use of .BR pthread_setschedparam () @@ -433,7 +433,6 @@ main(int argc, char *argv[]) .nh .BR getrlimit (2), .BR sched_get_priority_min (2), -.BR sched_setscheduler (2), .BR pthread_attr_init (3), .BR pthread_attr_setinheritsched (3), .BR pthread_attr_setschedparam (3), @@ -441,4 +440,5 @@ main(int argc, char *argv[]) .BR pthread_create (3), .BR pthread_self (3), .BR pthread_setschedprio (3), -.BR pthreads (7) +.BR pthreads (7), +.BR sched (7) diff --git a/man3/pthread_setschedprio.3 b/man3/pthread_setschedprio.3 index d06bf5150..6910f609e 100644 --- a/man3/pthread_setschedprio.3 +++ b/man3/pthread_setschedprio.3 @@ -87,13 +87,12 @@ For a description of the permissions required to, and the effect of, changing a thread's scheduling priority, and details of the permitted ranges for priorities in each scheduling policy, see -.BR sched_setscheduler (2). +.BR sched (7). .SH SEE ALSO .ad l .nh .BR getrlimit (2), .BR sched_get_priority_min (2), -.BR sched_setscheduler (2), .BR pthread_attr_init (3), .BR pthread_attr_setinheritsched (3), .BR pthread_attr_setschedparam (3), @@ -101,4 +100,5 @@ in each scheduling policy, see .BR pthread_create (3), .BR pthread_self (3), .BR pthread_setschedparam (3), -.BR pthreads (7) +.BR pthreads (7), +.BR sched (7) diff --git a/man3/pthread_yield.3 b/man3/pthread_yield.3 index ef8f1715a..ee81f23c5 100644 --- a/man3/pthread_yield.3 +++ b/man3/pthread_yield.3 @@ -65,6 +65,6 @@ instead. On Linux, this function is implemented as a call to .BR sched_yield (2). .SH SEE ALSO -.BR sched_setscheduler (2), .BR sched_yield (2), -.BR pthreads (7) +.BR pthreads (7), +.BR sched (7) diff --git a/man7/pthreads.7 b/man7/pthreads.7 index 0c4c07bb3..0f232e86d 100644 --- a/man7/pthreads.7 +++ b/man7/pthreads.7 @@ -97,9 +97,7 @@ alternate signal stack .RB ( sigaltstack (2)) .IP \- 3 real-time scheduling policy and priority -.RB ( sched_setscheduler (2) -and -.BR sched_setparam (2)) +.RB ( sched (7)) .PP The following Linux-specific features are also per-thread: .IP \- 3