summaryrefslogtreecommitdiffstats
path: root/man3/pthread_setaffinity_np.3
diff options
context:
space:
mode:
Diffstat (limited to 'man3/pthread_setaffinity_np.3')
-rw-r--r--man3/pthread_setaffinity_np.334
1 files changed, 17 insertions, 17 deletions
diff --git a/man3/pthread_setaffinity_np.3 b/man3/pthread_setaffinity_np.3
index 4e7147321..c88ee4afd 100644
--- a/man3/pthread_setaffinity_np.3
+++ b/man3/pthread_setaffinity_np.3
@@ -42,10 +42,10 @@ in the buffer pointed to by
.IR cpuset .
.P
For more details on CPU affinity masks, see
-.BR sched_setaffinity (2).
+.MR sched_setaffinity 2 .
For a description of a set of macros
that can be used to manipulate and inspect CPU sets, see
-.BR CPU_SET (3).
+.MR CPU_SET 3 .
.P
The argument
.I cpusetsize
@@ -54,7 +54,7 @@ is the length (in bytes) of the buffer pointed to by
Typically, this argument would be specified as
.IR sizeof(cpu_set_t) .
(It may be some other value, if using the macros described in
-.BR CPU_SET (3)
+.MR CPU_SET 3
for dynamically allocating a CPU set.)
.SH RETURN VALUE
On success, these functions return 0;
@@ -71,7 +71,7 @@ The affinity bit mask
contains no processors that are currently physically on the system
and permitted to the thread according to any restrictions that
may be imposed by the "cpuset" mechanism described in
-.BR cpuset (7).
+.MR cpuset 7 .
.TP
.B EINVAL
.RB ( pthread_setaffinity_np ())
@@ -96,7 +96,7 @@ No thread with the ID
could be found.
.SH ATTRIBUTES
For an explanation of the terms used in this section, see
-.BR attributes (7).
+.MR attributes 7 .
.TS
allbox;
lbx lb lb
@@ -130,19 +130,19 @@ the intersection of the set specified in the
argument and the set of CPUs actually present on the system.
The system may further restrict the set of CPUs on which the thread
runs if the "cpuset" mechanism described in
-.BR cpuset (7)
+.MR cpuset 7
is being used.
These restrictions on the actual set of CPUs on which the thread
will run are silently imposed by the kernel.
.P
These functions are implemented on top of the
-.BR sched_setaffinity (2)
+.MR sched_setaffinity 2
and
-.BR sched_getaffinity (2)
+.MR sched_getaffinity 2
system calls.
.P
A new thread created by
-.BR pthread_create (3)
+.MR pthread_create 3
inherits a copy of its creator's CPU affinity mask.
.SH EXAMPLES
In the following program, the main thread uses
@@ -197,11 +197,11 @@ main(void)
.EE
.\" SRC END
.SH SEE ALSO
-.BR sched_setaffinity (2),
-.BR CPU_SET (3),
-.BR pthread_attr_setaffinity_np (3),
-.BR pthread_self (3),
-.BR sched_getcpu (3),
-.BR cpuset (7),
-.BR pthreads (7),
-.BR sched (7)
+.MR sched_setaffinity 2 ,
+.MR CPU_SET 3 ,
+.MR pthread_attr_setaffinity_np 3 ,
+.MR pthread_self 3 ,
+.MR sched_getcpu 3 ,
+.MR cpuset 7 ,
+.MR pthreads 7 ,
+.MR sched 7